]> git.lyx.org Git - features.git/commitdiff
tex2lyx: adapt handling of \fontencoding to LyX 2.x's syntax
authorUwe Stöhr <uwestoehr@web.de>
Tue, 25 Oct 2011 15:39:50 +0000 (15:39 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Tue, 25 Oct 2011 15:39:50 +0000 (15:39 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39962 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/preamble.cpp

index 23d95e8b5a9528af3d5c312a8894a7aa8fe485af..917fbabbd4ce4315aba262888c6e7df90ae5839c 100644 (file)
@@ -175,7 +175,7 @@ string h_use_default_options     = "false";
 string h_options;
 string h_language                = "english";
 string h_language_package        = "default";
-string h_fontencoding            = "default";
+string h_fontencoding            = "global";
 string h_font_roman              = "default";
 string h_font_sans               = "default";
 string h_font_typewriter         = "default";
@@ -549,11 +549,9 @@ void handle_package(Parser &p, string const & name, string const & opts,
 
        else if (name == "fontenc") {
                h_fontencoding = getStringFromVector(options, ",");
-               /* We could do the following for better round trip support,
-                * but this makes the document less portable, so I skip it:
-               if (h_fontencoding == lyxrc.fontenc)
+               // as of version LyX 2.0 "T1" is equal to the setting "global"
+               if (h_fontencoding == "T1")
                        h_fontencoding = "global";
-                */
                options.clear();
        }