On Friday 13 July 2007 13:16:46 Anders Ekberg wrote: > I have tried to address Georg's and Juergen's comments. > To avoid data-loss, the function is only run if the encoding is auto > or default and there are no language changes (overly conservative, > but possible to work around, as commented in the code). Now, I > *assume* this should prevent any cases that can cause data-loss (i.e. > assuming unicode encoding when it is not), but I don't know the > format good enough to be sure, so please correct the code if I'm wrong.
We can extend the test to see if the included languages have the same encoding... > To avoid the need for two unicodesymbols files, I have removed that > requirement by assuming any command that includes { and } and not any > of the exception tokens, to be an accented character. I also check > for combining characters and don't translate these (which allowed the > removal of an if-test in the end of the code). It is not pretty, but > works... > > Details and an idea for a (hopefully) better solution are in bugzilla > http://bugzilla.lyx.org/show_bug.cgi?id=3958 As I said there the format change needs to be in lyx_1_5.py and not in LyX.py. > Anders -- José Abílio