]> git.lyx.org Git - features.git/blobdiff - lib/languages
Update language support documentation and comments.
[features.git] / lib / languages
index db9b75e37d2e49e745432b778e4739f1ea323277..583ed89ed6244cc7a074f44a2b6d7920b02d8f0e 100644 (file)
@@ -853,8 +853,8 @@ Language italian
        LangCode         it_IT
 End
 
-# Since japanese does not load fontenc, we set
-# InternalEncoding to true.
+# Since 2016-12-18, babel-japanese works with non-TeX fonts (Xe/LuaTeX), too
+# (use with "Japanese (bxjs)" or standard document classes)
 Language japanese
        GuiName          "Japanese"
        HasGuiSupport    true
@@ -862,8 +862,7 @@ Language japanese
        Encoding         jis-platex
        LangCode         ja_JP
        Requires         japanese
-       InternalEncoding true
-       FontEncoding     None
+       FontEncoding     ASCII
        DateFormats      "yyyy年M月d日|yyyy/MM/dd|yy/MM/dd"
        QuoteStyle       cjk
 End
@@ -895,12 +894,6 @@ Language kazakh
        # FontEncoding   T2A # not set (no Babel support)
        DateFormats      "dd MMMM yyyy|dd MMMM yyyy|yyyy-dd-MM"
        LangCode         kk_KZ
-       # FIXME: this sets the global font encoding also
-       # if Kazakh is only used as secondary language.
-       PostBabelPreamble
-       \input{t2aenc.def}
-       \AtBeginDocument{\fontencoding{T2A}\selectfont}
-       EndPostBabelPreamble
 End
 
 # not supported by babel
@@ -912,8 +905,10 @@ Language khmer
        LangCode         km_KH
 End
 
+# Fixme: activate Polyglossia support (file format change)
 Language korean
        GuiName         "Korean"
+       #PolyglossiaName  korean
        Encoding        euc-kr
        QuoteStyle      cjkangle
        DateFormats     "yyyy년 M월 d일|yyyy. M. d.|yy. M. d."
@@ -1347,6 +1342,7 @@ Language telugu
        LangCode         te_IN
 End
 
+# alternative support with CJK package and Babel name "thaicjk"
 Language thai
        GuiName          "Thai"
        BabelName        thai
@@ -1356,11 +1352,17 @@ Language thai
        FontEncoding     LTH
        DateFormats      "dd MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
        LangCode         th_TH
+       PostBabelPreamble
+         % restore \coyright definition corrupted by lthenc.def
+          \DeclareRobustCommand{\copyright}{%
+            \ifmmode{\nfss@text{\textcopyright}}\else\textcopyright\fi}
+         \DeclareTextSymbol{\textcopyright}{LTH}{8}
+       EndPostBabelPreamble
        # Fixme: load font package?
        # +1 support for font attributes in thai emphasizing etc.
-       # -1 conflict with custom font settings and other languages' fonts
+       # -1 forces ComputerModern as "non-thai" font
        # PostBabelPreamble
-       # \usepackage{fonts-tlwg}
+       #   \usepackage{fonts-tlwg}
        # EndPostBabelPreamble
 End