X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flanguages;h=e4c0dd5c941037eaaa1f4bf76ec5879ce633facf;hb=a02af82b82d87a9b632cc7181423634f2e18dd31;hp=cca56001c8a20cc15be9d6ccdc5f4e1e65e72d2c;hpb=1ea2abc77f79c1edd20dd01512920417e61074ae;p=lyx.git diff --git a/lib/languages b/lib/languages index cca56001c8..e4c0dd5c94 100644 --- a/lib/languages +++ b/lib/languages @@ -10,6 +10,7 @@ # PolyglossiaName # PolyglossiaOpts "" # Encoding +# QuoteStyle # InternalEncoding # RTL # AsBabelOptions @@ -25,10 +26,20 @@ # End # # -# NOTE: +# NOTES: # # * Omitted elements will be treated as empty (if string) or "false" # (if boolean). +# * The QuoteStyle arguments correspond to the following styles: +# - danish: >>text<< >text< (inward guillemets) +# - english: ``text'' `text' (66_99) +# - french: <> (outward guillemets) +# - german: ,,text`` ,text` (99/66) +# - polish: ,,text'' ,text' (99/99) +# - swedish: ''text'' 'text' (99_99) +# Note that the option names have been selected (rather arbitrarily) +# because the respective styles are common in the respective countries. +# Of course this does not imply any fixed relation to those countries. # * Encoding is not relevant for XeTeX (which is utf8 always), and if # Document > Settings > Language > Encoding is not set to "Language # Default" @@ -80,6 +91,7 @@ End Language afrikaans GuiName "Afrikaans" BabelName afrikaans + QuoteStyle polish Encoding iso8859-15 LangCode af_ZA End @@ -88,6 +100,7 @@ Language albanian GuiName "Albanian" BabelName albanian PolyglossiaName albanian + QuoteStyle french Encoding iso8859-2 LangCode sq_AL End @@ -97,6 +110,7 @@ Language american BabelName american PolyglossiaName english PolyglossiaOpts "variant=american" + QuoteStyle english Encoding iso8859-15 LangCode en_US End @@ -106,6 +120,7 @@ Language ancientgreek GuiName "Greek (ancient)" PolyglossiaName greek PolyglossiaOpts variant=ancient + QuoteStyle french Encoding iso8859-7 LangCode grc_GR End @@ -115,6 +130,7 @@ End Language arabic_arabtex GuiName "Arabic (ArabTeX)" BabelName arabtex + QuoteStyle french Encoding cp1256 RTL true LangCode ar_SA @@ -125,8 +141,10 @@ Language arabic_arabi GuiName "Arabic (Arabi)" BabelName arabic PolyglossiaName arabic + QuoteStyle french Encoding cp1256 RTL true + AsBabelOptions true LangCode ar_SA End @@ -134,6 +152,7 @@ End Language armenian GuiName "Armenian" PolyglossiaName armenian + QuoteStyle french Encoding utf8 LangCode hy_AM End @@ -144,21 +163,30 @@ Language australian PolyglossiaName english PolyglossiaOpts "variant=australian" Encoding iso8859-15 + QuoteStyle english LangCode en_AU End -# not yet supported by polyglossia +# In polyglossia, this is supported since release 1.33.4 (May 2014) +# We introduce it with LyX 2.2 to give the support time to settle. Language austrian GuiName "German (Austria, old spelling)" BabelName austrian + PolyglossiaName german + PolyglossiaOpts "variant=austrian,spelling=old,babelshorthands=true" + QuoteStyle german Encoding iso8859-15 LangCode de_AT End -# not yet supported by polyglossia +# In polyglossia, this is supported since release 1.33.4 (May 2014) +# We introduce it with LyX 2.2 to give the support time to settle. Language naustrian GuiName "German (Austria)" BabelName naustrian + PolyglossiaName german + PolyglossiaOpts "variant=austrian,babelshorthands=true" + QuoteStyle german Encoding iso8859-15 LangCode de_AT End @@ -167,6 +195,7 @@ Language bahasa GuiName "Indonesian" BabelName bahasa PolyglossiaName bahasai + QuoteStyle english Encoding iso8859-15 LangCode id_ID End @@ -175,6 +204,7 @@ Language bahasam GuiName "Malay" BabelName bahasam PolyglossiaName bahasam + QuoteStyle english Encoding iso8859-15 LangCode ms_MY End @@ -183,22 +213,29 @@ Language basque GuiName "Basque" BabelName basque PolyglossiaName basque + QuoteStyle french Encoding iso8859-15 LangCode eu_ES + PostBabelPreamble + \addto\extrasbasque{\bbl@deactivate{~}} + EndPostBabelPreamble End # not yet supported by polyglossia Language belarusian GuiName "Belarusian" BabelName belarusian + QuoteStyle french Encoding cp1251 LangCode be_BY + AsBabelOptions true End Language brazilian GuiName "Portuguese (Brazil)" BabelName brazil PolyglossiaName brazil + QuoteStyle english Encoding iso8859-15 LangCode pt_BR End @@ -207,6 +244,7 @@ Language breton GuiName "Breton" BabelName breton PolyglossiaName breton + QuoteStyle french Encoding iso8859-15 LangCode br_FR End @@ -216,6 +254,7 @@ Language british BabelName british PolyglossiaName english PolyglossiaOpts "variant=british" + QuoteStyle english Encoding iso8859-15 LangCode en_GB End @@ -224,6 +263,7 @@ Language bulgarian GuiName "Bulgarian" BabelName bulgarian PolyglossiaName bulgarian + QuoteStyle german Encoding cp1251 LangCode bg_BG End @@ -234,6 +274,7 @@ Language canadian BabelName canadian # PolyglossiaName english # PolyglossiaOpts "variant=canadian" + QuoteStyle english Encoding iso8859-15 LangCode en_CA End @@ -244,6 +285,7 @@ Language canadien BabelName canadien # PolyglossiaName french # PolyglossiaOpts "variant=canadien" + QuoteStyle french Encoding iso8859-15 LangCode fr_CA End @@ -253,6 +295,7 @@ Language catalan BabelName catalan PolyglossiaName catalan PolyglossiaOpts "babelshorthands=true" + QuoteStyle french Encoding iso8859-15 LangCode ca_ES End @@ -261,6 +304,7 @@ End Language chinese-simplified GuiName "Chinese (simplified)" Encoding euc-cn + QuoteStyle english LangCode zh_CN Requires CJK End @@ -268,8 +312,9 @@ End # uses CJK package Language chinese-traditional GuiName "Chinese (traditional)" + QuoteStyle english Encoding utf8-cjk - LangCode zh_CN + LangCode zh_TW Requires CJK End @@ -285,6 +330,7 @@ Language croatian GuiName "Croatian" BabelName croatian PolyglossiaName croatian + QuoteStyle polish Encoding iso8859-2 LangCode hr_HR End @@ -293,6 +339,7 @@ Language czech GuiName "Czech" BabelName czech PolyglossiaName czech + QuoteStyle german Encoding iso8859-2 LangCode cs_CZ End @@ -301,6 +348,7 @@ Language danish GuiName "Danish" BabelName danish PolyglossiaName danish + QuoteStyle danish Encoding iso8859-15 LangCode da_DK End @@ -318,6 +366,7 @@ Language dutch BabelName dutch PolyglossiaName dutch PolyglossiaOpts "babelshorthands=true" + QuoteStyle polish Encoding iso8859-15 LangCode nl_NL End @@ -326,6 +375,7 @@ Language english GuiName "English" BabelName english PolyglossiaName english + QuoteStyle english Encoding iso8859-15 LangCode en_US End @@ -336,6 +386,7 @@ Language esperanto GuiName "Esperanto" BabelName esperanto PolyglossiaName esperanto + QuoteStyle english Encoding iso8859-3 LangCode eo_EO End @@ -344,8 +395,12 @@ Language estonian GuiName "Estonian" BabelName estonian PolyglossiaName estonian + QuoteStyle polish Encoding iso8859-15 LangCode et_EE + PostBabelPreamble + \addto\extrasestonian{\bbl@deactivate{~}} + EndPostBabelPreamble End # the preamble definitions are only used due to bugs in the @@ -367,6 +422,7 @@ Language finnish GuiName "Finnish" BabelName finnish PolyglossiaName finnish + QuoteStyle swedish Encoding iso8859-15 LangCode fi_FI End @@ -376,6 +432,7 @@ Language french GuiName "French" BabelName french PolyglossiaName french + QuoteStyle french Encoding iso8859-15 LangCode fr_FR PostBabelPreamble @@ -390,8 +447,12 @@ Language galician GuiName "Galician" BabelName galician PolyglossiaName galician + QuoteStyle french Encoding iso8859-15 LangCode gl_ES + PostBabelPreamble + \addto\shorthandsgalician{\galiciandeactivate{~}} + EndPostBabelPreamble End # german does not use a country code (due to the variety) @@ -400,6 +461,7 @@ Language german BabelName german PolyglossiaName german PolyglossiaOpts "spelling=old,babelshorthands=true" + QuoteStyle german Encoding iso8859-15 LangCode de LangVariety alt @@ -410,25 +472,43 @@ Language ngerman BabelName ngerman PolyglossiaName german PolyglossiaOpts "babelshorthands=true" + QuoteStyle german Encoding iso8859-15 LangCode de_DE End -# Swiss German is not supported by babel and polyglossia yet -# We use ngerman for now (spellchecking is supported though!) +# In Babel, this is supported since release 2.7 of babel-german (Dec 2013) +# We introduce it with LyX 2.2 to give the support time to settle. +# Polyglossia does not yet support Swiss German. We use ngerman for now. Language german-ch GuiName "German (Switzerland)" - BabelName ngerman + BabelName nswissgerman PolyglossiaName german PolyglossiaOpts "babelshorthands=true" +# PolyglossiaOpts "variant=swiss,babelshorthands=true" + QuoteStyle danish Encoding iso8859-15 LangCode de_CH End +# In Babel, this is supported since release 2.7 of babel-german (Dec 2013) +# Polyglossia does not yet support Swiss German. We use german for now. +Language german-ch-old + GuiName "German (Switzerland, old spelling)" + BabelName swissgerman + PolyglossiaName german + PolyglossiaOpts "spelling=old,babelshorthands=true" +# PolyglossiaOpts "variant=swiss,spelling=old,babelshorthands=true" + QuoteStyle danish + Encoding iso8859-15 + LangCode de_CH +End + Language greek GuiName "Greek" BabelName greek PolyglossiaName greek + QuoteStyle french Encoding iso8859-7 InternalEncoding true LangCode el_GR @@ -439,6 +519,7 @@ Language polutonikogreek BabelName polutonikogreek PolyglossiaName greek PolyglossiaOpts "variant=polytonic" + QuoteStyle french Encoding iso8859-7 InternalEncoding true LangCode el_GR @@ -449,6 +530,7 @@ Language hebrew BabelName hebrew PolyglossiaName hebrew Encoding cp1255 + QuoteStyle english InternalEncoding true RTL true LangCode he_IL @@ -477,6 +559,7 @@ Language icelandic GuiName "Icelandic" BabelName icelandic PolyglossiaName icelandic + QuoteStyle german Encoding iso8859-15 LangCode is_IS End @@ -495,6 +578,7 @@ Language irish GuiName "Irish" BabelName irish PolyglossiaName irish + QuoteStyle english Encoding iso8859-15 LangCode ga_IE End @@ -503,6 +587,7 @@ Language italian GuiName "Italian" BabelName italian PolyglossiaName italian + QuoteStyle french Encoding iso8859-15 LangCode it_IT End @@ -510,13 +595,16 @@ End # japanese must be loaded locally with babel options, # not globally via class options # http://www.lyx.org/trac/ticket/4597#c4 +# Since japanese does not load fontenc, we set +# InternalEncoding to true. Language japanese GuiName "Japanese" BabelName japanese - Encoding jis-plain + Encoding jis-platex LangCode ja_JP AsBabelOptions true Requires japanese + InternalEncoding true End # uses CJK package @@ -528,26 +616,32 @@ Language japanese-cjk End # not yet supported by polyglossia +# not supported by babel Language kazakh GuiName "Kazakh" - BabelName kazakh - Encoding pt154 + Encoding ascii LangCode kk_KZ + PostBabelPreamble + \input{t2aenc.def} + \AtBeginDocument{\fontencoding{T2A}\selectfont} + EndPostBabelPreamble End Language korean GuiName "Korean" Encoding euc-kr + QuoteStyle english LangCode ko_KR Requires CJK End -# not supported by babel +# not yet supported by polyglossia Language kurmanji GuiName "Kurmanji" - PolyglossiaName kurmanji + BabelName kurmanji Encoding utf8 LangCode kmr + AsBabelOptions true End # not supported by babel @@ -574,6 +668,7 @@ Language latvian GuiName "Latvian" BabelName latvian PolyglossiaName latvian + QuoteStyle danish Encoding iso8859-4 LangCode lv_LV AsBabelOptions true @@ -585,6 +680,7 @@ Language lithuanian GuiName "Lithuanian" BabelName lithuanian PolyglossiaName lithuanian + QuoteStyle german Encoding iso8859-13 LangCode lt_LT AsBabelOptions true @@ -594,6 +690,7 @@ Language lowersorbian GuiName "Lower Sorbian" BabelName lowersorbian PolyglossiaName lsorbian + QuoteStyle german Encoding iso8859-2 LangCode dsb_DE End @@ -602,6 +699,7 @@ Language magyar GuiName "Hungarian" BabelName magyar PolyglossiaName magyar + QuoteStyle polish Encoding iso8859-2 LangCode hu_HU End @@ -630,6 +728,7 @@ Language newzealand BabelName newzealand PolyglossiaName english PolyglossiaOpts "variant=newzealand" + QuoteStyle english Encoding iso8859-15 LangCode en_NZ End @@ -638,6 +737,7 @@ Language norsk GuiName "Norwegian (Bokmaal)" BabelName norsk PolyglossiaName norsk + QuoteStyle french Encoding iso8859-15 LangCode nb_NO End @@ -646,6 +746,7 @@ Language nynorsk GuiName "Norwegian (Nynorsk)" BabelName nynorsk PolyglossiaName nynorsk + QuoteStyle french Encoding iso8859-15 LangCode nn_NO End @@ -654,6 +755,7 @@ End Language occitan GuiName "Occitan" PolyglossiaName occitan + QuoteStyle french Encoding utf8 LangCode oc_FR End @@ -672,6 +774,7 @@ Language polish GuiName "Polish" BabelName polish PolyglossiaName polish + QuoteStyle polish Encoding iso8859-2 LangCode pl_PL End @@ -680,6 +783,7 @@ Language portuguese GuiName "Portuguese" BabelName portuges PolyglossiaName portuges + QuoteStyle english Encoding iso8859-15 LangCode pt_PT End @@ -688,6 +792,7 @@ Language romanian GuiName "Romanian" BabelName romanian PolyglossiaName romanian + QuoteStyle polish Encoding iso8859-2 LangCode ro_RO End @@ -696,7 +801,8 @@ Language russian GuiName "Russian" BabelName russian PolyglossiaName russian - Encoding koi8 + QuoteStyle french + Encoding koi8-r LangCode ru_RU End @@ -720,16 +826,19 @@ Language scottish GuiName "Scottish" BabelName scottish PolyglossiaName scottish + QuoteStyle english Encoding iso8859-15 LangCode gd_GB End Language serbian GuiName "Serbian" - BabelName serbian + BabelName serbianc PolyglossiaName serbian + QuoteStyle german Encoding iso8859-5 LangCode sr_RS + AsBabelOptions true End Language serbian-latin @@ -737,14 +846,16 @@ Language serbian-latin BabelName serbian PolyglossiaName serbian PolyglossiaOpts "script=latin" + QuoteStyle german Encoding iso8859-2 - LangCode sr_RS + LangCode sr_RS-Latin End Language slovak GuiName "Slovak" BabelName slovak PolyglossiaName slovak + QuoteStyle german Encoding iso8859-2 LangCode sk_SK End @@ -753,6 +864,7 @@ Language slovene GuiName "Slovene" BabelName slovene PolyglossiaName slovenian + QuoteStyle german Encoding iso8859-2 LangCode sl_SI End @@ -761,6 +873,7 @@ Language spanish GuiName "Spanish" BabelName spanish PolyglossiaName spanish + QuoteStyle french Encoding iso8859-15 LangCode es_ES PostBabelPreamble @@ -773,6 +886,7 @@ Language spanish-mexico GuiName "Spanish (Mexico)" BabelName spanish PolyglossiaName spanish + QuoteStyle french Encoding iso8859-15 LangCode es_MX PostBabelPreamble @@ -784,17 +898,19 @@ Language swedish GuiName "Swedish" BabelName swedish PolyglossiaName swedish + QuoteStyle swedish Encoding iso8859-15 LangCode sv_SE End # not supported by babel -Language syriac - GuiName "Syriac" - PolyglossiaName syriac - Encoding utf8 - LangCode syr_SY -End +#Language syriac +# GuiName "Syriac" +# PolyglossiaName syriac +# Encoding utf8 +# RTL true +# LangCode syr_SY +#End # not supported by babel Language tamil @@ -816,6 +932,7 @@ Language thai GuiName "Thai" BabelName thai PolyglossiaName thai + QuoteStyle english Encoding tis620-0 LangCode th_TH PostBabelPreamble @@ -823,10 +940,19 @@ Language thai EndPostBabelPreamble End +# not supported by babel +Language tibetan + GuiName "Tibetan" + PolyglossiaName tibetan + Encoding utf8 + LangCode bo_CN +End + Language turkish GuiName "Turkish" BabelName turkish PolyglossiaName turkish + QuoteStyle french Encoding iso8859-9 LangCode tr_TR PostBabelPreamble @@ -840,6 +966,7 @@ Language turkmen GuiName "Turkmen" BabelName turkmen PolyglossiaName turkmen + QuoteStyle french Encoding utf8 LangCode tk_TM AsBabelOptions true @@ -849,6 +976,7 @@ Language ukrainian GuiName "Ukrainian" BabelName ukrainian PolyglossiaName ukrainian + QuoteStyle french Encoding koi8-u LangCode uk_UA End @@ -857,17 +985,19 @@ Language uppersorbian GuiName "Upper Sorbian" BabelName uppersorbian PolyglossiaName usorbian + QuoteStyle german Encoding iso8859-2 LangCode hsb_DE End # not supported by babel -Language urdu - GuiName "Urdu" - PolyglossiaName urdu - Encoding utf8 - LangCode ur_PK -End +#Language urdu +# GuiName "Urdu" +# PolyglossiaName urdu +# Encoding utf8 +# RTL true +# LangCode ur_PK +#End # vietnam must be loaded locally with babel options, # not globally via class options, see @@ -876,6 +1006,7 @@ Language vietnamese GuiName "Vietnamese" BabelName vietnam PolyglossiaName vietnamese + QuoteStyle french Encoding utf8 LangCode vi_VN AsBabelOptions true @@ -886,6 +1017,7 @@ Language welsh GuiName "Welsh" BabelName welsh PolyglossiaName welsh + QuoteStyle english Encoding iso8859-15 LangCode cy_GB End