mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 22:49:20 +00:00
Fileformat incremented to 293 due to yesterdays' support for japanese-plain (r20831)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20859 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ded6db3e0b
commit
a9b5b1ff9a
@ -1,6 +1,10 @@
|
|||||||
LyX file-format changes
|
LyX file-format changes
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
|
2007-10-09 Uwe Stöhr Uwe Stöhr <uwestoehr@web.de>
|
||||||
|
* Format incremented to 292: Support for Japanese without
|
||||||
|
using CJK and inputenc. (japanese-plain)
|
||||||
|
|
||||||
2007-10-04 Uwe Stöhr Uwe Stöhr <uwestoehr@web.de>
|
2007-10-04 Uwe Stöhr Uwe Stöhr <uwestoehr@web.de>
|
||||||
* Format incremented to 291: Support for Vietnamese.
|
* Format incremented to 291: Support for Vietnamese.
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ format_relation = [("0_06", [200], minor_versions("0.6" , 4)),
|
|||||||
("1_3", [221], minor_versions("1.3" , 7)),
|
("1_3", [221], minor_versions("1.3" , 7)),
|
||||||
("1_4", range(222,246), minor_versions("1.4" , 5)),
|
("1_4", range(222,246), minor_versions("1.4" , 5)),
|
||||||
("1_5", range(246,277), minor_versions("1.5" , 1)),
|
("1_5", range(246,277), minor_versions("1.5" , 1)),
|
||||||
("1_6", range(277,292), minor_versions("1.6" , 0))] # Uwe Stöhr, Vietnamese
|
("1_6", range(277,293), minor_versions("1.6" , 0))] # Uwe Stöhr, Japanese
|
||||||
|
|
||||||
|
|
||||||
def formats_list():
|
def formats_list():
|
||||||
|
@ -420,6 +420,24 @@ def revert_vietnamese(document):
|
|||||||
j = j + 1
|
j = j + 1
|
||||||
|
|
||||||
|
|
||||||
|
def revert_japanese(document):
|
||||||
|
"Set language japanese-plain to japanese"
|
||||||
|
# Set document language from japanese-plain to japanese
|
||||||
|
i = 0
|
||||||
|
if document.language == "japanese-plain":
|
||||||
|
document.language = "japanese"
|
||||||
|
i = find_token(document.header, "\\language", 0)
|
||||||
|
if i != -1:
|
||||||
|
document.header[i] = "\\language japanese"
|
||||||
|
j = 0
|
||||||
|
while True:
|
||||||
|
j = find_token(document.body, "\\lang japanese-plain", j)
|
||||||
|
if j == -1:
|
||||||
|
return
|
||||||
|
document.body[j] = document.body[j].replace("\\lang japanese-plain", "\\lang japanese")
|
||||||
|
j = j + 1
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
# Conversion hub
|
# Conversion hub
|
||||||
#
|
#
|
||||||
@ -439,10 +457,12 @@ convert = [[277, [fix_wrong_tables]],
|
|||||||
[288, [convert_inset_command]],
|
[288, [convert_inset_command]],
|
||||||
[289, [convert_latexcommand_index]],
|
[289, [convert_latexcommand_index]],
|
||||||
[290, []],
|
[290, []],
|
||||||
[291, []]
|
[291, []],
|
||||||
|
[292, []]
|
||||||
]
|
]
|
||||||
|
|
||||||
revert = [[290, [revert_vietnamese]],
|
revert = [[291, [revert_japanese]],
|
||||||
|
[290, [revert_vietnamese]],
|
||||||
[289, [revert_wraptable]],
|
[289, [revert_wraptable]],
|
||||||
[288, [revert_latexcommand_index]],
|
[288, [revert_latexcommand_index]],
|
||||||
[287, [revert_inset_command]],
|
[287, [revert_inset_command]],
|
||||||
|
@ -154,7 +154,7 @@ namespace fs = boost::filesystem;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
int const LYX_FORMAT = 291; //Uwe Stöhr, Vietnamese
|
int const LYX_FORMAT = 292; //Uwe Stöhr, Japanese
|
||||||
|
|
||||||
} // namespace anon
|
} // namespace anon
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user