one_language = false;
h_inputencoding = "auto";
}
- // babel takes the the last language of the option of its \usepackage
+ // babel takes the last language of the option of its \usepackage
// call as document language. If there is no such language option, the
// last language in the documentclass options is used.
handle_opt(options, known_languages, h_language);
;// ignore this
else if (name == "inputenc") {
- // 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
+ // h_inputencoding is only set when there is not more than one
+ // inputenc option because otherwise h_inputencoding must be
+ // set to "auto" (the default encoding of the document language)
+ // Therefore check for the "," character.
+ // It is also only set when there is not more then one babel
+ // language option but this is handled in the routine for babel.
if (opts.find(",") == string::npos && one_language == true) {
if (opts == "ascii")
//change ascii to auto to be in the unicode range, see