2006-10-26 15:01:45 +00:00
|
|
|
# FIXME: Have a look at the encodings known by the inputenc package and add
|
2006-11-03 10:38:30 +00:00
|
|
|
# missing ones. Caution: File format change!
|
2000-10-10 12:36:36 +00:00
|
|
|
|
2007-05-06 20:26:02 +00:00
|
|
|
# Note that you can only add singlebyte encodings to this file.
|
|
|
|
# LyX does not support the output of multibyte encodings (e.g. utf16).
|
2013-01-20 00:52:30 +00:00
|
|
|
# It does support singlebyte encodings with variable width (e.g. utf8).
|
2007-05-06 20:26:02 +00:00
|
|
|
# These are marked with the "variable" keyword.
|
|
|
|
# Fixed width encodings are marked with the "fixed" keyword.
|
2012-12-30 19:39:33 +00:00
|
|
|
# The code points of TeX control characters like {, } and \ can occur in the
|
|
|
|
# second byte of some variable width encodings. These encodings must not be
|
|
|
|
# set as document encodings and are marked with the "variableunsafe" keyword.
|
|
|
|
# They are only needed for proper tex2lyx import.
|
2007-02-23 20:13:06 +00:00
|
|
|
|
2013-01-20 00:52:30 +00:00
|
|
|
# Most encodings require loading a latex package such as "inputenc" or "CJK".
|
|
|
|
# There is no "japanese" latex package, rather this keyword indicates to LyX
|
|
|
|
# to switch the buffer format and use platex instead of standard (pdf)latex.
|
|
|
|
# In this case, TeX control characters in high bytes is not a problem.
|
|
|
|
# The invocation is platex -kanji=<LaTeX name>
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# The set of "iconv" supported encodings is system dependent.
|
|
|
|
|
|
|
|
# For Gnu libiconv, supported encodings are listed at
|
|
|
|
# https://www.gnu.org/software/libiconv/
|
|
|
|
# and available via the `iconv --list` command.
|
|
|
|
|
2013-01-20 00:52:30 +00:00
|
|
|
# Syntax: Encoding <LyX name> <LaTeX name> <GUI name> <iconv name> <width> <package> End
|
|
|
|
|
|
|
|
# LyX name: Name used by the file format and in lib/languages. Must be unique!
|
|
|
|
# LaTeX name: Used in the latex export or passed to platex as command-line switch.
|
|
|
|
# GUI name: Displayed in document settings.
|
|
|
|
# iconv name: Used by iconv.
|
|
|
|
# width: One of fixed, variable, or variableunsafe (see above).
|
|
|
|
# package: One of none, inputenc, CJK, or japanese (see above).
|
2000-10-10 12:36:36 +00:00
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# Encodings used with inputenc.sty
|
|
|
|
# ================================
|
|
|
|
|
|
|
|
# "inputenc" is a base LaTeX package that provides an extensible framework
|
|
|
|
# for conversion of a document encoding into an "LaTeX Internal Character
|
|
|
|
# Representation" (LICR) and a set of encoding definitions
|
|
|
|
# (<LaTeX name>.def files). Additional encoding definitions are provided by
|
|
|
|
# several language support packages.
|
|
|
|
#
|
|
|
|
# The following encodings from http://www.ctan.org/pkg/latex-cyrillic are
|
|
|
|
# not included, because they are not widely used and lack iconv support:
|
|
|
|
# ctt, dbk, isoir111, koi8-ru, lcyenc, maccyr, macukr, mik, mls, mnk, mos,
|
|
|
|
# and pt254.
|
|
|
|
|
|
|
|
# inputenc's standard utf8 support:
|
2019-06-12 09:48:47 +00:00
|
|
|
Encoding utf8 utf8 "Default" UTF-8 variable inputenc
|
2006-11-03 10:38:30 +00:00
|
|
|
End
|
2000-10-10 12:36:36 +00:00
|
|
|
|
2019-01-23 23:36:33 +00:00
|
|
|
# extended utf8 support from the "ucs" package:
|
|
|
|
# Larger set of supported characters but conflicts with some packages.
|
2019-06-12 09:48:47 +00:00
|
|
|
Encoding utf8x utf8x "Extended [ucs] (utf8x)" UTF-8 variable inputenc
|
2007-02-13 17:36:55 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/armtex
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding armscii8 armscii8 "Armenian (ArmSCII8)" ARMSCII-8 fixed inputenc
|
2007-05-01 17:48:04 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-1 latin1 "Western European (ISO 8859-1)" ISO-8859-1 fixed inputenc
|
2000-10-10 12:36:36 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-2 latin2 "Central European (ISO 8859-2)" ISO-8859-2 fixed inputenc
|
2001-03-06 11:04:43 +00:00
|
|
|
End
|
|
|
|
|
2008-07-25 23:03:52 +00:00
|
|
|
Encoding iso8859-3 latin3 "South European (ISO 8859-3)" ISO-8859-3 fixed inputenc
|
2000-10-10 12:36:36 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-4 latin4 "Baltic (ISO 8859-4)" ISO-8859-4 fixed inputenc
|
2000-10-10 12:36:36 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/latex-cyrillic
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-5 iso88595 "Cyrillic (ISO 8859-5)" ISO-8859-5 fixed inputenc
|
2000-10-10 12:36:36 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/arabi
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-6 8859-6 "Arabic (ISO 8859-6)" ISO-8859-6 fixed inputenc
|
2004-06-22 06:08:11 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/greek-inputenc
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-7 iso-8859-7 "Greek (ISO 8859-7)" ISO-8859-7 fixed inputenc
|
2001-05-22 13:27:52 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-8 8859-8 "Hebrew (ISO 8859-8)" ISO-8859-8 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-9 latin5 "Turkish (ISO 8859-9)" ISO-8859-9 fixed inputenc
|
2000-10-10 12:36:36 +00:00
|
|
|
End
|
|
|
|
|
2016-11-07 23:04:02 +00:00
|
|
|
Encoding iso8859-13 latin7 "Baltic (ISO 8859-13)" ISO-8859-13 fixed inputenc
|
2001-03-06 11:04:43 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-15 latin9 "Western European (ISO 8859-15)" ISO-8859-15 fixed inputenc
|
2006-10-26 15:01:45 +00:00
|
|
|
End
|
2001-03-06 11:04:43 +00:00
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding iso8859-16 latin10 "South-Eastern European (ISO 8859-16)" ISO-8859-16 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2009-06-12 08:47:38 +00:00
|
|
|
Encoding applemac applemac "Western European (Macintosh Roman)" Macintosh fixed inputenc
|
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp437 cp437 "DOS (CP 437)" CP437 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# like cp437, but on position 225 is sz instead of beta
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp437de cp437de "DOS-de (CP 437-de)" CP437 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp850 cp850 "Western European (CP 850)" CP850 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp852 cp852 "Central European (CP 852)" CP852 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/latex-cyrillic
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp855 cp855 "Cyrillic (CP 855)" CP855 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# Gnu iconv only supports cp858, if configured with "--enable-extra-encodings"
|
|
|
|
# (see https://www.gnu.org/software/libiconv/)
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp858 cp858 "Western European (CP 858)" CP858 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp862 cp862 "Hebrew (CP 862)" CP862 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp865 cp865 "Nordic languages (CP 865)" CP865 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/latex-cyrillic
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp866 cp866 "Cyrillic (CP 866)" CP866 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp1250 cp1250 "Central European (CP 1250)" CP1250 fixed inputenc
|
2000-10-10 12:36:36 +00:00
|
|
|
End
|
2001-01-26 10:31:18 +00:00
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/latex-cyrillic
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp1251 cp1251 "Cyrillic (CP 1251)" CP1251 fixed inputenc
|
2006-10-26 15:01:45 +00:00
|
|
|
End
|
2001-01-26 10:31:18 +00:00
|
|
|
|
2009-09-22 13:05:43 +00:00
|
|
|
# "ansinew" is harcoded as a synonym of this (see Encodings::fromLaTeXName)
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp1252 cp1252 "Western European (CP 1252)" CP1252 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp1255 cp1255 "Hebrew (CP 1255)" CP1255 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/arabi
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp1256 cp1256 "Arabic (CP 1256)" CP1256 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding cp1257 cp1257 "Baltic (CP 1257)" CP1257 fixed inputenc
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/latex-cyrillic
|
2013-01-20 00:52:30 +00:00
|
|
|
Encoding koi8-r koi8-r "Cyrillic (KOI8-R)" KOI8-R fixed inputenc
|
2001-01-26 10:31:18 +00:00
|
|
|
End
|
2001-03-06 13:46:08 +00:00
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/latex-cyrillic
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding koi8-u koi8-u "Cyrillic (KOI8-U)" KOI8-U fixed inputenc
|
2006-10-26 15:01:45 +00:00
|
|
|
End
|
2001-03-06 13:46:08 +00:00
|
|
|
|
2016-12-06 11:51:32 +00:00
|
|
|
# from http://www.ctan.org/pkg/latex-cyrillic
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding pt154 pt154 "Cyrillic (pt 154)" PT154 fixed inputenc
|
2007-05-06 20:26:02 +00:00
|
|
|
End
|
|
|
|
|
2019-01-08 09:52:20 +00:00
|
|
|
# from https://ctan.org/pkg/babel-thai
|
|
|
|
Encoding tis620-0 tis620 "Thai (TIS 620-0)" TIS620-0 fixed inputenc
|
|
|
|
End
|
|
|
|
|
|
|
|
|
2007-05-06 20:26:02 +00:00
|
|
|
# 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.
|
|
|
|
|
|
|
|
# For traditional chinese
|
2012-12-30 19:39:33 +00:00
|
|
|
Encoding big5 Bg5 "Chinese (traditional) (Big5)" BIG5 variableunsafe CJK
|
|
|
|
End
|
2007-05-06 20:26:02 +00:00
|
|
|
|
|
|
|
# For japanese
|
2012-12-30 19:39:33 +00:00
|
|
|
# We use CP932 and not SJIS, since it is a super set of SJIS except that it
|
|
|
|
# translates SJIS 0x5c to U+005C (REVERSE SOLIDUS aka backslash) instead of
|
|
|
|
# U+00A5 (YEN SIGN). Strictly speaking this is wrong, but there is a long
|
|
|
|
# standing confusion which translation is correct, and using CP932 is also
|
|
|
|
# consistent with the SJIS example file <texmf>/doc/latex/cjk/examples/SJIS.tex
|
|
|
|
# of the CJK package. The CP932 extensions over SJIS do not matter here.
|
|
|
|
Encoding shift-jis SJIS "Japanese (CJK) (SJIS)" CP932 variableunsafe CJK
|
|
|
|
End
|
2007-05-06 20:26:02 +00:00
|
|
|
|
|
|
|
# The following encodings need hardcoded support of the encodable unicode
|
|
|
|
# range, but are known by iconv:
|
|
|
|
|
|
|
|
# For simplified chinese
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding euc-cn GB "Chinese (simplified) (EUC-CN)" EUC-CN variable CJK
|
2001-03-06 13:46:08 +00:00
|
|
|
End
|
2002-07-03 14:18:32 +00:00
|
|
|
|
2007-05-06 20:26:02 +00:00
|
|
|
# For simplified chinese
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding gbk GBK "Chinese (simplified) (GBK)" GBK variable CJK
|
2007-05-06 20:26:02 +00:00
|
|
|
End
|
2007-05-07 06:00:29 +00:00
|
|
|
|
2007-05-06 20:26:02 +00:00
|
|
|
# For japanese
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding jis JIS "Japanese (CJK) (JIS)" ISO-2022-JP variable CJK
|
2002-07-03 14:18:32 +00:00
|
|
|
End
|
2006-12-28 18:15:25 +00:00
|
|
|
|
2007-05-06 20:26:02 +00:00
|
|
|
# For korean
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding euc-kr KS "Korean (EUC-KR)" EUC-KR variable CJK
|
2006-12-28 18:15:25 +00:00
|
|
|
End
|
2007-02-16 18:29:48 +00:00
|
|
|
|
2007-05-06 20:26:02 +00:00
|
|
|
# The CJK package has yet another name for utf8...
|
2019-06-12 09:48:47 +00:00
|
|
|
Encoding utf8-cjk UTF8 "Extended [CJK] (Chinese/Japanese/Korean)" UTF-8 variable CJK
|
2007-05-06 20:26:02 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
# For traditional chinese
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding euc-tw EUC-TW "Chinese (traditional) (EUC-TW)" EUC-TW variable CJK
|
2007-05-06 20:26:02 +00:00
|
|
|
End
|
|
|
|
|
|
|
|
# For japanese
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding euc-jp EUC-JP "Japanese (CJK) (EUC-JP)" EUC-JP variable CJK
|
2007-05-06 20:26:02 +00:00
|
|
|
End
|
|
|
|
|
2007-05-07 06:00:29 +00:00
|
|
|
# encodings that do not use a package
|
2007-05-06 20:26:02 +00:00
|
|
|
|
2008-08-19 07:05:09 +00:00
|
|
|
# Traditional Japanese TeX programs require the japanese package.
|
|
|
|
# that is incompatible with CJK and inputenc.
|
2013-01-20 00:52:30 +00:00
|
|
|
Encoding euc-jp-platex euc "Japanese (pLaTeX) (EUC-JP)" EUC-JP variable japanese
|
2007-10-08 00:18:11 +00:00
|
|
|
End
|
2013-01-20 00:52:30 +00:00
|
|
|
Encoding jis-platex jis "Japanese (pLaTeX) (JIS)" ISO-2022-JP variable japanese
|
2008-03-29 23:25:40 +00:00
|
|
|
End
|
2013-01-20 00:52:30 +00:00
|
|
|
Encoding shift-jis-platex sjis "Japanese (pLaTeX) (SJIS)" CP932 variable japanese
|
|
|
|
End
|
2019-06-12 09:48:47 +00:00
|
|
|
Encoding utf8-platex utf8 "Extended [pLaTeX] (Japanese)" UTF-8 variable japanese
|
2007-10-08 00:18:11 +00:00
|
|
|
End
|
|
|
|
|
2019-01-08 09:52:20 +00:00
|
|
|
# A plain utf8 encoding that does not use the inputenc package
|
|
|
|
# nor the LyX-added conversions in lib/unicodesymbols.
|
|
|
|
# Such an encoding is required for XeTeX and LuaTeX.
|
2019-06-12 09:48:47 +00:00
|
|
|
Encoding utf8-plain utf8-plain "Pass-Through" UTF-8 variable none
|
2007-05-07 06:00:29 +00:00
|
|
|
End
|
2007-05-06 20:26:02 +00:00
|
|
|
|
2007-02-16 18:29:48 +00:00
|
|
|
# Pure 7bit ASCII encoding (partially hardcoded in LyX)
|
2008-07-11 08:56:17 +00:00
|
|
|
Encoding ascii ascii "ASCII" ascii fixed none
|
2007-02-16 18:29:48 +00:00
|
|
|
End
|
2017-12-24 16:10:42 +00:00
|
|
|
|
|
|
|
# Semantic encodings
|
|
|
|
|
|
|
|
# Inherit encoding of the context (used by verbatim)
|
|
|
|
Encoding inherit inherit "" "" fixed none
|
|
|
|
End
|