X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathChar.cpp;h=03bda07cf60475c4ebaae4584ea401c613fccc12;hb=6de3c19fd63f810eed90ef3bc4469faf28e949c2;hp=ae1a3b03ee3568b2287086330d10e02102c83a97;hpb=5168f2879c0595a93c88a7da61b50e431299c96c;p=lyx.git diff --git a/src/mathed/InsetMathChar.cpp b/src/mathed/InsetMathChar.cpp index ae1a3b03ee..03bda07cf6 100644 --- a/src/mathed/InsetMathChar.cpp +++ b/src/mathed/InsetMathChar.cpp @@ -18,7 +18,7 @@ #include "MetricsInfo.h" #include "Dimension.h" -#include "Encoding.h" +#include "BufferEncodings.h" #include "LaTeXFeatures.h" #include "TextPainter.h" @@ -140,8 +140,8 @@ void InsetMathChar::write(WriteStream & os) const void InsetMathChar::validate(LaTeXFeatures & features) const { - if (char_ >= 0x80) - encodings.validate(char_, features, true); + if (!isASCII(char_)) + BufferEncodings::validate(char_, features, true); } @@ -193,7 +193,7 @@ void InsetMathChar::mathmlize(MathStream & ms) const } char const * type = - (isalpha(char_) || Encodings::isMathAlpha(char_)) + (isAlphaASCII(char_) || Encodings::isMathAlpha(char_)) ? "mi" : "mo"; // we don't use MTag and ETag because we do not want the spacing ms << "<" << type << ">" << char_type(char_) << ""; @@ -227,7 +227,7 @@ void InsetMathChar::htmlize(HtmlStream & ms) const return; } - if (isalpha(char_) || Encodings::isMathAlpha(char_)) + if (isAlphaASCII(char_) || Encodings::isMathAlpha(char_)) // we don't use MTag and ETag because we do not want the spacing ms << MTag("i") << char_type(char_) << ETag("i"); else