From ec22820cbff9edaa9ea6b981cd7948e0f013cd9c Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 19 Dec 2010 15:21:01 +0000 Subject: [PATCH] Increase tex2lyx output format to 297. 297: new name for upper sorbian language, new languages albanian and lower sorbian (actually lower sorbias was (incorrectly) already recognized) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36945 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/tex2lyx/preamble.cpp | 14 +++++++++----- src/tex2lyx/tex2lyx.h | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/tex2lyx/preamble.cpp b/src/tex2lyx/preamble.cpp index 97cd46cd5c..6d831a1c68 100644 --- a/src/tex2lyx/preamble.cpp +++ b/src/tex2lyx/preamble.cpp @@ -56,11 +56,11 @@ namespace { //"chinese-simplified", "chinese-traditional", "japanese", "korean" // Both changes require first that support for non-babel languages (CJK, // armtex) is added. -const char * const known_languages[] = { "afrikaans", "american", "arabic", -"arabtex", "austrian", "bahasa", "basque", "belarusian", "brazil", "brazilian", -"breton", "british", "bulgarian", "canadian", "canadien", "catalan", -"croatian", "czech", "danish", "dutch", "english", "esperanto", "estonian", -"finnish", "francais", "french", "frenchb", "frenchle", "frenchpro", +const char * const known_languages[] = { "afrikaans", "albanian", "american", +"arabic", "arabtex", "austrian", "bahasa", "basque", "belarusian", "brazil", +"brazilian", "breton", "british", "bulgarian", "canadian", "canadien", +"catalan", "croatian", "czech", "danish", "dutch", "english", "esperanto", +"estonian", "finnish", "francais", "french", "frenchb", "frenchle", "frenchpro", "galician", "german", "germanb", "greek", "hebrew", "icelandic", "irish", "italian", "kazakh", "latvian", "lithuanian", "lsorbian", "magyar", "naustrian", "ngerman", "ngermanb", "norsk", "nynorsk", "polish", "portuges", @@ -191,6 +191,10 @@ string babel2lyx(string language) return "arabic_arabtex"; if (language == "arabic") return "arabic_arabi"; + if (language == "lsorbian") + return "lowersorbian"; + if (language == "usorbian") + return "uppersorbian"; return language; } diff --git a/src/tex2lyx/tex2lyx.h b/src/tex2lyx/tex2lyx.h index 174e5c79b5..eb8811c344 100644 --- a/src/tex2lyx/tex2lyx.h +++ b/src/tex2lyx/tex2lyx.h @@ -114,7 +114,7 @@ extern CommandMap known_math_environments; /// extern bool noweb_mode; /// LyX format that is created by tex2lyx -int const LYX_FORMAT = 296; +int const LYX_FORMAT = 297; /// path of the master .tex file extern std::string getMasterFilePath();