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
This commit is contained in:
Enrico Forestieri 2009-04-06 09:04:00 +00:00
parent ca6d526ba1
commit 56210f5a39

View 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)));
}