]> git.lyx.org Git - lyx.git/commitdiff
preamble.cpp: adjust comments for better clarity
authorUwe Stöhr <uwestoehr@web.de>
Thu, 10 Dec 2009 02:29:49 +0000 (02:29 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Thu, 10 Dec 2009 02:29:49 +0000 (02:29 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32447 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp

index 328c7bc5bc3dedf1f9072f6cdecaf6190ea207bc..d2218f40eb66917bd209a293d6dcb3386071077e 100644 (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