home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 1997
/
CT_SW_97.ISO
/
pc
/
software
/
kommunik
/
win95
/
w32-253.exe
/
WPM-LMTT.R
< prev
Wrap
Text File
|
1996-12-18
|
15KB
|
376 lines
##
## WPM-LMTT.R (Local Mime Translation Table)
## Copyright (c) 1994, David Harris, All Rights Reserved.
##
## This file can be used as a model for a local resource which
## maps ISO character sets to the code pages in use on the PCs
## at your site.
##
## Character translation tables:
## Each translation table maps the characters in a particular
## ISO set to your codepage's character set: the table can be used
## bidirectionally when composing or decoding quoted-printable or
## 8BIT messages. Only characters from 128-255 are included in
## the table, and each table must end with an ASCII NUL (0).
##
## The sample tables in this file are the ones Pegasus Mail uses
## by default: they map ISO character sets to the standard IBM
## code page 437. You may define as many character sets as you
## wish and Pegasus Mail will use them to translate incoming mail
## but for outgoing mail it will only use ISO character sets.
##
## The last resource in the file must be a "charset_list"
## structure which ties the character strings naming an ISO
## character set to the resource which maps it.
##
#==========================================================
#
# OPTIMAL CHARACTER TRANSLATIONS, should be used as
# a example for user defined tables in multilanguage fonts
# environment.
#
# WEST ISO-8859-1 --> CP 1252
# CE ISO-8859-2 --> CP 1250
# TR,AFR ISO-8859-3 --> ? CP 1252
# BALTIC ISO-8859-4 --> CP 1257
# CYR ISO-8859-5 --> CP 1251
# ARAB ISO-8859-6 --> CP 1256
# GREEK ISO-8859-7 --> CP 1253
# HEBR ISO-8859-8 --> CP 1255
# TR ISO-8859-9 --> CP 1254
# RUSS KOI-8R --> CP 1251
# VIETN CP 1258 (currently not implemented)
# ISO-8859-10 ??? (currently not implemented)
# Conversion tables from Jiri Kuchta, 8-12-96, kuchta@fee.vutbr.cz
#
#=========================================================
##
## To use this file, modify it as required, then compile it with
## the Pegasus Mail system resource compiler, RESCOM, using the
## command 'rescom PM-LMTT.R'. This will produce the file
## PM-LMTT.RSC, which should be copied into the same directory
## as PMAIL.EXE, or into your home mailbox.
##
## The "charset_list" type is used to tie a particular name of
## a character set to the table used to decode it.
##
typedef charset_list 25
{
repeat,
string 20, # Character set name
integer # resource ID of table to load.
};
###----------------------------------------------------------------
## I S O - 8 8 5 9 - 1 (Latin 1)
###----------------------------------------------------------------
## Danish, Dutch, English, Faeroese, Finnish, French, German, Icelandic,
## Irish, Italian, Norwegian, Portuguese, Spanish and Swedish.
##
## optimal conversion into CP850, CP1252
structure iso8859_1
{
# conversion ISO-1 --> 1252
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160', '°', '¢', '£', '§', '•', '|', 'ß', #a0
'®', '©', '™', '´', '¨', '≠', 'Æ', 'ñ', #a8
'∞', '±', '≤', '≥', '¥', 'µ', '∂', '∑', #b0
'∏', 'π', '∫', 'ª', 'º', 'Ω', 'æ', 'ø', #b8
'¿', '¡', '¬', '√', 'ƒ', '≈', 'Δ', '«', #c0
'»', '…', ' ', 'À', 'Ã', 'Õ', 'Œ', 'œ', #c8
'–', '—', '“', '”', '‘', '’', '÷', '◊', #d0
'ÿ', 'Ÿ', '⁄', '€', '‹', '›', 'fi', 'fl', #d8
'‡', '·', '‚', '„', '‰', 'Â', 'Ê', 'Á', #e0
'Ë', 'È', 'Í', 'Î', 'Ï', 'Ì', 'Ó', 'Ô', #e8
'', 'Ò', 'Ú', 'Û', 'Ù', 'ı', 'ˆ', '˜', #f0
'¯', '˘', '˙', '˚', '¸', '˝', '˛', 'ˇ', #f8
0
};
###----------------------------------------------------------------
## I S O - 8 8 5 9 - 2 (Latin 2)
###----------------------------------------------------------------
## Albanian, Czech, English, German, Hungarian, Polish, Rumanian,
## Serbo-Croatian, Slovak, Slovene and Swedish.
##
## optimal conversion into CP852, CP1250
structure iso8859_2
{
# conversion ISO-2 --> 1250 (CE)
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160', '•', '¢', '£', '§', 'º', 'å', 'ß', #a0
'®', 'ä', '™', 'ç', 'è', '≠', 'é', 'Ø', #a8
'∞', 'π', '≤', '≥', '¥', 'æ', 'ú', '°', #b0
'∏', 'ö', '∫', 'ù', 'ü', 'Ω', 'û', 'ø', #b8
'¿', '¡', '¬', '√', 'ƒ', '≈', 'Δ', '«', #c0
'»', '…', ' ', 'À', 'Ã', 'Õ', 'Œ', 'œ', #c8
'–', '—', '“', '”', '‘', '’', '÷', '◊', #d0
'ÿ', 'Ÿ', '⁄', '€', '‹', '›', 'fi', 'fl', #d8
'‡', '·', '‚', '„', '‰', 'Â', 'Ê', 'Á', #e0
'Ë', 'È', 'Í', 'Î', 'Ï', 'Ì', 'Ó', 'Ô', #e8
'', 'Ò', 'Ú', 'Û', 'Ù', 'ı', 'ˆ', '˜', #f0
'¯', '˘', '˙', '˚', '¸', '˝', '˛', '∑', #f8
0
};
###----------------------------------------------------------------
## I S O - 8 8 5 9 - 3 (Latin 3)
###----------------------------------------------------------------
## Afrikaans, Catalan, English, Esperanto, French, Galician, German,
## Italian, Maltese and Turkish.
##
## optimal conversion into CP85x, CP125x
structure iso8859_3
{
# conversion ISO-3 --> 1252
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160', 'H', 'Ø', '£', '§', ' ', 'H', 'ß', #a0
'®', 'I', 'S', 'G', 'J', '≠', ' ', 'Z', #a8
'∞', 'h', '≤', '≥', '¥', 'µ', 'h', '∑', #b0
'∏', 'i', 's', 'g', 'j', 'Ω', ' ', 'z', #b8
'¿', '¡', '¬', ' ', 'ƒ', 'C', 'C', '«', #c0
'»', '…', ' ', 'À', 'Ã', 'Õ', 'Œ', 'œ', #c8
' ', '—', '“', '”', '‘', 'G', '÷', '◊', #d0
'G', 'Ÿ', '⁄', '€', '‹', 'U', 'ä', 'fl', #d8
'‡', '·', '‚', ' ', '‰', 'c', 'c', 'Á', #e0
'Ë', 'È', 'Í', 'Î', 'Ï', 'Ì', 'Ó', 'Ô', #e8
' ', 'Ò', 'Ú', 'Û', 'Ù', 'g', 'ˆ', '˜', #f0
'g', '˘', '˙', '˚', '¸', 'u', 'ö', 'ˇ', #f8
0
};
###----------------------------------------------------------------
## I S O - 8 8 5 9 - 4 (Latin 4)
###----------------------------------------------------------------
## Danish, English, Estonian, Finnish, German, Greenlandic, Lappish,
## Latvian, Lithuanian, Norwegian and Swedish.
##
## optimal conversion into CP85x, CP1257
structure iso8859_4
{
# conversion ISO-4 --> 1257
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160', '¿', 'k', '™', '§', 'I', 'œ', 'ß', #a0
'ç', '–', '«', 'Ã', 'T', '≠', 'fi', 'ù', #a8
'∞', '‡', 'û', '∫', '¥', 'i', 'Ô', 'é', #b0
'è', '', 'Á', 'Ï', 't', '?', '˛', '?', #b8
'¬', 'A', 'A', 'A', 'ƒ', '≈', 'Ø', '¡', #c0
'»', '…', 'Δ', 'E', 'À', 'I', 'I', 'Œ', #c8
'D', '“', '‘', 'Õ', 'O', '’', '÷', '◊', #d0
'ÿ', 'U', 'U', '‹', 'U', 'U', '€', 'fl', #d8
'‚', 'a', 'a', 'a', '‰', 'Â', 'ø', '·', #e0
'Ë', 'È', 'Ê', 'e', 'Î', 'i', 'i', 'Ó', #e8
'd', 'Ú', 'Ù', 'Ì', 'o', 'ı', 'ˆ', '˜', #f0
'¯', 'u', 'u', '¸', 'u', 'u', '˚', 'ˇ', #f8
0
};
structure iso8859_5
{
# conversion ISO-5 --> 1251
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160', '®', 'Ä', 'Å', '™', 'Ω', '≤', 'Ø', #a0
'£', 'ä', 'å', 'é', 'ç', '≠', '°', 'è', #a8
'¿', '¡', '¬', '√', 'ƒ', '≈', 'Δ', '«', #b0
'»', '…', ' ', 'À', 'Ã', 'Õ', 'Œ', 'œ', #b8
'–', '—', '“', '”', '‘', '’', '÷', '◊', #c0
'ÿ', 'Ÿ', '⁄', '€', '‹', '›', 'fi', 'fl', #c8
'‡', '·', '‚', '„', '‰', 'Â', 'Ê', 'Á', #d0
'Ë', 'È', 'Í', 'Î', 'Ï', 'Ì', 'Ó', 'Ô', #d8
'', 'Ò', 'Ú', 'Û', 'Ù', 'ı', 'ˆ', '˜', #e0
'¯', '˘', '˙', '˚', '¸', '˝', '˛', 'ˇ', #e8
'π', '∏', 'ê', 'É', '∫', 'æ', '≥', 'ø', #f0
'º', 'ö', 'ú', 'û', 'ù', ' ', '¢', 'ü', #f8
0
};
structure iso8859_6
{
## conversion ISO-6--> 1256
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160',' ', ' ', ' ', '§', ' ', ' ', ' ', #a0
' ', ' ', ' ', ' ', '\161','\173',' ', ' ', #a8
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #b0
' ', ' ', ' ', '\186',' ', ' ', ' ', '\191', #b8
' ', '\193','\194','\195','\196','\197','\198','\199', #c0
'\200','\201','\202','\203','\204','\205','\206','\207', #c8
'\208','\209','\210','\211','\212','\213','\214','\216', #d0
'\217','\218','\219',' ', ' ', ' ', ' ', ' ', #d8
'\220','\221','\222','\223','\225','\227','\228','\229', #e0
'\230','\236','\237','\240','\241','\242','\243','\245', #e8
'\246','\248','\250',' ', ' ', ' ', ' ', ' ', #f0
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #f8
0
};
###----------------------------------------------------------------
## I S O - 8 8 5 9 - 7 (Greek)
###----------------------------------------------------------------
## This set is suited for multiple-language applications involving the
## Latin and the Greek scripts. It allows handling of data and text
## expressed in Greek.
##
## optimal conversion into CP85x, CP1253
structure iso8859_7
{
## conversion ISO-7--> 1253
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160', ',', '`', '£', ' ', ' ', '¶', 'ß', #a0
'®', '©', ' ', '´', '¨', '≠', ' ', 'Ø', #a8
'∞', '±', '≤', '≥', '¥', '°', '¢', '∑', #b0
'∏', 'π', '∫', 'ª', 'º', 'Ω', 'æ', 'ø', #b8
'¿', '¡', '¬', '√', 'ƒ', '≈', 'Δ', '«', #c0
'»', '…', ' ', 'À', 'Ã', 'Õ', 'Œ', 'œ', #c8
'–', '—', ' ', '”', '‘', '’', '÷', '◊', #d0
'ÿ', 'Ÿ', '⁄', '€', '‹', '›', 'fi', 'fl', #d8
'‡', '·', '‚', '„', '‰', 'Â', 'Ê', 'Á', #e0
'Ë', 'È', 'Í', 'Î', 'Ï', 'Ì', 'Ó', 'Ô', #e8
'', 'Ò', 'Ú', 'Û', 'Ù', 'ı', 'ˆ', '˜', #f0
'¯', '˘', '˙', '˚', '¸', '˝', '˛', ' ', #f8
0
};
###----------------------------------------------------------------
## I S O - 8 8 5 9 - 8 (Hebrew)
###----------------------------------------------------------------
## This set is suited for multiple-language applications involving the
## Latin and the Hebrew scripts. It allows handling of data and text
## expressed in Hebrew.
##
## optimal conversion into CP85x, CP1255
structure iso8859_8
{
## conversion ISO-8--> 1255
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160', ' ', '¢', '£', '§', '•', '¶', 'ß', #a0
'®', '©', 'x', '´', '¨', '≠', 'Æ', '?', #a8
'∞', '±', '≤', '≥', '¥', 'µ', '∂', '∑', #b0
',', 'π', '/', 'ª', 'º', 'Ω', 'æ', ' ', #b8
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #c0
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #c8
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #d0
' ', ' ', ' ', ' ', ' ', ' ', ' ', '?', #d8
'\224','\225','\226','\227','\228','\229','\230','\231', #e0
'\232','\233','\234','\235','\236','\237','\238','\239', #e8
'\240','\241','\242','\243','\244','\245','\246','\247', #f0
'\248','\249','\250',' ', ' ', ' ', ' ', ' ', #f8
0
};
###----------------------------------------------------------------
## I S O - 8 8 5 9 - 9 (Latin 5)
###----------------------------------------------------------------
## English, Finnish, French, German, Irish, Italian, Norwegian,
## Portuguese, Spanish and Swedish and Turkish.
##
## optimal conversion into CP85x, CP1254
structure iso8859_9
{
# conversion ISO-9 --> 1254
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #80
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #88
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #90
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', #98
'\160', '°', '¢', '£', '§', '•', '¶', 'ß', #a0
'®', '©', '™', '´', '¨', '≠', 'Æ', 'Ø', #a8
'∞', '±', '≤', '≥', '¥', 'µ', '∂', '∑', #b0
'∏', 'π', '∫', 'ª', 'º', 'Ω', 'æ', 'ø', #b8
'¿', '¡', '¬', '√', 'ƒ', '≈', 'Δ', '«', #c0
'»', '…', ' ', 'À', 'Ã', 'Õ', 'Œ', 'œ', #c8
'–', '—', '“', '”', '‘', '’', '÷', '◊', #d0
'ÿ', 'Ÿ', '⁄', '€', '‹', '›', 'fi', 'fl', #d8
'‡', '·', '‚', '„', '‰', 'Â', 'Ê', 'Á', #e0
'Ë', 'È', 'Í', 'Î', 'Ï', 'Ì', 'Ó', 'Ô', #e8
'', 'Ò', 'Ú', 'Û', 'Ù', 'ı', 'ˆ', '˜', #f0
'¯', '˘', '˙', '˚', '¸', '˝', '˛', 'ˇ', #f8
0
};
###----------------------------------------------------------------
## K O I - 8 R (Cyrilic)
###----------------------------------------------------------------
## Bulgarian, Bielorussian, English, Macedonian, Russian,
## Serbo-Croatian and Ukrainian.
##
## optimal conversion into CP855, CP866, CP1251
structure koi_8r
{
# conversion KOI-8R --> 1251
'-', '|', '+', '+', '+', '+', '|', '|', #80
'-', '-', '+', '#', '#', '#', '#', '#', #88
'#', '#', '#', '|', '#', '?', '?', '~', #90
'?', '?', ' ', '|', '?', '2', '.', '/', #98
'-', '|', '+', '∏', '+', '+', '+', '+', #a0
'+', '+', '+', '+', '+', '+', '+', '|', #a8
'|', '|', '|', '®', '|', '|', '-', '-', #b0
'-', '-', '-', '-', '+', '+', '+', '©', #b8
'˛', '‡', '·', 'ˆ', '‰', 'Â', 'Ù', '„', #c0
'ı', 'Ë', 'È', 'Í', 'Î', 'Ï', 'Ì', 'Ó', #c8
'Ô', 'ˇ', '', 'Ò', 'Ú', 'Û', 'Ê', '‚', #d0
'¸', '˚', 'Á', '¯', '˝', '˘', '˜', '˙', #d8
'fi', '¿', '¡', '÷', 'ƒ', '≈', '‘', '√', #e0
'’', '»', '…', ' ', 'À', 'Ã', 'Õ', 'Œ', #e8
'œ', 'fl', '–', '—', '“', '”', 'Δ', '¬', #f0
'‹', '€', '«', 'ÿ', '›', 'Ÿ', '◊', '⁄', #f8
0
};
charset_list _mime_csets
{
"ISO-8859-1", iso8859_1,
"ISO-8859-2", iso8859_2,
"ISO-8859-3", iso8859_3,
"ISO-8859-4", iso8859_4,
"ISO-8859-5", iso8859_5,
"ISO-8859-6", iso8859_6,
"ISO-8859-7", iso8859_7,
"ISO-8859-8", iso8859_8,
"ISO-8859-9", iso8859_9,
"KOI-8R", koi_8r,
"", -1
};