X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fencodings;h=a21a374ac85e1bf6e0dfe5fe885cc17169fdf6b4;hb=ae9dad17702242b63ca6043002a6e500734e9296;hp=db90f31121d7be5605b4a9c29c0934585ecb196a;hpb=9fd8a869616cad617d0db8b022119c35855ea39d;p=lyx.git diff --git a/lib/encodings b/lib/encodings index db90f31121..a21a374ac8 100644 --- a/lib/encodings +++ b/lib/encodings @@ -1,116 +1,189 @@ # FIXME: Have a look at the encodings known by the inputenc package and add # missing ones. Caution: File format change! -# Order of names: LyX name LaTeX name iconv name +# Note that you can only add singlebyte encodings to this file. +# LyX does not support the output of multibyte encodings (e.g. utf16). +# It does support singlebyte encodings with variable with (e.g. utf8). +# These are marked with the "variable" keyword. +# Fixed width encodings are marked with the "fixed" keyword. -Encoding utf8 utf8 UTF-8 +# Syntax: Encoding fixed|variable End + +# encodings used by inputenc.sty + +Encoding utf8 utf8 UTF-8 variable inputenc End # This one is used by many CJK packages. utf8 is supposed to be the successor, # but does not have all features of utf8x yet. -Encoding utf8x utf8x UTF-8 +Encoding utf8x utf8x UTF-8 variable inputenc +End + +# This encoding is used to typeset Armenian using the armTeX package +Encoding armscii8 armscii8 ARMSCII-8 fixed inputenc End -Encoding iso8859-1 latin1 ISO-8859-1 +Encoding iso8859-1 latin1 ISO-8859-1 fixed inputenc End -Encoding iso8859-2 latin2 ISO-8859-2 +Encoding iso8859-2 latin2 ISO-8859-2 fixed inputenc End -Encoding iso8859-3 latin3 ISO-8859-3 +Encoding iso8859-3 latin3 ISO-8859-3 fixed inputenc End -Encoding iso8859-4 latin4 ISO-8859-4 +Encoding iso8859-4 latin4 ISO-8859-4 fixed inputenc End -Encoding iso8859-5 iso88595 ISO-8859-5 +Encoding iso8859-5 iso88595 ISO-8859-5 fixed inputenc End # Not standard, see http://tug.ctan.org/tex-archive/language/arabic/arabi/arabi/texmf/latex/arabi/ -Encoding iso8859-6 8859-6 ISO-8859-6 +Encoding iso8859-6 8859-6 ISO-8859-6 fixed inputenc End -Encoding iso8859-7 iso-8859-7 ISO-8859-7 +Encoding iso8859-7 iso-8859-7 ISO-8859-7 fixed inputenc End -Encoding iso8859-8 8859-8 ISO-8859-8 +Encoding iso8859-8 8859-8 ISO-8859-8 fixed inputenc End -Encoding iso8859-9 latin5 ISO-8859-9 +Encoding iso8859-9 latin5 ISO-8859-9 fixed inputenc End # Not standard, see http://www.vtex.lt/tex/littex/index.html -Encoding iso8859-13 l7xenc ISO-8859-13 +Encoding iso8859-13 l7xenc ISO-8859-13 fixed inputenc End -Encoding iso8859-15 latin9 ISO-8859-15 +Encoding iso8859-15 latin9 ISO-8859-15 fixed inputenc End -Encoding iso8859-16 latin10 ISO-8859-16 +Encoding iso8859-16 latin10 ISO-8859-16 fixed inputenc End -Encoding cp437 cp437 CP437 +Encoding cp437 cp437 CP437 fixed inputenc End # cp437, but on position 225 is sz instead of beta -Encoding cp437de cp437de CP437 +Encoding cp437de cp437de CP437 fixed inputenc End -Encoding cp850 cp850 CP850 +Encoding cp850 cp850 CP850 fixed inputenc End -Encoding cp852 cp852 CP852 +Encoding cp852 cp852 CP852 fixed inputenc End -Encoding cp855 cp855 CP855 +Encoding cp855 cp855 CP855 fixed inputenc End -Encoding cp858 cp858 CP858 +Encoding cp858 cp858 CP858 fixed inputenc End -Encoding cp862 cp862 CP862 +Encoding cp862 cp862 CP862 fixed inputenc End -Encoding cp865 cp865 CP865 +Encoding cp865 cp865 CP865 fixed inputenc End -Encoding cp866 cp866 CP866 +Encoding cp866 cp866 CP866 fixed inputenc End -Encoding cp1250 cp1250 CP1250 +Encoding cp1250 cp1250 CP1250 fixed inputenc End -Encoding cp1251 cp1251 CP1251 +Encoding cp1251 cp1251 CP1251 fixed inputenc End -Encoding cp1252 cp1252 CP1252 +Encoding cp1252 cp1252 CP1252 fixed inputenc End -Encoding cp1255 cp1255 CP1255 +Encoding cp1255 cp1255 CP1255 fixed inputenc End # Not standard, see http://tug.ctan.org/tex-archive/language/arabic/arabi/arabi/texmf/latex/arabi/ -Encoding cp1256 cp1256 CP1256 +Encoding cp1256 cp1256 CP1256 fixed inputenc +End + +Encoding cp1257 cp1257 CP1257 fixed inputenc +End + +Encoding koi8 koi8-r KOI8-R fixed inputenc +End + +Encoding koi8-u koi8-u KOI8-U fixed inputenc +End + +Encoding pt154 pt154 PT154 fixed inputenc +End + +Encoding pt254 pt254 PT254 fixed inputenc +End + +# encodings used by CJK.sty + +# The following encodings that are supported by the CJK package are not +# included here, because they are not widely used and lack proper iconv support: +# Bg5+, GBt +# See the NOTES file of libiconv for details. + +# The following encodings can't be handled directly, because the code points +# of TeX control characters like {, } and \ can occur in the second byte: + +# For traditional chinese +#Encoding big5 Bg5 BIG5 variable CJK +#End + +# For japanese +#Encoding shift-jis SJIS SJIS variable CJK +#End + +# The following encodings need hardcoded support of the encodable unicode +# range, but are known by iconv: + +# For simplified chinese +Encoding euc-cn GB EUC-CN variable CJK End -Encoding cp1257 cp1257 CP1257 +# For simplified chinese +Encoding gbk GBK GBK variable CJK End -Encoding koi8 koi8-r KOI8-R +# For japanese +Encoding jis JIS JIS variable CJK End -Encoding koi8-u koi8-u KOI8-U +# For korean +Encoding euc-kr KS EUC-KR variable CJK End +# The CJK package has yet another name for utf8... +Encoding utf8-cjk UTF8 UTF-8 variable CJK +End + +# For traditional chinese +Encoding euc-tw EUC-TW EUC-TW variable CJK +End + +# For japanese +Encoding euc-jp EUC-JP EUC-JP variable CJK +End + +# encodings that do not use a package + # This one needs hardcoded support, since the inputenc package does not know -# tis620-0, and thailatex sets up babel directly to use tis620-0, so the value -# for inputenc is never output to .tex files (but needed for the hardcoded +# tis620-0, and thailatex sets up babel directly to use tis620-0, so the +# LaTeX name is never output to .tex files (but needed for the hardcoded # tis620-0 support). -Encoding tis620-0 tis620-0 TIS620-0 +Encoding tis620-0 tis620-0 TIS620-0 fixed none End -Encoding pt154 pt154 PT154 +# A plain utf8 encoding that does not use the inputenc package. +# Such an encoding is required for XeTeX. +Encoding utf8-plain utf8-plain UTF-8 variable none End -Encoding pt254 pt254 PT254 +# Pure 7bit ASCII encoding (partially hardcoded in LyX) +Encoding ascii ascii ascii fixed none End +