- if (isalpha(c) && (lastcode_ == LM_TC_GREEK || lastcode_ == LM_TC_GREEK1)) {
- static char const greekl[][26] =
- {"alpha", "beta", "chi", "delta", "epsilon", "phi",
- "gamma", "eta", "iota", "iota", "kappa", "lambda", "mu",
- "nu", "omikron", "pi", "omega", "rho", "sigma",
- "tau", "upsilon", "theta", "omega", "xi", "upsilon", "zeta"};
- static char const greeku[][26] =
- {"Alpha", "Beta", "Chi", "Delta", "Epsilon", "Phi",
- "Gamma", "Eta", "Iota", "Iota", "Kappa", "Lambda", "Mu",
- "Nu", "Omikron", "Pi", "Omega", "Rho", "Sigma", "Tau",
- "Upsilon", "Theta", "Omega", "xi", "Upsilon", "Zeta"};
-
- latexkeys const * l = 0;
- if ('a' <= c && c <= 'z')
- l = in_word_set(greekl[c - 'a']);
- if ('A' <= c && c <= 'Z')
- l = in_word_set(greeku[c - 'A']);
-
- if (l)
- insert(createMathInset(l));
- else
- insert(c, LM_TC_VAR);