summaryrefslogtreecommitdiff
path: root/tex/context/base/math-ext.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2012-10-02 22:03:00 +0200
committerHans Hagen <pragma@wxs.nl>2012-10-02 22:03:00 +0200
commit08f8bbb60ad11fe3fe1b5632b2eca97422c5bf8c (patch)
tree1ea0d9f304ed82d113e109c4f17277dd062d7f93 /tex/context/base/math-ext.lua
parentdf4e78545a9a7e02cca523a2912aa1684f6867c6 (diff)
downloadcontext-08f8bbb60ad11fe3fe1b5632b2eca97422c5bf8c.tar.gz
beta 2012.10.02 22:03
Diffstat (limited to 'tex/context/base/math-ext.lua')
-rw-r--r--tex/context/base/math-ext.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tex/context/base/math-ext.lua b/tex/context/base/math-ext.lua
index da00c7a9e..047543970 100644
--- a/tex/context/base/math-ext.lua
+++ b/tex/context/base/math-ext.lua
@@ -20,8 +20,11 @@ characters.math = characters.math or { }
local mathdata = characters.math
local chardata = characters.data
-function extras.add(unicode,t)
+function extras.add(unicode,t) -- todo: if already stored ...
local min, max = mathematics.extrabase, mathematics.privatebase - 1
+ -- if mathdata[unicode] or chardata[unicode] then
+ -- report_math("extra U+%05X overloads existing character",unicode)
+ -- end
if unicode >= min and unicode <= max then
mathdata[unicode], chardata[unicode] = t, t
else