summaryrefslogtreecommitdiff
path: root/tex/context/base/char-enc.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2014-07-06 22:50:00 +0200
committerHans Hagen <pragma@wxs.nl>2014-07-06 22:50:00 +0200
commit73b0f4f97a684af38d4aa3bfd4829939ad47c7c7 (patch)
treeac5b5ddb99c69592da73cb5618af6c3832cd99b7 /tex/context/base/char-enc.lua
parentdb237f90e36d8862262f16f579eb98c1948faa03 (diff)
downloadcontext-73b0f4f97a684af38d4aa3bfd4829939ad47c7c7.tar.gz
beta 2014.07.06 22:50
Diffstat (limited to 'tex/context/base/char-enc.lua')
-rw-r--r--tex/context/base/char-enc.lua11
1 files changed, 9 insertions, 2 deletions
diff --git a/tex/context/base/char-enc.lua b/tex/context/base/char-enc.lua
index 048837eec..c2061891a 100644
--- a/tex/context/base/char-enc.lua
+++ b/tex/context/base/char-enc.lua
@@ -9,6 +9,8 @@ if not modules then modules = { } end modules ['char-enc'] = {
-- Thanks to tex4ht for these mappings.
+local next = next
+
local allocate, setinitializer = utilities.storage.allocate, utilities.storage.setinitializer
characters = characters or { }
@@ -169,7 +171,10 @@ characters.synonyms = allocate { -- afm mess
-- that table.print would not work on this file unless it is accessed once. This
-- why the serializer does a dummy access.
-local enccodes = allocate() characters.enccodes = enccodes
+local enccodes = allocate()
+characters.enccodes = enccodes
+
+ -- maybe omit context name -> then same as encodings.make_unicode_vector
local function initialize()
for unicode, data in next, characters.data do
@@ -179,7 +184,9 @@ local function initialize()
end
end
for name, unicode in next, characters.synonyms do
- if not enccodes[name] then enccodes[name] = unicode end
+ if not enccodes[name] then
+ enccodes[name] = unicode
+ end
end
end