Uwe StĂśhr wrote:
> commit 828f7171e82a847f3bcc82a91c4788b5a3ef6d0b
> Author: Uwe StĂśhr <uwesto...@lyx.org>
> Date:   Sat Jun 23 04:28:52 2012 +0200
> 
>     - tex2lyx: support for the polyglossia language variants
>     - XeTeX-polyglossia.tex: simplifications, added some more testcases
> 
> diff --git a/src/tex2lyx/Preamble.cpp b/src/tex2lyx/Preamble.cpp
> index 8309b6b..781ce2c 100644
> --- a/src/tex2lyx/Preamble.cpp
> +++ b/src/tex2lyx/Preamble.cpp
> @@ -92,6 +92,41 @@ const char * const known_coded_languages[] = {"french", 
> "afrikaans", "albanian",
>  "uppersorbian", "uppersorbian", "english", "english", "vietnamese", "welsh",
>  0};
>  
> +/**
> + * known polyglossia language names (including variants)
> + */
> +const char * const polyglossia_languages[] = {
> +"albanian", "croatian", "hebrew", "norsk", "swedish", "amharic", "czech", 
> "hindi",
> +"nynorsk", "syriac", "arabic", "danish", "icelandic", "occitan", "tamil",
> +"armenian", "divehi", "interlingua", "polish", "telugu", "asturian", "dutch",
> +"irish", "portuges", "thai", "bahasai", "english", "italian", "romanian", 
> "turkish",
> +"bahasam", "esperanto", "lao", "russian", "turkmen", "basque", "estonian", 
> "latin",
> +"samin", "ukrainian", "bengali", "farsi", "latvian", "sanskrit", "urdu", 
> "brazil",
> +"brazilian", "finnish", "lithuanian", "scottish", "usorbian", "breton", 
> "french",
> +"lsorbian", "serbian", "vietnamese", "bulgarian", "galician", "magyar", 
> "slovak",
> +"welsh", "catalan", "german", "malayalam", "slovenian", "coptic", "greek",
> +"marathi", "spanish",
> +"american", "ancient", "australian", "british", "monotonic", "newzealand",
> +"polytonic", 0};
> +
> +/**
> + * the same as polyglossia_languages with .lyx names
> + * please keep this in sync with polyglossia_languages line by line!
> + */


What about using structure where these two list are joined via coupled entries?


> +const char * const coded_polyglossia_languages[] = {
> +"albanian", "croatian", "hebrew", "norsk", "swedish", "amharic", "czech", 
> "hindi",
> +"nynorsk", "syriac", "arabic_arabi", "danish", "icelandic", "occitan", 
> "tamil",
> +"armenian", "divehi", "interlingua", "polish", "telugu", "asturian", "dutch",
> +"irish", "portuges", "thai", "bahasa", "english", "italian", "romanian", 
> "turkish",
> +"bahasam", "esperanto", "lao", "russian", "turkmen", "basque", "estonian", 
> "latin",
> +"samin", "ukrainian", "bengali", "farsi", "latvian", "sanskrit", "urdu", 
> "brazilian",
> +"brazilian", "finnish", "lithuanian", "scottish", "uppersorbian", "breton", 
> "french",
> +"lowersorbian", "serbian", "vietnamese", "bulgarian", "galician", "magyar", 
> "slovak",
> +"welsh", "catalan", "ngerman", "malayalam", "slovene", "coptic", "greek",
> +"marathi", "spanish",
> +"american", "ancientgreek", "australian", "british", "greek", "newzealand",
> +"polutonikogreek", 0};
> +

Pavel

Reply via email to