Marcelo Acuña
Wed, 30 May 2007 14:03:06 -0700

> Then, can you manually convert your file? I mean,
> under a command prompt, run
>
> python -tt
> /usr/local/share/lyx-1.5.0b3/lyx2lyx/lyx2lyx -t 221
> yourfile.lyx > newfile.lyx
>
> Bo

 With this command I can run lyx2lyx but I get several
errors and I can´t get a file correctly exported.
 I get this message:

 UnicodeEncodeError: "latin-1" codec can´t encode
character u"\u0301" in position 0: ordinal not in
range(256)
 When in the file I deleted the character that produce
error and re run lyx2lyx I get a new error with
u"\u2044" character and so on.
 When I deleted all character with problem, lyx2lyx
export 99% of my file and become crazy:
 At the end of file lyx2lyx get error with all
accented character.
It sounds like:
http://bugzilla.lyx.org/show_bug.cgi?id=3313

If you are in a hurry, there's a patch at
http://www.mail-archive.com/[EMAIL PROTECTED]/msg119311.html
Note that it has not been included in the official source, but it converts many of the unicode characters.

Or you can replace the unicode characters by hand using the list on
http://www.lyx.org/trac/browser/lyx-devel/trunk/lib/unicodesymbols

Not that you may need to specify a latex package in the preamble using \usepackage{bla}. This is the case if you get an error message when exporting to pdf (i.e. not when converting). In your case there seems to be a lot of unicode symbols, so all of them may not be covered by the symbols list. You need to delete those characters manually.

Anders


Reply via email to