From: Enrico Forestieri Date: Mon, 6 Apr 2009 09:04:00 +0000 (+0000) Subject: Don't wrap characters marked as mathalpha in the unicodesymbols file. X-Git-Tag: 2.0.0~6924 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=56210f5a39bd9589e78bc5899e39a0b2f979b26b;p=features.git Don't wrap characters marked as mathalpha in the unicodesymbols file. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29121 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/mathed/MathParser.cpp b/src/mathed/MathParser.cpp index aa71b268e0..456a7fd3fc 100644 --- a/src/mathed/MathParser.cpp +++ b/src/mathed/MathParser.cpp @@ -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))); }