home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / question / 10789 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  3.7 KB

  1. Xref: sparky comp.unix.questions:10789 comp.unix.wizards:3821
  2. Path: sparky!uunet!mcsun!Germany.EU.net!pki-nbg!hitkw14!smr
  3. From: smr@hitkw14.pki-nbg.philips.de (S.Riehm)
  4. Newsgroups: comp.unix.questions,comp.unix.wizards
  5. Subject: Re: Extended chars in Unix
  6. Message-ID: <smr.715611330@hitkw14>
  7. Date: 4 Sep 92 12:55:30 GMT
  8. References: <8953@ncratl.AtlantaGA.NCR.COM>
  9. Sender: news@pki-nbg.philips.de
  10. Lines: 63
  11.  
  12. sbarnhar@ncratl.AtlantaGA.NCR.COM (Scott Barnhart) writes:
  13.  
  14. >I am using Unix SystemVR4, and want to find a way to generate the
  15. >extended ASCII chars from the keyboard.  The reason for this is
  16. >to generate the appropriate foreign characters (such as the vowels 
  17. >with the accents, etc) needed in the various different languages 
  18. >(specifically French, German and other European languages).
  19.  
  20. >I first thought it could be done somehow with the LOCALE stuff
  21. >in Unix, setlocale(), chrtbl(), etc.  But the man pages don't go
  22. >into how to generate or translate these characters.
  23.  
  24. The only IMPORTANT thing that I found about this stuff is that you
  25. MUST have 8-bit clean programs. For example, I use Xterms, so I had to
  26. set the eightBitInput and eightBitOutput resources ( although I think
  27. they are default ), then its a matter of using Meta or Alt keys to set
  28. the eighth bit, which in turn gives you these weird characters. In my
  29. set up, an alt-k gives an e with umlauts ( two little dots ), the
  30. combinations are pretty cryptic, but I got around that by setting up
  31. translation tables for xterms, ( read the manual for them.. or ask for
  32. a listing... I'll post it if I get > 3 requests ). So I now use a
  33. compose sequence, compose + " + e = ALT-K for example. What you are
  34. supposed to do at a dumb terminal without Alt keys, I have no idea..
  35. get your boss to buy you a new terminal! :-)
  36.  
  37. This gets the input side of thing working, you then need to make sure
  38. that your output device can handle 8bit characters, for XWindows you
  39. just set the default font to an ISO font or equivalent ( I am using
  40. iso1.16 but I have no idea what it maps to, cus I can't find it in any
  41. font.aliases files ). I also had to set the environment variable
  42. LESSCHARSET=latin1 to get less to understand that an 'international'
  43. character ( foreign sounds so..... US v's THEM'ish ) is not a control
  44. character to be barfed at.
  45.  
  46. ( fx: sarcasm on :xf )
  47. see its really quite simple isn't it??
  48. ( fx: sarcasm off :xf )
  49.  
  50. ( fx: flame thrower set to: Light Toast :xf )
  51. Of course in a perfect world vendors would realise that
  52. internationalisation is not a bad thing, and that the default
  53. settings should be 'international character sets' friendly, then those
  54. that only use the simple a-z characters got no problems, and everyone
  55. in not-America, and all those corresponding with not-America would also have
  56. no problems. ( I say not-America because its pretty difficult to type
  57. a real pound sign, not a # but a # <- what goes after british
  58. currency, using the 'standard' character set )
  59.  
  60. Am I really asking too much??
  61. It only took me several days to set up international characters right,
  62. and I still have a couple of bugs to get around, and I have had experience
  63. at setting up Xwindows etc.. it wasn't difficult to do, just so
  64. incomprehensibly interconnected and confusing, setting an environment
  65. variable does nothing!
  66.  
  67. -----------------------------------------------------------------
  68. Stephen Riehm        Configuration Management       _-_|\ 
  69. smr@pki-nbg.philips.de    Philips Kommunikations Industrie  /     \
  70. Work: +49 911 526 2975    N|rnberg, Germany          \_.-.*/
  71. Fax:  +49 911 526 2095    "I was there, now I am here!"           v 
  72. "My company speaks another language, I CAN'T speak on it's behalf"
  73. PS: if you can't read the name of my city, you are not being
  74. international enough! and it's YOUR problem.. not mine!
  75.