From: Jean-Marc Lasgouttes Date: Thu, 23 Apr 2009 13:08:31 +0000 (+0000) Subject: Fix bug #5912: http://www.lyx.org/trac/ticket/5912 X-Git-Tag: 2.0.0~6760 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0a99e817f16040143644e8b3297c173568e5a364;p=features.git Fix bug #5912: http://www.lyx.org/trac/ticket/5912 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 --- diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index 76d14513d6..69eaf88444 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -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;