]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathChar.cpp
Years forgotten files.
[lyx.git] / src / mathed / InsetMathChar.cpp
index ae1a3b03ee3568b2287086330d10e02102c83a97..2e62ffcd6073d8732edcada6e45e50c60fbf68c7 100644 (file)
@@ -140,7 +140,7 @@ void InsetMathChar::write(WriteStream & os) const
 
 void InsetMathChar::validate(LaTeXFeatures & features) const
 {
-       if (char_ >= 0x80)
+       if (!isASCII(char_))
                encodings.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_) << "</" << type << ">";    
@@ -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