mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
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:
parent
ca6d526ba1
commit
56210f5a39
@ -911,13 +911,15 @@ bool Parser::parse1(InsetMathGrid & grid, unsigned flags,
|
|||||||
char_type c = t.character();
|
char_type c = t.character();
|
||||||
if (c < 0x80 || mode_ & Parse::VERBATIM
|
if (c < 0x80 || mode_ & Parse::VERBATIM
|
||||||
|| !(mode_ & Parse::USETEXT)
|
|| !(mode_ & Parse::USETEXT)
|
||||||
|| mode == InsetMath::TEXT_MODE) {
|
|| mode == InsetMath::TEXT_MODE
|
||||||
|
|| Encodings::isMathAlpha(c)) {
|
||||||
cell->push_back(MathAtom(new InsetMathChar(c)));
|
cell->push_back(MathAtom(new InsetMathChar(c)));
|
||||||
} else {
|
} else {
|
||||||
MathAtom at = createInsetMath("text");
|
MathAtom at = createInsetMath("text");
|
||||||
at.nucleus()->cell(0).push_back(MathAtom(new InsetMathChar(c)));
|
at.nucleus()->cell(0).push_back(MathAtom(new InsetMathChar(c)));
|
||||||
while (nextToken().cat() == catOther
|
while (nextToken().cat() == catOther
|
||||||
&& nextToken().character() >= 0x80) {
|
&& nextToken().character() >= 0x80
|
||||||
|
&& !Encodings::isMathAlpha(nextToken().character())) {
|
||||||
c = getToken().character();
|
c = getToken().character();
|
||||||
at.nucleus()->cell(0).push_back(MathAtom(new InsetMathChar(c)));
|
at.nucleus()->cell(0).push_back(MathAtom(new InsetMathChar(c)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user