mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
support for Serbian with Latin letters
- fileformat change git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22143 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
828c12acff
commit
90c14f8c12
@ -1,6 +1,9 @@
|
||||
LyX file-format changes
|
||||
-----------------------
|
||||
|
||||
2007-12-15 Uwe Stöhr <uwestoehr@web.de>
|
||||
* Format incremented to 308: support for Serbian (Latin)
|
||||
|
||||
2007-12-05 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
* Format incremented to 307: support for \slash and \nobreakdash.
|
||||
|
||||
|
@ -67,6 +67,7 @@ russian russian "Russian" false koi8 ru_RU ""
|
||||
samin samin "North Sami" false iso8859-15 se_NO ""
|
||||
scottish scottish "Scottish" false iso8859-15 gd_GB ""
|
||||
serbian serbian "Serbian" false iso8859-5 sr_RS ""
|
||||
serbian-latin serbian "Serbian (Latin)" false iso8859-2 sr_RS ""
|
||||
slovak slovak "Slovak" false iso8859-2 sk_SK ""
|
||||
slovene slovene "Slovene" false iso8859-2 sl_SI ""
|
||||
spanish spanish "Spanish" false iso8859-15 es_ES "\deactivatetilden\renewcommand\shorthandsspanish{}"
|
||||
|
@ -80,7 +80,7 @@ format_relation = [("0_06", [200], minor_versions("0.6" , 4)),
|
||||
("1_3", [221], minor_versions("1.3" , 7)),
|
||||
("1_4", range(222,246), minor_versions("1.4" , 5)),
|
||||
("1_5", range(246,277), minor_versions("1.5" , 2)),
|
||||
("1_6", range(277,308), minor_versions("1.6" , 0))]
|
||||
("1_6", range(277,309), minor_versions("1.6" , 0))] # Uwe: Serbian-Latin
|
||||
|
||||
|
||||
def formats_list():
|
||||
|
@ -979,6 +979,23 @@ def revert_interlingua(document):
|
||||
j = j + 1
|
||||
|
||||
|
||||
def revert_serbianlatin(document):
|
||||
"Set language Serbian-Latin to Croatian"
|
||||
i = 0
|
||||
if document.language == "serbian-latin":
|
||||
document.language = "croatian"
|
||||
i = find_token(document.header, "\\language", 0)
|
||||
if i != -1:
|
||||
document.header[i] = "\\language croatian"
|
||||
j = 0
|
||||
while True:
|
||||
j = find_token(document.body, "\\lang serbian-latin", j)
|
||||
if j == -1:
|
||||
return
|
||||
document.body[j] = document.body[j].replace("\\lang serbian-latin", "\\lang croatian")
|
||||
j = j + 1
|
||||
|
||||
|
||||
##
|
||||
# Conversion hub
|
||||
#
|
||||
@ -1014,10 +1031,12 @@ convert = [[277, [fix_wrong_tables]],
|
||||
[304, [convert_framed_notes]],
|
||||
[305, []],
|
||||
[306, []],
|
||||
[307, []]
|
||||
[307, []],
|
||||
[308, []]
|
||||
]
|
||||
|
||||
revert = [[306, [revert_slash, revert_nobreakdash]],
|
||||
revert = [[307, [revert_serbianlatin]],
|
||||
[306, [revert_slash, revert_nobreakdash]],
|
||||
[305, [revert_interlingua]],
|
||||
[304, [revert_bahasam]],
|
||||
[303, [revert_framed_notes]],
|
||||
|
@ -116,7 +116,7 @@ namespace os = support::os;
|
||||
|
||||
namespace {
|
||||
|
||||
int const LYX_FORMAT = 307; // JSpitzm: support for \slash
|
||||
int const LYX_FORMAT = 308; // Uwe: Serbian-Latin
|
||||
|
||||
} // namespace anon
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user