preamble.cpp: adjust comments for better clarity

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32447 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2009-12-10 02:29:49 +00:00
parent 23e97ea72a
commit d04377a231

View File

@ -311,7 +311,7 @@ void handle_package(Parser &p, string const & name, string const & opts,
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);
@ -340,10 +340,12 @@ void handle_package(Parser &p, string const & name, string const & opts,
;// 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