After the unicode merge to trunk in summer we discussed the question what

\inputencoding default

in a LyX file was supposed to do. We came to the conclusion then that this 
simply meant to not use the inputenc package, and simply output the 
document in 8bit characters as is.

Then the question arose how to convert those documents to utf8. LyX 1.4 can 
ignore the encoding very well, but this is not possible anymore in 1.5, 
since we can't "pass 8bit characters as is" anymore. We decided that the 
best lyx2lyx can do is to assume latin1 encoding for those documents.

Meanwhile we found out that the original assumption of lyx2lyx that the 
whole file is encoded using only one encoding was wrong. I implemented 
support for multiple encodings that is used for files with

\inputencoding default

I propose to change the conversion of files with "default" inputencoding to 
be the same as with "auto", together with the corresponding changes in LyX 
itself. The only difference between "auto" and "default" in LyX 1.5 would 
then be that documents with "auto" would use the inputenc package, but 
documents with "default" would not.

Reasons:

- This will make LyX 1.-5 display the same stuff on screen as 1.4, because 
the encoding for this is derived from the language in 1.4
- It will avoid nasty conversion errors like that decsribed in 
http://bugzilla.lyx.org/show_bug.cgi?id=3043#c6

Of course that means that all "default" documents that are already 
converted to 1.5 would not be valid anymore. IMO this is better than to 
add a new file format with an intermediate conversion step that might fail 
as in http://bugzilla.lyx.org/show_bug.cgi?id=3043#c6.

Opinions? If this is OK I'll develop a patch (will be easy).


Georg

Reply via email to