commit 62f8b4fac126e1c0dc85107dac4852d725dc1cc9
Author: Günter Milde <[email protected]>
Date:   Fri Apr 12 18:34:06 2019 +0200

    Document languages with new polyglossia support.
---
 autotests/export/latex/supported-languages.lyx |   59 +++++++++++---
 lib/languages                                  |   97 +++++++++++++----------
 2 files changed, 101 insertions(+), 55 deletions(-)

diff --git a/autotests/export/latex/supported-languages.lyx 
b/autotests/export/latex/supported-languages.lyx
index 58c855e..d3f24c7 100644
--- a/autotests/export/latex/supported-languages.lyx
+++ b/autotests/export/latex/supported-languages.lyx
@@ -579,6 +579,20 @@ status open
 \end_layout
 
 \begin_layout Subsection*
+Bengali
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+LyX (LyX support missing)
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+Polyglossia bengali
+\end_layout
+
+\begin_layout Subsection*
 Bosnian
 \end_layout
 
@@ -927,6 +941,20 @@ The different CJK languages (simplified and traditional 
Chinese, Japanese,
 \end_layout
 
 \begin_layout Subsection*
+Churchslavonic
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+LyX (LyX support missing)
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+Polyglossia churchslavonic
+\end_layout
+
+\begin_layout Subsection*
 Coptic
 \end_layout
 
@@ -2456,7 +2484,7 @@ LangCode kk_KZ
 \end_layout
 
 \begin_layout Itemize
-Not supported by Babel nor Polyglossia, setting text to 
+Not supported by Babel nor Polyglossia, marking text as 
 \begin_inset Quotes eld
 \end_inset
 
@@ -2485,7 +2513,8 @@ Setting text to this language has only effect on 
spell-checking
 \end_layout
 
 \begin_layout Itemize
-For documents in Kazakh only, you may replace LyX's auto-wrapper in 
+For documents using only Cyrillic (and basic Latin) letters, you may get
+ rid of the auto-inserted 
 \begin_inset Quotes eld
 \end_inset
 
@@ -2493,7 +2522,7 @@ textcyrillic
 \begin_inset Quotes erd
 \end_inset
 
- by setting the document font encoding to 
+ commands by setting the document font encoding to 
 \begin_inset Quotes eld
 \end_inset
 
@@ -2554,16 +2583,6 @@ Polyglossia korean (LyX support missing)
 
 \begin_layout Labeling
 \labelwidthstring 00.00.0000
-Encoding euc-kr
-\end_layout
-
-\begin_layout Labeling
-\labelwidthstring 00.00.0000
-QuoteStyle cjkangle
-\end_layout
-
-\begin_layout Labeling
-\labelwidthstring 00.00.0000
 LangCode ko_KR
 \end_layout
 
@@ -3341,6 +3360,20 @@ inputencoding{ut8} seems to be an exception requiring an 
explicit re-set.
 \end_layout
 
 \begin_layout Subsection*
+N'ko
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+LyX (LyX support missing)
+\end_layout
+
+\begin_layout Labeling
+\labelwidthstring 00.00.0000
+Polyglossia nko
+\end_layout
+
+\begin_layout Subsection*
 Norwegian
 \end_layout
 
diff --git a/lib/languages b/lib/languages
index 583ed89..7b91b57 100644
--- a/lib/languages
+++ b/lib/languages
@@ -201,20 +201,20 @@ End
 # In Babel, this is supported since v. 1.8a of babel-greek (2013-12-03)
 # We introduce it with LyX 2.2 to give the support time to settle.
 Language ancientgreek
-       GuiName           "Greek (ancient)"
-       BabelName         greek
+       GuiName          "Greek (ancient)"
+       BabelName        greek
        PostBabelPreamble
        \languageattribute{greek}{ancient}
        EndPostBabelPreamble
-       PolyglossiaName   greek
-       PolyglossiaOpts   "variant=ancient"
-       QuoteStyle        french
-       Encoding          iso8859-7
-       InternalEncoding  true
-       FontEncoding      LGR
+       PolyglossiaName  greek
+       PolyglossiaOpts  "variant=ancient"
+       QuoteStyle       french
+       Encoding         iso8859-7
+       InternalEncoding true
+       FontEncoding     LGR
        DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
-       LangCode          grc_GR
-       Provides          textgreek
+       LangCode         grc_GR
+       Provides         textgreek
 End
 
 # FIXME: dummy babel language for arabic_arabtex to be able
@@ -361,6 +361,10 @@ Language belarusian
        LangCode         be_BY
 End
 
+# supported by polyglossia but not LyX:
+# Language bengali
+#      PolyglossiaName  bengali
+
 # not yet supported by polyglossia
 # The (rarely used) Cyrillic script is not supported (try serbian).
 Language bosnian
@@ -484,6 +488,10 @@ Language chinese-traditional
        Requires         CJK
 End
 
+# supported by polyglossia but not LyX:
+# Language churchslavonic
+#      PolyglossiaName  churchslavonic
+
 # not supported by babel
 # FIXME DateFormats
 Language coptic
@@ -735,52 +743,52 @@ Language german-ch-old
 End
 
 Language greek
-       GuiName           "Greek"
-       HasGuiSupport     true
-       BabelName         greek
-       PolyglossiaName   greek
-       PolyglossiaOpts   "variant=monotonic"
-       QuoteStyle        french
-       Encoding          iso8859-7
-       InternalEncoding  true
-       FontEncoding      LGR
+       GuiName          "Greek"
+       HasGuiSupport    true
+       BabelName        greek
+       PolyglossiaName  greek
+       PolyglossiaOpts  "variant=monotonic"
+       QuoteStyle       french
+       Encoding         iso8859-7
+       InternalEncoding true
+       FontEncoding     LGR
        DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
-       LangCode          el_GR
-       Provides          textgreek
+       LangCode         el_GR
+       Provides         textgreek
 End
 
 Language polutonikogreek
-       GuiName           "Greek (polytonic)"
-       BabelName         polutonikogreek
-       PolyglossiaName   greek
-       PolyglossiaOpts   "variant=polytonic"
-       QuoteStyle        french
-       Encoding          iso8859-7
-       InternalEncoding  true
-       FontEncoding      LGR
+       GuiName          "Greek (polytonic)"
+       BabelName        polutonikogreek
+       PolyglossiaName  greek
+       PolyglossiaOpts  "variant=polytonic"
+       QuoteStyle       french
+       Encoding         iso8859-7
+       InternalEncoding true
+       FontEncoding     LGR
        DateFormats      "dd MMMM yyyy|dd MMM yyyy|dd/MM/yyyy"
-       LangCode          el_GR
-       Provides          textgreek
+       LangCode         el_GR
+       Provides         textgreek
 End
 
 Language hebrew
-       GuiName           "Hebrew"
-       HasGuiSupport     true
-       BabelName         hebrew
-       PolyglossiaName   hebrew
-       Encoding          cp1255
-       QuoteStyle        english
-       InternalEncoding  true
+       GuiName          "Hebrew"
+       HasGuiSupport    true
+       BabelName        hebrew
+       PolyglossiaName  hebrew
+       Encoding         cp1255
+       QuoteStyle       english
+       InternalEncoding true
        # babel-hebrew expects the encoding for *other* languages last:
-       # FontEncoding      HE8
+       # FontEncoding    HE8
        # Define the font encoding the babel-hebrew way and
        # work around too simple test for article-like classes in rlbabel.def.
        PreBabelPreamble
          \providecommand{\l@chapter}{\relax}
        EndPreBabelPreamble
        DateFormats      "d MMMM yyyy|d MMM yyyy|dd/MM/yyyy"
-       RTL               true
-       LangCode          he_IL
+       RTL              true
+       LangCode         he_IL
 End
 
 # not supported by babel
@@ -971,7 +979,7 @@ Language lithuanian
        QuoteStyle       german
        Encoding         iso8859-13
        FontEncoding     L7x
-       # L7x defines \copyright as TextSymbol which leads to an endless loop 
+       # L7x defines \copyright as TextSymbol which leads to an endless loop
         # when it is used in other font encodings.
        PostBabelPreamble
          % restore \coyright definition corrupted by l7xenc.def
@@ -1073,6 +1081,11 @@ Language norsk
        LangCode         nb_NO
 End
 
+# supported by polyglossia but not LyX:
+# Language nko
+#      GuiName         "N’Ko"            
+#      PolyglossiaName nko
+
 Language nynorsk
        GuiName          "Norwegian (Nynorsk)"
        HasGuiSupport    true

Reply via email to