summaryrefslogtreecommitdiff
path: root/tex/context/base/math-ini.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2010-09-03 12:35:26 +0300
committerMarius <mariausol@gmail.com>2010-09-03 12:35:26 +0300
commit16895587e51f8243a7e4dc6185979894fb199d4f (patch)
tree923fe9fe4d34a11202e06a4258ba71bab6ccde8d /tex/context/base/math-ini.lua
parent20da4ce347921be291c8804041bd8756e3bf1707 (diff)
downloadcontext-16895587e51f8243a7e4dc6185979894fb199d4f.tar.gz
beta 2010.09.03 11:05
Diffstat (limited to 'tex/context/base/math-ini.lua')
-rw-r--r--tex/context/base/math-ini.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/math-ini.lua b/tex/context/base/math-ini.lua
index 9efc8ce64..838ed0e80 100644
--- a/tex/context/base/math-ini.lua
+++ b/tex/context/base/math-ini.lua
@@ -13,6 +13,8 @@ local utf = unicode.utf8
local texsprint, format, utfchar, utfbyte = tex.sprint, string.format, utf.char, utf.byte
+local allocate = utilities.storage.allocate
+
local trace_defining = false trackers.register("math.defining", function(v) trace_defining = v end)
local report_math = logs.new("mathematics")
@@ -23,11 +25,11 @@ local mathematics = mathematics
mathematics.extrabase = 0xFE000 -- here we push some virtuals
mathematics.privatebase = 0xFF000 -- here we push the ex
-local families = {
+local families = allocate {
tf = 0, it = 1, sl = 2, bf = 3, bi = 4, bs = 5, -- virtual fonts or unicode otf
}
-local classes = {
+local classes = allocate {
ord = 0, -- mathordcomm mathord
op = 1, -- mathopcomm mathop
bin = 2, -- mathbincomm mathbin