diff options
Diffstat (limited to 'tex/context/base/math-ini.lua')
-rw-r--r-- | tex/context/base/math-ini.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/math-ini.lua b/tex/context/base/math-ini.lua index d3f2b87ae..60a91071f 100644 --- a/tex/context/base/math-ini.lua +++ b/tex/context/base/math-ini.lua @@ -359,8 +359,10 @@ mathematics.slots.current = mathematics.slots.traditional --~ end function mathematics.utfmathclass(chr, default) - return characters.data[utf.byte(chr)].mathclass or default or "unknown" + local cd = characters.data[utf.byte(chr)] + return (cd and cd.mathclass) or default or "unknown" end function mathematics.utfmathcommand(chr, default) - return characters.data[utf.byte(chr)].mathname or default or "unknown" + local cd = characters.data[utf.byte(chr)] + return (cd and cd.mathname) or default or "unknown" end |