home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / std / internat / 700 next >
Encoding:
Text File  |  1992-11-19  |  2.7 KB  |  61 lines

  1. Newsgroups: comp.std.internat
  2. Path: sparky!uunet!gatech!emory!sol.ctr.columbia.edu!ira.uka.de!fauern!fauna!mskuhn
  3. From: mskuhn@immd4.informatik.uni-erlangen.de (Markus Kuhn)
  4. Subject: ISO Latin 1 text presentation with 7-bit ASCII
  5. Message-ID: <Bxz6o2.C2H@immd4.informatik.uni-erlangen.de>
  6. Reply-To: mskuhn@immd4.informatik.uni-erlangen.de
  7. Organization: CSD., University of Erlangen, Germany
  8. Date: Thu, 19 Nov 1992 18:14:26 GMT
  9. Lines: 50
  10.  
  11. I want to include a feature in several public domain systems where the
  12. character set ISO 8859-1 is used for textes and identifiers (e.g. gopher).
  13. People with old 7-bit-ASCII-only terminals have some problems reading 
  14. textes with Latin 1 G1 characters, so it would be nice to be able to convert
  15. these characters to similar ASCII characters. This is always an emergency
  16. solution, but still much better than just stripping off bit 8 or displaying
  17. a question mark.
  18.  
  19. Supposed there is no problem if the converted text is a few characters longer
  20. than the original one. At the moment, I use the following table:
  21.  
  22.  
  23. /* Conversion table for displaying the G1 set (0xa0-0xff) of
  24.    ISO Latin 1 (ISO 8859-1) with 7-bit ASCII characters.
  25.    Suggestions for improvement are welcome!
  26.  
  27.    Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>     */
  28.  
  29. static char *iso2asc[96] = {
  30.   " ","!","c","?","?","Y","|","?","\"","(c)","a","<<","?","-","(R)"," ",
  31.   "?","+/-","2","3","'","mu","P",".",",","1","o",">>","1/4","1/2","3/4","?",
  32.   "A","A","A","A","Ae","A","AE","C","E","E","E","E","I","I","I","I",
  33.   "D","N","O","O","O","O","Oe","x","O","U","U","U","Ue","Y","P","ss",
  34.   "a","a","a","a","ae","a","ae","c","e","e","e","e","i","i","i","i",
  35.   "d","n","o","o","o","o","oe",":","o","u","u","u","ue","y","p","y"
  36. };
  37.  
  38. or in a more readable format:
  39.  
  40.        !   c   ?   ?   Y   |   ?   " (c)   a  <<   ?   - (R)    
  41.    ? +/-   2   3   '  mu   P   .   ,   1   o  >> 1/4 1/2 3/4   ?
  42.    A   A   A   A  Ae   A  AE   C   E   E   E   E   I   I   I   I
  43.    D   N   O   O   O   O  Oe   x   O   U   U   U  Ue   Y   P  ss
  44.    a   a   a   a  ae   a  ae   c   e   e   e   e   i   i   i   i
  45.    d   n   o   o   o   o  oe   :   o   u   u   u  ue   y   p   y
  46.  
  47. Could you experts please have a quick look at this table and tell me,
  48. whether it is also acceptable outside Germany or if any improvements
  49. are possible? I don't know much about the replacement characters used
  50. by people in other languages if they are forced to use ASCII. E.g.
  51. what about the characters ETH and THOR (d,D,p,P is just my guess)?
  52.  
  53. Are there even any national standards?
  54.  
  55. Markus
  56.  
  57. -- 
  58. Markus Kuhn, Computer Science student -=-=- University of Erlangen, Germany
  59. Internet: mskuhn@immd4.informatik.uni-erlangen.de  |  X.500 entry available
  60. --- Wer, wie, was? Wieso, weshalb, warum? Wer nichts fragt bleibt dumm. ---
  61.