José Abilio a écrit :
On Tuesday 10 July 2007 15:13:49 Philippe Charpentier wrote:
(in fact almost: there is still a problem with old files using the tag
"\language frenchb" and perhaps others...?)
as they are (i.e. without any conversion).

lyx2lyx converts those documents coming from 1.3.x or before. Isn't that working?
When I open some old files I obtain the following error:

Traceback (most recent call last):
File "/usr/local/lyx-1.5-UTF-8/share/lyx/./lyx2lyx/lyx2lyx", line 101, in <module>
   sys.exit(main(sys.argv))
File "/usr/local/lyx-1.5-UTF-8/share/lyx/./lyx2lyx/lyx2lyx", line 92, in main file = LyX.File(end_format, input, output, error, debug, try_hard, cjk_encoding) File "/usr/local/lyx-1.5-UTF-8/share/lyx/lyx2lyx/LyX.py", line 556, in __init__
   self.read()
File "/usr/local/lyx-1.5-UTF-8/share/lyx/lyx2lyx/LyX.py", line 242, in read self.encoding = get_encoding(self.language, self.inputencoding, self.format, self.cjk_encoding) File "/usr/local/lyx-1.5-UTF-8/share/lyx/lyx2lyx/LyX.py", line 128, in get_encoding
   return lang[language][3]
KeyError: 'frenchb'
Error: Échec du script de conversion

but, if I manually replace "\language frenchb" by "\language french" in the file, lyx2lyx
converts it successfully...

PhC

Reply via email to