On Wed, Apr 30, 2008 at 08:14:54PM +0200, Uwe Stöhr wrote: > rgheck schrieb: > >>> Concerning Unicode, I have asked for help several times but nobody could >>> help me to implement this - so I guess it will not happen the next years. >>> >> I'd be happy to help with this, if I knew what it was about and had >> relevant abilities. We really should try to bring tex2lyx up to date for >> 1.6. > > tex2lyx gets TeX-files in an unknown encoding. > So we neeed to check according to the inputenc package option what encoding > the file is. > If inputenc isn't used in the file, we can assume that it is plain ASCII. > Then everything we read from the file has to be transferred to Unicode, so > that the resulting LyX file is Unicode encoded. > > That's it. This is not very difficult to do for someone who knows the > Unicode handling of LyX and so also iconv. I tried to work on this but > failed :-)
We could also provide a commandline argument to override our guesses. And, instead of assuming 7 bit ASCII we should assume UTF-8. This would be a uniformly better guess. Andre'