MathCharInset::MathCharInset(char c)
: char_(c), code_(nativeCode(c))
{
- if (isalpha(c))
- code_ = LM_TC_VAR;
+//lyxerr << "creating char '" << char_ << "' with code " << int(code_) << endl;
}
MathCharInset::MathCharInset(char c, MathTextCodes t)
: char_(c), code_((t == LM_TC_MIN) ? nativeCode(c) : t)
-{}
+{
+//lyxerr << "creating char '" << char_ << "' with code " << int(code_) << endl;
+}
MathTextCodes MathCharInset::nativeCode(char c) const
{
if (isalpha(c))
return LM_TC_VAR;
- return LM_TC_MIN;
+ return LM_TC_CONST;
}
{
xo(x);
yo(y);
+ //lyxerr << "drawing '" << char_ << "' code: " << code_ << endl;
drawChar(pain, code_, size_, x, y, char_);
}
}
-const unsigned char LM_TK_OPEN = '{';
-const unsigned char LM_TK_CLOSE = '}';
-
enum {
FLAG_BRACE = 1 << 0, // an opening brace needed
FLAG_BRACE_LAST = 1 << 1, // last closing brace ends the parsing process
}
}
- //lyxerr << "\nTokens: ";
- //for (unsigned i = 0; i < tokens_.size(); ++i)
- // lyxerr << tokens_[i];
- //lyxerr << "\n";
+#if 0
+ lyxerr << "\nTokens: ";
+ for (unsigned i = 0; i < tokens_.size(); ++i)
+ lyxerr << tokens_[i];
+ lyxerr << "\n";
+#endif
}