LyX file-format changes
-----------------------
+2004-12-03 José Matos <jamatos@lyx.org>
+
+ * format up to 238.
+ * The compatibility code to read old latex accents from 0.12.x in
+ InsetLatexAccent::checkContents has been removed.
+ The following translations are done:
+ "\i \x" -> "\i \x{}"
+ "\i \xy" -> "\i \x{y}"
+ "\i \x y" -> "\i \x{y}"
+ "\i \x\i" -> "\i \x{\i}"
+ "\i \x\j" -> "\i \x{\j}"
+ x is a latex accent command, y the base character. \, i and j are
+ literal.
+ lyx did these changes already from 0.12.x -> 215, but not lyx2lyx,
+ so formats 215 - 237 can have both versions.
+
+
2004-10-10 José Matos <jamatos@lyx.org>
* format up to 237.
+2004-12-03 José Matos <jamatos@lyx.org>
+
+ * LyX.py: format up to 238.
+ * lyx_1_4.py:
+ * lyx_0_12.py (update_latexaccents): consider the cases where the
+ inset is updated.
+
2004-12-03 José Matos <jamatos@lyx.org>
* lyx_1_2.py (update_longtable): Update longtables to table format 3.
("1_1_6fix3", [218], ["1.1.6fix3","1.1.6fix4","1.1"]),
("1_2", [220], ["1.2.0","1.2.1","1.2.3","1.2.4","1.2"]),
("1_3", [221], ["1.3.0","1.3.1","1.3.2","1.3.3","1.3.4","1.3.5","1.3"]),
- ("1_4", range(223,238), ["1.4.0cvs","1.4"])]
+ ("1_4", range(223,239), ["1.4.0cvs","1.4"])]
def formats_list():
i = i + 1
-def update_latexaccents(body):
+def update_latexaccents(file):
+ body = file.body
i = 1
while 1:
i = find_token(body, '\\i ', i)
contents = string.strip(body[i][2:])
+ if string.find(contents, '{') != -1 and string.find(contents, '}') != -1:
+ i = i + 1
+ continue
+
if len(contents) == 2:
contents = contents + '{}'
elif len(contents) == 3:
update_vfill(file.body)
remove_empty_insets(file.body)
remove_formula_latex(file.body)
- update_latexaccents(file.body)
+ update_latexaccents(file)
file.format = 215
from sys import stdin
from string import replace, split, find, strip, join
+from lyx_0_12 import update_latexaccents
+
##
# Remove \color default
#
235 : [convert_paperpackage],
236 : [convert_bullets, add_begin_header, add_begin_body,
normalize_papersize, strip_end_space],
- 237 : [use_x_boolean]}
+ 237 : [use_x_boolean],
+ 238 : [update_latexaccents]}
chain = table.keys()
chain.sort()
def revert(file):
- table = { 236: [use_x_binary],
+ table = { 237: [],
+ 236: [use_x_binary],
235: [denormalize_papersize, remove_begin_body,remove_begin_header,
revert_bullets],
234: [revert_paperpackage],
+2004-12-03 José Matos <jamatos@lyx.org>
+
+ * buffer.C: format up to 238.
+
2004-12-03 José Matos <jamatos@lyx.org>
* tabular.[Ch]: remove setHeaderFooterRows as this code is never called.
namespace {
-const int LYX_FORMAT = 237;
+const int LYX_FORMAT = 238;
} // namespace anon