mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
support for the language Bahasa Malaysia
- fileformat change - rename "Bahasa" to "Bahasa Indonesia" git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21974 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
cdffbf18bd
commit
fa37b1c4b1
@ -1,6 +1,9 @@
|
||||
LyX file-format changes
|
||||
-----------------------
|
||||
|
||||
2007-12-05 Uwe Stöhr <uwestoehr@web.de>
|
||||
* Format incremented to 305: support for Bahasa Malaysia
|
||||
|
||||
2007-12-03 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||
* Format incremented to 304: framed and shaded boxes are now real boxes
|
||||
(not notes).
|
||||
|
@ -8,7 +8,8 @@ arabic_arabi arabic "Arabic (Arabi)" true cp1256 ar_SA ""
|
||||
armenian "" "Armenian" false armscii8 hy_AM ""
|
||||
austrian austrian "Austrian" false iso8859-15 de_AT ""
|
||||
naustrian naustrian "Austrian (new spelling)" false iso8859-15 de_AT ""
|
||||
bahasa bahasa "Bahasa" false iso8859-15 in_ID ""
|
||||
bahasa bahasa "Bahasa Indonesia" false iso8859-15 id_ID ""
|
||||
bahasam bahasam "Bahasa Malaysia" false iso8859-15 ms_MY ""
|
||||
basque basque "Basque" false iso8859-15 eu_ES ""
|
||||
belarusian belarusian "Belarusian" false cp1251 be_BY ""
|
||||
brazilian brazil "Portuguese (Brazil)" false iso8859-15 pt_BR ""
|
||||
|
@ -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,305), minor_versions("1.6" , 0))]
|
||||
("1_6", range(277,306), minor_versions("1.6" , 0))] # Uwe: support for Bahasa
|
||||
|
||||
|
||||
def formats_list():
|
||||
|
@ -913,6 +913,23 @@ def revert_framed_notes(document):
|
||||
i = i + 1
|
||||
|
||||
|
||||
def revert_bahasam(document):
|
||||
"Set language Bahasa Malaysia to Bahasa Indonesia"
|
||||
i = 0
|
||||
if document.language == "bahasam":
|
||||
document.language = "bahasa"
|
||||
i = find_token(document.header, "\\language", 0)
|
||||
if i != -1:
|
||||
document.header[i] = "\\language bahasa"
|
||||
j = 0
|
||||
while True:
|
||||
j = find_token(document.body, "\\lang bahasam", j)
|
||||
if j == -1:
|
||||
return
|
||||
document.body[j] = document.body[j].replace("\\lang bahasam", "\\lang bahasa")
|
||||
j = j + 1
|
||||
|
||||
|
||||
##
|
||||
# Conversion hub
|
||||
#
|
||||
@ -945,10 +962,12 @@ convert = [[277, [fix_wrong_tables]],
|
||||
[301, []],
|
||||
[302, []],
|
||||
[303, [convert_serbocroatian]],
|
||||
[304, [convert_framed_notes]]
|
||||
[304, [convert_framed_notes]],
|
||||
[305, []]
|
||||
]
|
||||
|
||||
revert = [[303, [revert_framed_notes]],
|
||||
revert = [[304, [revert_bahasam]],
|
||||
[303, [revert_framed_notes]],
|
||||
[302, []],
|
||||
[301, [revert_latin, revert_samin]],
|
||||
[300, [revert_linebreak]],
|
||||
|
Loading…
Reference in New Issue
Block a user