*/
bool createInsetMath_fromDialogStr(docstring const &, MathData &);
-/** Tells whether the argument is an ascii character or is marked as
- * mathalpha in the unicodesymbols file.
- */
-bool isAsciiOrMathAlpha(char_type);
-
typedef std::map<docstring, latexkeys> MathWordList;
MathWordList const & mathedWordList();
else if (t.cat() == catOther) {
char_type c = t.character();
- if (isAsciiOrMathAlpha(c)
+ if (!Encodings::isUnicodeTextOnly(c)
|| mode_ & Parse::VERBATIM
|| !(mode_ & Parse::USETEXT)
|| mode == InsetMath::TEXT_MODE) {
MathAtom at = createInsetMath("text", buf);
at.nucleus()->cell(0).push_back(MathAtom(new InsetMathChar(c)));
while (nextToken().cat() == catOther
- && !isAsciiOrMathAlpha(nextToken().character())) {
+ && Encodings::isUnicodeTextOnly(nextToken().character())) {
c = getToken().character();
at.nucleus()->cell(0).push_back(MathAtom(new InsetMathChar(c)));
}