]> git.lyx.org Git - features.git/commitdiff
Don't wrap characters marked as mathalpha in the unicodesymbols file.
authorEnrico Forestieri <forenr@lyx.org>
Mon, 6 Apr 2009 09:04:00 +0000 (09:04 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 6 Apr 2009 09:04:00 +0000 (09:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29121 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathParser.cpp

index aa71b268e036a454d88822eeeab86234ff8db870..456a7fd3fc21027e8cca7191460c2bec098df73a 100644 (file)
@@ -911,13 +911,15 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
                        char_type c = t.character();
                        if (c < 0x80 || mode_ & Parse::VERBATIM
                            || !(mode_ & Parse::USETEXT)
-                           || mode == InsetMath::TEXT_MODE) {
+                           || mode == InsetMath::TEXT_MODE
+                           || Encodings::isMathAlpha(c)) {
                                cell->push_back(MathAtom(new InsetMathChar(c)));
                        } else {
                                MathAtom at = createInsetMath("text");
                                at.nucleus()->cell(0).push_back(MathAtom(new InsetMathChar(c)));
                                while (nextToken().cat() == catOther
-                                      && nextToken().character() >= 0x80) {
+                                      && nextToken().character() >= 0x80
+                                      && !Encodings::isMathAlpha(nextToken().character())) {
                                        c = getToken().character();
                                        at.nucleus()->cell(0).push_back(MathAtom(new InsetMathChar(c)));
                                }