]> git.lyx.org Git - features.git/commitdiff
Fix bug #5912: http://www.lyx.org/trac/ticket/5912
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 23 Apr 2009 13:08:31 +0000 (13:08 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 23 Apr 2009 13:08:31 +0000 (13:08 +0000)
The problem was that \" was forgotten in the list of accents to check
in unicodesymbols (because it used to have its own german-centric derogatory
handling).

I took the Comprehensive LaTeX Symbols List (table 6) and added all the
missing accents.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29387 a592a061-630c-0410-9148-cb99ea01b6c8

src/tex2lyx/text.cpp

index 76d14513d6f1ff10990506df1fb84459bbbefd23..69eaf8844479dc85a0aa7985e2f66ef45acf3559 100644 (file)
@@ -2245,10 +2245,9 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
                else if (t.cs() == "=" && (flags & FLAG_TABBING))
                        handle_ert(os, t.asInput(), context);
 
-               else if (t.cs() == "H" || t.cs() == "c" || t.cs() == "^"
-                        || t.cs() == "'" || t.cs() == "`"
-                        || t.cs() == "~" || t.cs() == "." || t.cs() == "=") {
-                       // we need the trim as the LyX parser chokes on such spaces
+               // accents (see Table 6 in Comprehensive LaTeX Symbol List)
+               else if (t.cs().size() == 1 
+                        && contains("\"'.=^`bcdHkrtuv~", t.cs())) {
                        context.check_layout(os);
                        // try to see whether the string is in unicodesymbols
                        docstring rem;