home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78a98.iso
/
E-MAIL
/
W32
/
W32-255.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
'╪', '┘', '┌', '█', '▄', '▌', '▐', '▀', #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
'╪', '┘', '┌', '█', '▄', '▌', '▐', '▀', #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', 'è', '▀', #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', '¡', '▐', '¥', #a8
'░', 'α', '₧', '║', '┤', 'i', '∩', 'Ä', #b0
'Å', '≡', 'τ', '∞', 't', '?', '■', '?', #b8
'┬', 'A', 'A', 'A', '─', '┼', '»', '┴', #c0
'╚', '╔', '╞', 'E', '╦', 'I', 'I', '╬', #c8
'D', '╥', '╘', '═', 'O', '╒', '╓', '╫', #d0
'╪', 'U', 'U', '▄', 'U', 'U', '█', '▀', #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
'╪', '┘', '┌', '█', '▄', '▌', '▐', '▀', #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
'╪', '┘', '┌', '█', '▄', '▌', '▐', '▀', #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
'╪', '┘', '┌', '█', '▄', '▌', '▐', '▀', #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
'▐', '└', '┴', '╓', '─', '┼', '╘', '├', #e0
'╒', '╚', '╔', '╩', '╦', '╠', '═', '╬', #e8
'╧', '▀', '╨', '╤', '╥', '╙', '╞', '┬', #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
};