A hopefully better solution is posted to bugzilla. Details in

http://bugzilla.lyx.org/show_bug.cgi?id=3958

/Anders

Anders Ekberg

Fri, 13 Jul 2007 05:18:45 -0700

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.

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

Reply via email to