Jean-Marc Lasgouttes wrote:
> For this to work, I will have to update the lyxformat, and Jose' will
> have to provide a conversion: chnage language frenchb to french.
Here is the conversion. It is so trivial that you should have been able to
do it yourself ;-)
No back conversion is needed, right?
Georg
Index: lib/lyx2lyx/LyX.py
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/lyx2lyx/LyX.py,v
retrieving revision 1.12
diff -u -p -r1.12 LyX.py
--- lib/lyx2lyx/LyX.py 4 May 2005 11:54:14 -0000 1.12
+++ lib/lyx2lyx/LyX.py 20 Jun 2005 15:49:24 -0000
@@ -46,7 +46,7 @@ format_relation = [("0_10", [210], ["0.
("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,242), ["1.4.0cvs","1.4"])]
+ ("1_4", range(223,243), ["1.4.0cvs","1.4"])]
def formats_list():
Index: lib/lyx2lyx/lyx_1_4.py
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/lyx2lyx/lyx_1_4.py,v
retrieving revision 1.31
diff -u -p -r1.31 lyx_1_4.py
--- lib/lyx2lyx/lyx_1_4.py 18 May 2005 14:50:29 -0000 1.31
+++ lib/lyx2lyx/lyx_1_4.py 20 Jun 2005 15:49:25 -0000
@@ -1835,6 +1836,13 @@ def revert_ert_paragraphs(file):
i = i + 1
+def convert_french(file):
+ regexp = re.compile(r'^\\language\s+frenchb')
+ i = find_re(file.header, regexp, 0)
+ if i != -1:
+ file.header[i] = "\\language french"
+
+
##
# Convertion hub
#
@@ -1860,9 +1883,11 @@ convert = [[223, [insert_tracking_change
[238, [update_latexaccents]],
[239, [normalize_paragraph_params]],
[240, [convert_output_changes]],
- [241, [convert_ert_paragraphs]]]
+ [241, [convert_ert_paragraphs]],
+ [242, [convert_french]]]
-revert = [[240, [revert_ert_paragraphs]],
+revert = [[241, []],
+ [240, [revert_ert_paragraphs]],
[239, [revert_output_changes]],
[238, []],
[237, []],