home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 September / APC0409D2.iso / labs / email / files / pegasus_w32-421c.exe / wpm-lmtt.r < prev    next >
Encoding:
Text File  |  2004-04-28  |  23.8 KB  |  599 lines

  1. ##
  2. ##  WPM-LMTT.R  (Local Mime Translation Table)
  3. ##  Copyright (c) 1994, David Harris, All Rights Reserved.
  4. ##
  5. ##  This file can be used as a model for a local resource which
  6. ##  maps ISO character sets to the code pages in use on the PCs
  7. ##  at your site.
  8. ##
  9. ##  Character translation tables:
  10. ##  Each translation table maps the characters in a particular
  11. ##  ISO set to your codepage's character set: the table can be used
  12. ##  bidirectionally when composing or decoding quoted-printable or
  13. ##  8BIT messages. Only characters from 128-255 are included in
  14. ##  the table, and each table must end with an ASCII NUL (0).
  15. ##
  16. ##  The sample tables in this file are the ones Pegasus Mail uses
  17. ##  by default: they map ISO character sets to the standard IBM
  18. ##  code page 437. You may define as many character sets as you
  19. ##  wish and Pegasus Mail will use them to translate incoming mail
  20. ##  but for outgoing mail it will only use ISO character sets.
  21. ##
  22. ##  The last resource in the file must be a "charset_list"
  23. ##  structure which ties the character strings naming an ISO
  24. ##  character set to the resource which maps it.
  25. ##
  26. ##  Angepa▀t an deutsche Umlaute (cp_win) am 28-04-2004 Sven Henze
  27. ##
  28. #==========================================================
  29. #
  30. #   OPTIMAL CHARACTER TRANSLATIONS, should be used as
  31. #   a example for user defined tables in multilanguage fonts
  32. #   environment.
  33. #
  34. # WEST   ISO-8859-1 -->   CP 1252
  35. # CE     ISO-8859-2 -->   CP 1250
  36. # TR,AFR ISO-8859-3 --> ? CP 1252
  37. # BALTIC ISO-8859-4 -->   CP 1257
  38. # CYR    ISO-8859-5 -->   CP 1251
  39. # ARAB   ISO-8859-6 -->   CP 1256
  40. # GREEK  ISO-8859-7 -->   CP 1253
  41. # HEBR   ISO-8859-8 -->   CP 1255
  42. # TR     ISO-8859-9 -->   CP 1254
  43. # RUSS   KOI-8R     -->   CP 1251
  44. # VIETN                   CP 1258 (currently not implemented)
  45. #        ISO-8859-10      ???     (currently not implemented)
  46. #   Conversion tables from Jiri Kuchta, 8-12-96, kuchta@fee.vutbr.cz
  47. #
  48. #=========================================================
  49. ##
  50. ##  To use this file, modify it as required, then compile it with
  51. ##  the Pegasus Mail system resource compiler, RESCOM, using the
  52. ##  command 'rescom PM-LMTT.R'. This will produce the file
  53. ##  PM-LMTT.RSC, which should be copied into the same directory
  54. ##  as PMAIL.EXE, or into your home mailbox.
  55.  
  56. ##
  57. ##  The "charset_list" type is used to tie a particular name of
  58. ##  a character set to the table used to decode it.
  59. ##
  60.  
  61. typedef charset_list 25
  62.    {
  63.    repeat,
  64.    string 20,     # Character set name
  65.    integer        # resource ID of table to load.
  66.    };
  67.  
  68.  
  69. ###----------------------------------------------------------------
  70. ##                I S O - 8 8 5 9 - 1     (Latin 1)
  71. ###----------------------------------------------------------------
  72. ## Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
  73. ## Irish, Italian, Norwegian, Portuguese, Spanish and Swedish.
  74. ##
  75. ## optimal conversion into CP850, CP1252
  76.  
  77. structure iso8859_1
  78.     {
  79. # conversion ISO-1 --> 1252
  80.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  81.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  82.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  83.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  84. '\160', 'í', 'ó', 'ú', 'ñ', 'Ñ', '|', 'º',      #a0
  85.     '¿', '⌐', '¬', '½', '¼', '¡', '«', 'û',      #a8
  86.    '░', '▒', '▓', '│', '┤', '╡', '╢', '╖',      #b0
  87.     '╕', '╣', '║', '╗', '╝', '╜', '╛', '┐',      #b8
  88.    '└', '┴', '┬', '├', '─', '┼', '╞', '╟',      #c0
  89.     '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',      #c8
  90.    '╨', '╤', '╥', '╙', '╘', '╒', '╓', '╫',      #d0
  91.    '╪', '┘', '┌', '█', '▄', '▌', '▐', '▀',      #d8
  92.    'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'τ',      #e0
  93.    'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',      #e8
  94.    '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈',      #f0
  95.    '°', '∙', '·', '√', 'ⁿ', '²', '■', ' ',      #f8
  96.    0
  97.     };
  98.  
  99. ###----------------------------------------------------------------
  100. ##                I S O - 8 8 5 9 - 2     (Latin 2)
  101. ###----------------------------------------------------------------
  102. ## Albanian, Czech, English, German, Hungarian, Polish, Rumanian,
  103. ## Serbo-Croatian, Slovak, Slovene and Swedish.
  104. ##
  105. ## optimal conversion into CP852, CP1250
  106.  
  107. #structure iso8859_2
  108. #   {
  109. ## conversion ISO-2 --> 1252 (WEST)
  110. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  111. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  112. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  113. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  114. #'\160', 'A', 'ÿ', 'L', 'ñ', 'L', 'S', 'º',      #a0
  115. #   '¿', 'è', 'S', 'T', 'Z', '¡', 'Z', 'Z',      #a8
  116. #   '░', 'a', '?', 'l', '┤', 'l', 's', 'ê',      #b0
  117. #   '╕', 'Ü', 's', 't', 'z', '¿', 'z', 'z',      #b8
  118. #   'R', '┴', '┬', '├', '─', 'L', 'C', '╟',      #c0
  119. #   'C', '╔', 'E', '╦', '╩', '═', '╬', 'D',      #c8
  120. #   '╨', 'N', '╤', '╙', '╘', '╓', '╓', '╫',      #d0
  121. #   'R', '█', '┌', '▄', '▄', '▌', 'T', '▀',      #d8
  122. #   'r', 'ß', 'Γ', 'π', 'Σ', 'l', 'c', 'τ',      #e0
  123. #   'c', 'Θ', 'e', 'δ', 'Ω', 'φ', 'ε', 'd',      #e8
  124. #   '≡', 'n', '±', '≤', '⌠', '÷', '÷', '≈',      #f0
  125. #   'r', '√', '·', 'ⁿ', 'ⁿ', '²', 't', '╖',      #f8
  126. #   0
  127. #   };
  128.  
  129. structure iso8859_2
  130.    {
  131. # conversion ISO-2 --> 1250 (CE)
  132.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  133.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  134.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  135.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  136. '\160', 'Ñ', 'ó', 'ú', 'ñ', '╝', 'î', 'º',      #a0
  137.     '¿', 'è', '¬', 'ì', 'Å', '¡', 'Ä', '»',      #a8
  138.     '░', '╣', '▓', '│', '┤', '╛', '£', 'í',      #b0
  139.     '╕', 'Ü', '║', '¥', 'ƒ', '╜', '₧', '┐',      #b8
  140.    '└', '┴', '┬', '├', '─', '┼', '╞', '╟',      #c0
  141.     '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',      #c8
  142.    '╨', '╤', '╥', '╙', '╘', '╒', '╓', '╫',      #d0
  143.     '╪', '┘', '┌', '█', '▄', '▌', '▐', '▀',      #d8
  144.    'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'τ',      #e0
  145.    'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',      #e8
  146.    '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈',      #f0
  147.    '°', '∙', '·', '√', 'ⁿ', '²', '■', '╖',      #f8
  148.    0
  149.    };
  150.  
  151. ###----------------------------------------------------------------
  152. ##                I S O - 8 8 5 9 - 3     (Latin 3)
  153. ###----------------------------------------------------------------
  154. ## Afrikaans, Catalan, English, Esperanto, French, Galician, German,
  155. ## Italian, Maltese and Turkish.
  156. ##
  157. ## optimal conversion into CP85x, CP125x
  158.  
  159. structure iso8859_3
  160.     {
  161. # conversion ISO-3 --> 1252
  162.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  163.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  164.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  165.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  166. '\160', 'H', '»', 'ú', 'ñ', ' ', 'H', 'º',      #a0
  167.     '¿', 'I', 'S', 'G', 'J', '¡', ' ', 'Z',      #a8
  168.     '░', 'h', '▓', '│', '┤', '╡', 'h', '╖',      #b0
  169.     '╕', 'i', 's', 'g', 'j', '╜', ' ', 'z',      #b8
  170.     '└', '┴', '┬', ' ', '─', 'C', 'C', '╟',      #c0
  171.     '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',      #c8
  172.     ' ', '╤', '╥', '╙', '╘', 'G', '╓', '╫',      #d0
  173.     'G', '┘', '┌', '█', '▄', 'U', 'è', '▀',      #d8
  174.    'α', 'ß', 'Γ', ' ', 'Σ', 'c', 'c', 'τ',      #e0
  175.     'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',      #e8
  176.    ' ', '±', '≥', '≤', '⌠', 'g', '÷', '≈',      #f0
  177.    'g', '∙', '·', '√', 'ⁿ', 'u', 'Ü', ' ',      #f8
  178.   0
  179.    };
  180.  
  181. ###----------------------------------------------------------------
  182. ##                I S O - 8 8 5 9 - 4     (Latin 4)
  183. ###----------------------------------------------------------------
  184. ## Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
  185. ## Latvian, Lithuanian, Norwegian and Swedish.
  186. ##
  187. ## optimal conversion into CP85x, CP1257
  188.  
  189.  
  190. #structure iso8859_4
  191. #   {
  192. ## conversion ISO-4 --> 1252
  193. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  194. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  195. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  196. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  197. #'\160', 'A', 'k', 'R', 'ñ', 'I', 'L', 'º',      #a0
  198. #   '¿', 'è', '╩', 'G', 'T', '¡', 'Z', '»',      #a8
  199. #   '░', 'a', 'é', 'r', '┤', 'N', 'z', 'n',      #b0
  200. #   '╕', 'Ü', 'Ω', 'g', 't', 'i', 'l', '┐',      #b8
  201. #   '└', '┴', '┬', '├', '─', '┼', '╞', 'I',      #c0
  202. #   'C', '╔', 'E', '╦', '╚', '═', '╬', '╧',      #c8
  203. #   '╨', '╤', '╥', 'K', '╘', '╒', '╓', '╫',      #d0
  204. #   '╪', '┘', '┌', '█', '▄', 'U', 'U', '▀',      #d8
  205. #   'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'i',      #e0
  206. #   'c', 'Θ', 'e', 'δ', 'Φ', 'φ', 'ε', '∩',      #e8
  207. #   '≡', '±', '≥', 'k', '⌠', '⌡', '÷', '≈',      #f0
  208. #   '°', '∙', '·', '√', 'ⁿ', 'u', 'u', '┤',      #f8
  209. #   0
  210. #   };
  211.  
  212. structure iso8859_4
  213.     {
  214. # conversion ISO-4 --> 1257
  215.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  216.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  217.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  218.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  219. '\160', '└', 'k', '¬', 'ñ', 'I', '╧', 'º',      #a0
  220.     'ì', '╨', '╟', '╠', 'T', '¡', '▐', '¥',      #a8
  221.     '░', 'α', '₧', '║', '┤', 'i', '∩', 'Ä',      #b0
  222.     'Å', '≡', 'τ', '∞', 't', '?', '■', '?',      #b8
  223.     '┬', 'A', 'A', 'A', '─', '┼', '»', '┴',      #c0
  224.     '╚', '╔', '╞', 'E', '╦', 'I', 'I', '╬',      #c8
  225.     'D', '╥', '╘', '═', 'O', '╒', '╓', '╫',      #d0
  226.     '╪', 'U', 'U', '▄', 'U', 'U', '█', '▀',      #d8
  227.     'Γ', 'a', 'a', 'a', 'Σ', 'σ', '┐', 'ß',      #e0
  228.     'Φ', 'Θ', 'µ', 'e', 'δ', 'i', 'i', 'ε',      #e8
  229.     'd', '≥', '⌠', 'φ', 'o', '⌡', '÷', '≈',      #f0
  230.     '°', 'u', 'u', 'ⁿ', 'u', 'u', '√', ' ',      #f8
  231.    0
  232.    };
  233.  
  234. ###----------------------------------------------------------------
  235. ##                I S O - 8 8 5 9 - 5     (Cyrilic)
  236. ###----------------------------------------------------------------
  237. ## Bulgarian, Bielorussian, English, Macedonian, Russian,
  238. ## Serbo-Croatian and Ukrainian.
  239. ##
  240. ## optimal conversion into CP855, CP866, CP1251
  241.  
  242.  
  243. #structure iso8859_5
  244. #   {
  245. ## conversion ISO-5--> 1252
  246. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  247. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  248. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  249. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  250. #'\160', '╦', '?', 'r', 'E', 'S', 'I', '╧',      #a0
  251. #   'J', 'L', 'H', '?', 'K', '-', 'ƒ', '?',      #a8
  252. #   'A', 'B', 'V', 'G', 'D', 'E', 'Z', '3',      #b0
  253. #   'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',      #b8
  254. #   'R', 'S', 'T', 'U', '╪', 'X', 'C', '╟',      #c0
  255. #   'S', 'S', '?', '?', '?', '3', '▄', '─',      #c8
  256. #   'a', 'b', 'v', 'g', 'd', 'e', 'z', '3',      #d0
  257. #   'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',      #d8
  258. #   'r', 's', 't', 'u', '°', 'x', 'c', 'τ',      #e0
  259. #   's', 's', '?', '?', '?', '3', 'ⁿ', 'Σ',      #e8
  260. #   '¬', 'δ', '?', 'r', 'e', 's', 'i', '∩',      #f0
  261. #   'j', 'l', 'h', '?', 'k', ' ', ' ', '?',      #f8
  262. #   0
  263. #   };
  264.  
  265.  
  266. structure iso8859_5
  267.    {
  268. # conversion ISO-5 --> 1251
  269.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  270.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  271.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  272.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  273. '\160', '¿', 'Ç', 'ü', '¬', '╜', '▓', '»',      #a0
  274.     'ú', 'è', 'î', 'Ä', 'ì', '¡', 'í', 'Å',      #a8
  275.     '└', '┴', '┬', '├', '─', '┼', '╞', '╟',      #b0
  276.     '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',      #b8
  277.     '╨', '╤', '╥', '╙', '╘', '╒', '╓', '╫',      #c0
  278.     '╪', '┘', '┌', '█', '▄', '▌', '▐', '▀',      #c8
  279.     'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'τ',      #d0
  280.     'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',      #d8
  281.     '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈',      #e0
  282.     '°', '∙', '·', '√', 'ⁿ', '²', '■', ' ',      #e8
  283.     '╣', '╕', 'É', 'â', '║', '╛', '│', '┐',      #f0
  284.     '╝', 'Ü', '£', '₧', '¥', ' ', 'ó', 'ƒ',      #f8
  285.    0
  286.    };
  287.  
  288. ###----------------------------------------------------------------
  289. ##                I S O - 8 8 5 9 - 6     (Arabic)
  290. ###----------------------------------------------------------------
  291. ## This set of graphic character is intended for use in information
  292. ## interchange as well as in data and text processing applications
  293. ## where both the Arabic and the Latin scripts are used.
  294. ##
  295. ## optimal conversion into CP85x, CP1256
  296.  
  297. #structure iso8859_6
  298. #   {
  299. ## conversion ISO-6--> 1252
  300. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  301. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  302. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  303.  
  304.  
  305. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  306. #'\160', ' ', ' ', ' ', 'ñ', ' ', ' ', ' ',      #a0
  307. #   ' ', ' ', ' ', ' ', '`', '-', ' ', ' ',      #a8
  308. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #b0
  309. #   ' ', ' ', ' ', ';', ' ', ' ', ' ', '¿',      #b8
  310. #   ' ', '?', '?', '?', '?', '?', '?', '?',      #c0
  311. #   '?', '?', '?', '?', '?', '?', '?', '?',      #c8
  312. #   '?', '?', '?', '?', '?', '?', '?', '?',      #d0
  313. #   '?', '?', '?', ' ', ' ', ' ', ' ', ' ',      #d8
  314. #   '-', '?', '?', '?', '?', '?', '?', '?',      #e0
  315. #   '?', '?', '?', '-', '-', '-', '-', '-',      #e8
  316. #   '-', '-', '-', ' ', ' ', ' ', ' ', ' ',      #f0
  317. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #f8
  318. #   0
  319. #   };
  320.  
  321.  
  322. structure iso8859_6
  323.     {
  324. ## conversion ISO-6--> 1256
  325.     ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',         #80
  326.     ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',         #88
  327.     ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',         #90
  328.     ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',         #98
  329.     '\160',' ',   ' ',   ' ',   'ñ',   ' ',   ' ',   ' ',         #a0
  330.     ' ',   ' ',   ' ',   ' ',   '\161','\173',' ',   ' ',         #a8
  331.     ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',         #b0
  332.     ' ',   ' ',   ' ',   '\186',' ',   ' ',   ' ',   '\191',      #b8
  333.     ' ',   '\193','\194','\195','\196','\197','\198','\199',      #c0
  334.     '\200','\201','\202','\203','\204','\205','\206','\207',      #c8
  335.     '\208','\209','\210','\211','\212','\213','\214','\216',      #d0
  336.     '\217','\218','\219',' ',   ' ',   ' ',   ' ',   ' ',         #d8
  337.     '\220','\221','\222','\223','\225','\227','\228','\229',      #e0
  338.     '\230','\236','\237','\240','\241','\242','\243','\245',      #e8
  339.     '\246','\248','\250',' ',   ' ',   ' ',   ' ',   ' ',         #f0
  340.     ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',   ' ',         #f8
  341.     0
  342.    };
  343.  
  344. ###----------------------------------------------------------------
  345. ##                I S O - 8 8 5 9 - 7     (Greek)
  346. ###----------------------------------------------------------------
  347. ## This set is suited for multiple-language applications involving the
  348. ## Latin and the Greek scripts. It allows handling of data and text
  349. ## expressed in Greek.
  350. ##
  351. ## optimal conversion into CP85x, CP1253
  352.  
  353. structure iso8859_7
  354.     {
  355. ## conversion ISO-7--> 1253
  356.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  357.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  358.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  359.    ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  360. '\160', ',', '`', 'ú', ' ', ' ', 'ª', 'º',      #a0
  361.     '¿', '⌐', ' ', '½', '¼', '¡', ' ', '»',      #a8
  362.     '░', '▒', '▓', '│', '┤', 'í', 'ó', '╖',      #b0
  363.    '╕', '╣', '║', '╗', '╝', '╜', '╛', '┐',      #b8
  364.    '└', '┴', '┬', '├', '─', '┼', '╞', '╟',      #c0
  365.    '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',      #c8
  366.    '╨', '╤', ' ', '╙', '╘', '╒', '╓', '╫',      #d0
  367.    '╪', '┘', '┌', '█', '▄', '▌', '▐', '▀',      #d8
  368.    'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'τ',      #e0
  369.    'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',      #e8
  370.    '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈',      #f0
  371.    '°', '∙', '·', '√', 'ⁿ', '²', '■', ' ',      #f8
  372.     0
  373.    };
  374.  
  375. ###----------------------------------------------------------------
  376. ##                I S O - 8 8 5 9 - 8     (Hebrew)
  377. ###----------------------------------------------------------------
  378. ## This set is suited for multiple-language applications involving the
  379. ## Latin and the Hebrew scripts. It allows handling of data and text
  380. ## expressed in Hebrew.
  381. ##
  382. ## optimal conversion into CP85x, CP1255
  383.  
  384. #structure iso8859_8
  385. #   {
  386. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  387. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  388. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  389. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  390. #'\160', ' ', 'ó', 'ú', 'ñ', 'Ñ', 'ª', 'º',      #a0
  391. #   '¿', '⌐', '╫', '½', '¼', '¡', '«', '?',      #a8
  392. #     '░', '▒', '▓', '│', '┤', '╡', '╢', '╖',      #b0
  393. #     ',', '╣', '≈', '╗', '╝', '╜', '╛', ' ',      #b8
  394. #     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #c0
  395. #     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #c8
  396. #     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #d0
  397. #     ' ', ' ', ' ', ' ', ' ', ' ', ' ', '?',      #d8
  398. #   '?', '?', '?', '?', '?', '?', '?', '?',      #e0
  399. #   '?', '?', '?', '?', '?', '?', '?', '?',      #e8
  400. #   '?', '?', '?', '?', '?', '?', '?', '?',      #f0
  401. #   '?', '?', '?', '?', '?', '?', '?', '?',      #f8
  402. #   0
  403. #   };
  404.  
  405.  
  406. structure iso8859_8
  407.    {
  408. ## conversion ISO-8--> 1255
  409.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  410.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  411.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  412.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  413. '\160', ' ', 'ó', 'ú', 'ñ', 'Ñ', 'ª', 'º',      #a0
  414.     '¿', '⌐', 'x', '½', '¼', '¡', '«', '?',      #a8
  415.     '░', '▒', '▓', '│', '┤', '╡', '╢', '╖',      #b0
  416.     ',', '╣', '/', '╗', '╝', '╜', '╛', ' ',      #b8
  417.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #c0
  418.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #c8
  419.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #d0
  420.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', '?',      #d8
  421.     '\224','\225','\226','\227','\228','\229','\230','\231',      #e0
  422.     '\232','\233','\234','\235','\236','\237','\238','\239',      #e8
  423.     '\240','\241','\242','\243','\244','\245','\246','\247',      #f0
  424.     '\248','\249','\250',' ',   ' ',   ' ',   ' ',   ' ',         #f8
  425.     0
  426.     };
  427.  
  428.  
  429. ###----------------------------------------------------------------
  430. ##                I S O - 8 8 5 9 - 9     (Latin 5)
  431. ###----------------------------------------------------------------
  432. ## English, Finnish, French, German, Irish, Italian, Norwegian,
  433. ## Portuguese, Spanish and Swedish and Turkish.
  434. ##
  435. ## optimal conversion into CP85x, CP1254
  436.  
  437.  
  438. #structure iso8859_9
  439. #   {
  440. ## conversion ISO-9 --> 1252
  441. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  442. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  443. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  444. #   ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  445. #'\160', 'í', 'ó', 'ú', 'ñ', 'Ñ', '|', 'º',      #a0
  446. #   '¿', '⌐', '¬', '½', '¼', '¡', '«', 'û',      #a8
  447. #   '░', '▒', '▓', '│', '┤', '╡', '╢', '╖',      #b0
  448. #   '╕', '╣', '║', '╗', '╝', '╜', '╛', '┐',      #b8
  449. #   '└', '┴', '┬', '├', '─', '┼', '╞', '╟',      #c0
  450. #   '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',      #c8
  451. #   'G', '╤', '╥', '╙', '╘', '╒', '╓', '╫',      #d0
  452. #   '╪', '┘', '┌', '█', '▄', 'I', 'S', '▀',      #d8
  453. #   'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'τ',      #e0
  454. #   'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',      #e8
  455. #   'g', '±', '≥', '≤', '⌠', '⌡', '÷', '≈',      #f0
  456. #   '°', '∙', '·', '√', 'ⁿ', 'i', 's', ' ',      #f8
  457. #   0
  458. #   };
  459.  
  460.  
  461. structure iso8859_9
  462.     {
  463. # conversion ISO-9 --> 1254
  464.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  465.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  466.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  467.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  468. '\160', 'í', 'ó', 'ú', 'ñ', 'Ñ', 'ª', 'º',      #a0
  469.     '¿', '⌐', '¬', '½', '¼', '¡', '«', '»',      #a8
  470.     '░', '▒', '▓', '│', '┤', '╡', '╢', '╖',      #b0
  471.     '╕', '╣', '║', '╗', '╝', '╜', '╛', '┐',      #b8
  472.     '└', '┴', '┬', '├', '─', '┼', '╞', '╟',      #c0
  473.     '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',      #c8
  474.     '╨', '╤', '╥', '╙', '╘', '╒', '╓', '╫',      #d0
  475.     '╪', '┘', '┌', '█', '▄', '▌', '▐', '▀',      #d8
  476.     'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'τ',      #e0
  477.     'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',      #e8
  478.     '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈',      #f0
  479.     '°', '∙', '·', '√', 'ⁿ', '²', '■', ' ',      #f8
  480.     0
  481.     };
  482.  
  483.  
  484. ###----------------------------------------------------------------
  485. ##                I S O - 8 8 5 9 - 1 5   (Latin 9)
  486. ###----------------------------------------------------------------
  487. ## AjoutΘ par Th. Thomas
  488. ## Albanais, allemand, anglais, basque, breton, catalan, danois, espagnol,
  489. ## estonien, fΘro∩en, finnois, franτais, frison, gaΘlique Θcossais, gaΘlique
  490. ## irlandais (nouvelle orthographe), galicien, gallois, groenlandais,
  491. ## islandais, italien, latin, luxembourgeois, nΘerlandais, norvΘgien,
  492. ## portugais, romanche, suΘdois, et monΘgasque.
  493. ##
  494. ## optimal conversion into CP850, CP1252
  495.  
  496. structure iso8859_15
  497.     {
  498. # conversion ISO-15 --> 1252
  499.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #80
  500.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #88
  501.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #90
  502.     ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',      #98
  503. '\160', 'í', 'ó', 'ú', 'Ç', 'Ñ', 'è', 'º',      #a0
  504.     'Ü', '⌐', '¬', '½', '¼', '-', '«', '-',      #a8
  505.    '░', '▒', '▓', '│', 'Ä', '╡', '╢', '╖',      #b0
  506.     '₧', '╣', '║', '╗', 'î', '£', 'ƒ', '┐',      #b8
  507.    '└', '┴', '┬', '├', '─', '┼', '╞', '╟',      #c0
  508.     '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',      #c8
  509.    '╨', '╤', '╥', '╙', '╘', '╒', '╓', '╫',      #d0
  510.    '╪', '┘', '┌', '█', '▄', '▌', '▐', '▀',      #d8
  511.    'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'τ',      #e0
  512.    'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',      #e8
  513.    '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈',      #f0
  514.    '°', '∙', '·', '√', 'ⁿ', '²', '■', ' ',      #f8
  515.    0
  516.     };
  517.  
  518.  
  519. ###----------------------------------------------------------------
  520. ##                K O I - 8 R             (Cyrilic)
  521. ###----------------------------------------------------------------
  522. ## Bulgarian, Bielorussian, English, Macedonian, Russian,
  523. ## Serbo-Croatian and Ukrainian.
  524. ##
  525. ## optimal conversion into CP855, CP866, CP1251
  526.  
  527. structure koi8_r
  528.    {
  529. # conversion KOI8-R --> 1251
  530.     '-', '|', '+', '+', '+', '+', '|', '|',      #80
  531.     '-', '-', '+', '#', '#', '#', '#', '#',      #88
  532.     '#', '#', '#', '|', '#', '?', '?', '~',      #90
  533.     '?', '?', ' ', '|', '?', '2', '.', '/',      #98
  534.     '-', '|', '+', '╕', '+', '+', '+', '+',      #a0
  535.     '+', '+', '+', '+', '+', '+', '+', '|',      #a8
  536.     '|', '|', '|', '¿', '|', '|', '-', '-',      #b0
  537.     '-', '-', '-', '-', '+', '+', '+', '⌐',      #b8
  538.     '■', 'α', 'ß', '÷', 'Σ', 'σ', '⌠', 'π',      #c0
  539.     '⌡', 'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε',      #c8
  540.     '∩', ' ', '≡', '±', '≥', '≤', 'µ', 'Γ',      #d0
  541.     'ⁿ', '√', 'τ', '°', '²', '∙', '≈', '·',      #d8
  542.     '▐', '└', '┴', '╓', '─', '┼', '╘', '├',      #e0
  543.     '╒', '╚', '╔', '╩', '╦', '╠', '═', '╬',      #e8
  544.     '╧', '▀', '╨', '╤', '╥', '╙', '╞', '┬',      #f0
  545.     '▄', '█', '╟', '╪', '▌', '┘', '╫', '┌',      #f8
  546.    0
  547.     };
  548.  
  549.  
  550. ###----------------------------------------------------------------
  551. ##                W I N D O W S - 1 2 X X
  552. ###----------------------------------------------------------------
  553. ##
  554. ## optimal conversion transparent
  555.  
  556. structure cp_WIN
  557. #echo WIN transparent
  558.    {
  559.     'Ç', '?', 'é', 'â', 'ä', 'à', 'å', 'ç',
  560.     'ê', 'ë', 'è', 'ï', 'î', '?', 'Ä', '?',
  561.     '?', ''', ''', 'ô', 'ö', 'ò', '-', '-',
  562.     'ÿ', 'Ö', 'Ü', '¢', '£', '?', '₧', 'ƒ',
  563.     ' ', 'í', 'ó', 'ú', 'ñ', 'Ñ', 'ª', 'º',
  564.     '¿', '⌐', '¬', '½', '¼', '¡', '«', '»',
  565.     '░', '▒', '▓', '│', '┤', '╡', '╢', '╖',
  566.     '╕', '╣', '║', '╗', '╝', '╜', '╛', '┐',
  567.     '└', '┴', '┬', '├', '─', '┼', '╞', '╟',
  568.     '╚', '╔', '╩', '╦', '╠', '═', '╬', '╧',
  569.     '╨', '╤', '╥', '╙', '╘', '╒', '╓', '╫',
  570.     '╪', '┘', '┌', '█', '▄', '▌', '▐', '▀',
  571.     'α', 'ß', 'Γ', 'π', 'Σ', 'σ', 'µ', 'τ',
  572.     'Φ', 'Θ', 'Ω', 'δ', '∞', 'φ', 'ε', '∩',
  573.     '≡', '±', '≥', '≤', '⌠', '⌡', '÷', '≈',
  574.     '°', '∙', '·', '√', 'ⁿ', '²', '■', ' ',
  575.       0
  576.    };
  577.  
  578.  
  579. charset_list _mime_csets
  580.    {
  581.    "ISO-8859-1",   iso8859_1,
  582.    "ISO-8859-2",   iso8859_2,
  583.    "ISO-8859-3",   iso8859_3,
  584.    "ISO-8859-4",   iso8859_4,
  585.    "ISO-8859-5",   iso8859_5,
  586.    "ISO-8859-6",   iso8859_6,
  587.    "ISO-8859-7",   iso8859_7,
  588.    "ISO-8859-8",   iso8859_8,
  589.    "ISO-8859-9",   iso8859_9,
  590.    "ISO-8859-15",  iso8859_15,
  591.    "KOI8-R",       koi8_r,
  592.    "WINDOWS-1250", cp_WIN,      # Windows codepages transparent
  593.    "WINDOWS-1251", cp_WIN,      #
  594.    "WINDOWS-1252", cp_WIN,      #
  595.    "WINDOWS-1253", cp_WIN,      #
  596.    "WINDOWS-1254", cp_WIN,      #
  597.    "WINDOWS-1257", cp_WIN,      #
  598.    "", -1
  599.    };
  600.  
  601.