> I have been looking at this code from preamble.cpp
>
> // only set when there is not more than one inputenc
> // option therefore check for the "," character also
> // only set when there is not more then one babel
> // language option
> if (opts.find(",") == string::npos && one_language == true) {
>     if (opts == "ascii")
>     //change ascii to auto to be in the unicode range, see
>     //http://www.lyx.org/trac/ticket/4719
>         h_inputencoding = "auto";
>     else if (!opts.empty())
>         h_inputencoding = opts;
>     }
>
> and I do not understand its meaning. I can see that the special handling of "ascii" is not needed > anymore, but I cannot understand what is so special about having several encodings, or even
> several languages defined.

auto means in this case that the default encoding is used. So ascii is converted to the default encoding of the document language.
TeX documents can have different encodings. The last listed encoding is the 
document-wide encoding.

> Could you enlighten me? Otherwise, I'll just remove the code I do not 
understand
> and look at what happens :)

Removing something that one doesn't understand is a bad idea. Imagine you stop the water cooling of an atomic powerplant because you think its unnecessary ;-).

regards Uwe

Reply via email to