mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
support to set Tibetan as document language
- polyglossia supports http://en.wikipedia.org/wiki/Standard_Tibetan so we can support it too - fileformat change
This commit is contained in:
parent
246b3d79e6
commit
ea2d5947e9
@ -11,6 +11,9 @@ adjustments are made to tex2lyx and bugs are fixed in lyx2lyx.
|
||||
|
||||
-----------------------
|
||||
|
||||
2013-05-28 Uwe Stöhr <uwestoehr@web.de>
|
||||
* Format incremented to 473: support to set Tibetan as document language
|
||||
|
||||
2013-05-26 Uwe Stöhr <uwestoehr@web.de>
|
||||
* Format incremented to 472: added 2 new abstract styles to the
|
||||
aa.layout file
|
||||
|
@ -918,6 +918,14 @@ 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
|
||||
|
@ -4180,6 +4180,24 @@ def revert_aa2(document):
|
||||
return
|
||||
|
||||
|
||||
def revert_tibetan(document):
|
||||
"Set the document language for Tibetan to English"
|
||||
|
||||
if document.language == "tibetan":
|
||||
document.language = "english"
|
||||
i = find_token(document.header, "\\language", 0)
|
||||
if i != -1:
|
||||
document.header[i] = "\\language english"
|
||||
j = 0
|
||||
while j < len(document.body):
|
||||
j = find_token(document.body, "\\lang tibetan", j)
|
||||
if j != -1:
|
||||
document.body[j] = document.body[j].replace("\\lang tibetan", "\\lang english")
|
||||
j += 1
|
||||
else:
|
||||
j = len(document.body)
|
||||
|
||||
|
||||
##
|
||||
# Conversion hub
|
||||
#
|
||||
@ -4244,10 +4262,12 @@ convert = [
|
||||
[469, []],
|
||||
[470, []],
|
||||
[471, [convert_cite_engine_type_default]],
|
||||
[472, []]
|
||||
[472, []],
|
||||
[473, []]
|
||||
]
|
||||
|
||||
revert = [
|
||||
[472, [revert_tibetan]],
|
||||
[471, [revert_aa1,revert_aa2]],
|
||||
[470, [revert_cite_engine_type_default]],
|
||||
[469, [revert_forced_local_layout]],
|
||||
|
@ -304,10 +304,10 @@ const char * const Preamble::polyglossia_languages[] = {
|
||||
"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",
|
||||
"samin", "ukrainian", "bengali", "farsi", "latvian", "sanskrit", "tibetan", "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};
|
||||
@ -322,10 +322,10 @@ const char * const Preamble::coded_polyglossia_languages[] = {
|
||||
"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",
|
||||
"samin", "ukrainian", "bengali", "farsi", "latvian", "sanskrit", "tibetan", "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};
|
||||
|
@ -30,8 +30,8 @@ extern char const * const lyx_version_info;
|
||||
|
||||
// Do not remove the comment below, so we get merge conflict in
|
||||
// independent branches. Instead add your own.
|
||||
#define LYX_FORMAT_LYX 472 // uwestoehr: updated layout for A&A class
|
||||
#define LYX_FORMAT_TEX2LYX 472
|
||||
#define LYX_FORMAT_LYX 473 // uwestoehr: support Tibetan as document language
|
||||
#define LYX_FORMAT_TEX2LYX 473
|
||||
|
||||
#if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
|
||||
#ifndef _MSC_VER
|
||||
|
Loading…
Reference in New Issue
Block a user