Juergen Spitzmueller wrote:
> Jean-Marc Lasgouttes wrote:
>> José> What is wrong with \usepackage[utf-8]{inputenc}?
>>
>> We should be able to generate output with any encoding the user wants:
>> latinX, utf-8, 7bit TeX. Any character that is not available in the
>> encoding would be replaced by the corresponding 7bit TeX macro.
>
> Some arguments:
>
> - for utf-8 you need a fairly recent LaTeX distribution
> - you don't rely on the fact that your coworkers and publishers actually
> accept unicode-encoded LaTeX files
> - not all packages work with unicode
>
>> What I do not know is whether this encoding should be in the file
>> itself, in the user's prefs.
>
> I think there should be a general pref and a document-specific setting.
I think we should change as little as possible. I propose the following
(slightly different than the existing lyx2lyx conversion):
Old: \inputenc (in the LyX file) determines the encoding of the LyX file and
the TeX file
New: \inputenc determines only the encoding of the TeX file, the LyX file is
always in utf-8. That would mean that we don't change the value of
\inputenc in the lyx2lyx conversion.
We could also have a general pref as default for new documents, but instead
I would prefer a global template that is used for new documents.
Problems: We might not be able to output a document to the desired LaTeX
encoding. We should give an error message then.
Did I miss anything?
Georg