lyx_mirror/lib/languages
Jürgen Spitzmüller 5b8598b48d * languages: add some comments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36296 a592a061-630c-0410-9148-cb99ea01b6c8
2010-11-14 13:41:38 +00:00

629 lines
12 KiB
Plaintext

########################################################################
#
# Languages supported by LyX.
#
# Syntax:
#
# Language <lyxname>
# GuiName "<Gui Name>"
# BabelName <babelname>
# Encoding <encoding>
# InternalEncoding <true|false>
# RTL <true|false>
# AsBabelOptions <true|false>
# LangCode <language_code>
# LangVariety <language_variety>
# PreBabelPreamble
# <extra latex code inserted before babel>
# EndPreBabelPreamble
# PostBabelPreamble
# <extra latex code inserted after babel>
# EndPostBabelPreamble
# End
#
# Omitted elements will be treated as empty
# (omitted AsBabelOptions, RTL and InternalEncoding as "false")
#
########################################################################
#
# LyX-internal languages
#
Language ignore
GuiName "Ignore"
BabelName ignore
Encoding iso8859-1
LangCode ignore
End
Language latex
GuiName "LaTeX"
Encoding iso8859-1
LangCode latex
End
#
# Real languages
#
Language afrikaans
GuiName "Afrikaans"
BabelName afrikaans
Encoding iso8859-15
LangCode af_ZA
End
Language albanian
GuiName "Albanian"
BabelName albanian
Encoding iso8859-2
LangCode sq_AL
End
Language american
GuiName "English (USA)"
BabelName american
Encoding iso8859-15
LangCode en_US
End
# FIXME: dummy babel language for arabic_arabtex to be able
# to switch the language the way of the ArabTeX-package
Language arabic_arabtex
GuiName "Arabic (ArabTeX)"
BabelName arabtex
Encoding cp1256
RTL true
LangCode ar_SA
End
Language arabic_arabi
GuiName "Arabic (Arabi)"
BabelName arabic
Encoding cp1256
RTL true
LangCode ar_SA
End
Language armenian
GuiName "Armenian"
Encoding armscii8
LangCode hy_AM
End
Language austrian
GuiName "German (Austria, old spelling)"
BabelName austrian
Encoding iso8859-15
LangCode de_AT
End
Language naustrian
GuiName "German (Austria)"
BabelName naustrian
Encoding iso8859-15
LangCode de_AT
End
Language bahasa
GuiName "Indonesian"
BabelName bahasa
Encoding iso8859-15
LangCode id_ID
End
Language bahasam
GuiName "Malay"
BabelName bahasam
Encoding iso8859-15
LangCode ms_MY
End
Language basque
GuiName "Basque"
BabelName basque
Encoding iso8859-15
LangCode eu_ES
End
Language belarusian
GuiName "Belarusian"
BabelName belarusian
Encoding cp1251
LangCode be_BY
End
Language brazilian
GuiName "Portuguese (Brazil)"
BabelName brazil
Encoding iso8859-15
LangCode pt_BR
End
Language breton
GuiName "Breton"
BabelName breton
Encoding iso8859-15
LangCode br_FR
End
Language british
GuiName "English (UK)"
BabelName british
Encoding iso8859-15
LangCode en_GB
End
Language bulgarian
GuiName "Bulgarian"
BabelName bulgarian
Encoding cp1251
LangCode bg_BG
End
Language canadian
GuiName "English (Canada)"
BabelName canadian
Encoding iso8859-15
LangCode en_CA
End
Language canadien
GuiName "French (Canada)"
BabelName canadien
Encoding iso8859-15
LangCode fr_CA
End
Language catalan
GuiName "Catalan"
BabelName catalan
Encoding iso8859-15
LangCode ca_ES
End
Language chinese-simplified
GuiName "Chinese (simplified)"
Encoding euc-cn
LangCode zh_CN
End
Language chinese-traditional
GuiName "Chinese (traditional)"
Encoding utf8-cjk
LangCode zh_CN
End
Language croatian
GuiName "Croatian"
BabelName croatian
Encoding iso8859-2
LangCode hr_HR
End
Language czech
GuiName "Czech"
BabelName czech
Encoding iso8859-2
LangCode cs_CZ
End
Language danish
GuiName "Danish"
BabelName danish
Encoding iso8859-15
LangCode da_DK
End
Language dutch
GuiName "Dutch"
BabelName dutch
Encoding iso8859-15
LangCode nl_NL
End
Language english
GuiName "English"
BabelName english
Encoding iso8859-15
LangCode en_US
End
# Esperanto has no country code because it is an auxiliary language
Language esperanto
GuiName "Esperanto"
BabelName esperanto
Encoding iso8859-3
LangCode eo
End
Language estonian
GuiName "Estonian"
BabelName estonian
Encoding iso8859-15
LangCode et_EE
End
# the preamble definitions are only used due to bugs in the
# arabi-package -- remove them if they become unnecessary!
Language farsi
GuiName "Farsi"
BabelName farsi
Encoding utf8
RTL true
LangCode fa_IR
PostBabelPreamble
\DeclareTextSymbol{\guillemotright}{LFE}{62}
\DeclareTextSymbol{\guillemotleft}{LFE}{60}
EndPostBabelPreamble
End
Language finnish
GuiName "Finnish"
BabelName finnish
Encoding iso8859-15
LangCode fi_FI
End
# We redefine \og and \fg (guillemets) for older french language definitions
Language french
GuiName "French"
BabelName french
Encoding iso8859-15
LangCode fr_FR
PostBabelPreamble
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}
}
EndPostBabelPreamble
End
Language galician
GuiName "Galician"
BabelName galician
Encoding iso8859-15
LangCode gl_ES
End
# german does not use a country code (due to the variety)
Language german
GuiName "German (old spelling)"
BabelName german
Encoding iso8859-15
LangCode de
LangVariety alt
End
Language ngerman
GuiName "German"
BabelName ngerman
Encoding iso8859-15
LangCode de_DE
End
Language german-ch
GuiName "German (Switzerland)"
BabelName ngerman
Encoding iso8859-15
LangCode de_CH
End
Language greek
GuiName "Greek"
BabelName greek
Encoding iso8859-7
InternalEncoding true
LangCode el_GR
End
Language polutonikogreek
GuiName "Greek (polytonic)"
BabelName polutonikogreek
Encoding iso8859-7
InternalEncoding true
LangCode el_GR
End
Language hebrew
GuiName "Hebrew"
BabelName hebrew
Encoding cp1255
InternalEncoding true
RTL true
LangCode he_IL
End
# "hungarian" is a synonym for the "magyar" babel language option
# "hungarian" might be used for special purposes,
# see http://www.math.bme.hu/latex/magyar_pre_tug2004.pdf
#Language hungarian
# GuiName "Hungarian"
# BabelName hungarian
# Encoding iso8859-2
## LangCode hu_HU
#End
Language icelandic
GuiName "Icelandic"
BabelName icelandic
Encoding iso8859-15
LangCode is_IS
End
# Interlingua has no country code because it is an auxiliary language
Language interlingua
GuiName "Interlingua"
BabelName interlingua
Encoding iso8859-15
LangCode ia
End
Language irish
GuiName "Irish"
BabelName irish
Encoding iso8859-15
LangCode ga_IE
End
Language italian
GuiName "Italian"
BabelName italian
Encoding iso8859-15
LangCode it_IT
End
# japanese must be loaded locally with babel options,
# not globally via class options
# http://www.lyx.org/trac/ticket/4597#c4
Language japanese
GuiName "Japanese"
BabelName japanese
Encoding jis-plain
LangCode ja_JP
AsBabelOptions true
End
Language japanese-cjk
GuiName "Japanese (CJK)"
Encoding euc-jp
LangCode ja_JP
End
Language kazakh
GuiName "Kazakh"
BabelName kazakh
Encoding pt154
LangCode kk_KZ
End
# there is no country code for Korean because ko_KR is the same as ko_KI
Language korean
GuiName "Korean"
Encoding euc-kr
LangCode ko
End
# there is no country code for Latin because it is a dead language
Language latin
GuiName "Latin"
BabelName latin
Encoding iso8859-15
LangCode la
End
# latvian must be loaded locally with babel options,
# not globally via class options
Language latvian
GuiName "Latvian"
BabelName latvian
Encoding iso8859-4
LangCode lv_LV
AsBabelOptions true
End
# lithuanian must be loaded locally with babel options,
# not globally via class options
Language lithuanian
GuiName "Lithuanian"
BabelName lithuanian
Encoding iso8859-13
LangCode lt_LT
AsBabelOptions true
End
Language lowersorbian
GuiName "Lower Sorbian"
BabelName lowersorbian
Encoding iso8859-2
LangCode dsb_DE
End
Language magyar
GuiName "Hungarian"
BabelName magyar
Encoding iso8859-2
LangCode hu_HU
End
# mongolian must be loaded locally with babel options,
# not globally via class options
Language mongolian
GuiName "Mongolian"
BabelName mongolian
Encoding utf8
LangCode mn_MN
AsBabelOptions true
End
Language norsk
GuiName "Norsk"
BabelName norsk
Encoding iso8859-15
LangCode nb_NO
End
Language nynorsk
GuiName "Nynorsk"
BabelName nynorsk
Encoding iso8859-15
LangCode nn_NO
End
Language polish
GuiName "Polish"
BabelName polish
Encoding iso8859-2
LangCode pl_PL
End
Language portuguese
GuiName "Portuguese"
BabelName portuges
Encoding iso8859-15
LangCode pt_PT
End
Language romanian
GuiName "Romanian"
BabelName romanian
Encoding iso8859-2
LangCode ro_RO
End
Language russian
GuiName "Russian"
BabelName russian
Encoding koi8
LangCode ru_RU
End
Language samin
GuiName "North Sami"
BabelName samin
Encoding iso8859-15
LangCode se_NO
End
Language scottish
GuiName "Scottish"
BabelName scottish
Encoding iso8859-15
LangCode gd_GB
End
Language serbian
GuiName "Serbian"
BabelName serbian
Encoding iso8859-5
LangCode sr_RS
End
Language serbian-latin
GuiName "Serbian (Latin)"
BabelName serbian
Encoding iso8859-2
LangCode sr_RS
End
Language slovak
GuiName "Slovak"
BabelName slovak
Encoding iso8859-2
LangCode sk_SK
End
Language slovene
GuiName "Slovene"
BabelName slovene
Encoding iso8859-2
LangCode sl_SI
End
Language spanish
GuiName "Spanish"
BabelName spanish
Encoding iso8859-15
LangCode es_ES
PostBabelPreamble
\addto\shorthandsspanish{\spanishdeactivate{~<>}}
EndPostBabelPreamble
End
Language spanish-mexico
GuiName "Spanish (Mexico)"
BabelName spanish
Encoding iso8859-15
LangCode es_MX
PostBabelPreamble
\addto\shorthandsspanish{\spanishdeactivate{~<>.}}
EndPostBabelPreamble
End
Language swedish
GuiName "Swedish"
BabelName swedish
Encoding iso8859-15
LangCode sv_SE
End
Language thai
GuiName "Thai"
BabelName thai
Encoding tis620-0
LangCode th_TH
PostBabelPreamble
\usepackage{thswitch}
EndPostBabelPreamble
End
Language turkish
GuiName "Turkish"
BabelName turkish
Encoding iso8859-9
LangCode tr_TR
End
# turkmen must be loaded locally with babel options,
# not globally via class options
Language turkmen
GuiName "Turkmen"
BabelName turkmen
Encoding utf8
LangCode tk_TM
AsBabelOptions true
End
Language ukrainian
GuiName "Ukrainian"
BabelName ukrainian
Encoding koi8-u
LangCode uk_UA
End
Language uppersorbian
GuiName "Upper Sorbian"
BabelName uppersorbian
Encoding iso8859-2
LangCode hsb_DE
End
# vietnam must be loaded locally with babel options,
# not globally via class options, see
# http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg129417.html
Language vietnamese
GuiName "Vietnamese"
BabelName vietnam
Encoding utf8
LangCode vi_VN
AsBabelOptions true
End
Language welsh
GuiName "Welsh"
BabelName welsh
Encoding iso8859-15
LangCode cy_GB
End