diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-10-10 13:36:53 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-10-10 13:36:53 +0200 |
commit | d47ee9fc195ba82eef5e4be132b1d88b7f009a9c (patch) | |
tree | 45964c47b2242f6ff9bf6a881639146be1edd201 /tex/context/base/mkiv/font-agl.lua | |
parent | edaa6851d5c096acba2ad5817f70d3eb7cec46e6 (diff) | |
download | context-d47ee9fc195ba82eef5e4be132b1d88b7f009a9c.tar.gz |
2017-10-10 12:06:00
Diffstat (limited to 'tex/context/base/mkiv/font-agl.lua')
-rw-r--r-- | tex/context/base/mkiv/font-agl.lua | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/font-agl.lua b/tex/context/base/mkiv/font-agl.lua index ec6c519ee..aec6415f7 100644 --- a/tex/context/base/mkiv/font-agl.lua +++ b/tex/context/base/mkiv/font-agl.lua @@ -7,6 +7,7 @@ if not modules then modules = { } end modules ['font-agl'] = { } local allocate = utilities.storage.allocate +local mark = utilities.storage.mark fonts = fonts or { } local encodings = fonts.encodings or { } @@ -16,7 +17,7 @@ fonts.encodings.agl = agl table.setmetatableindex(agl,nil) -- prevent recursive lookups otherwise when autoloaded -local synonyms = { +local synonyms = allocate { Acyrillic = 0x0410, Becyrillic = 0x0411, Cdot = 0x010A, @@ -644,7 +645,13 @@ local names = agl.names local unicodes = agl.unicodes local ctxcodes = agl.ctxcodes -if not names then +if names then + + mark(names) + mark(unicodes) + mark(ctxcodes) + +else names = allocate { } -- filled from char-def.lua unicodes = allocate { } @@ -678,9 +685,9 @@ if not names then end if storage then - storage.register("encodings/names", names, "fonts.encodings.names") - storage.register("encodings/unicodes", unicodes, "fonts.encodings.unicodes") - storage.register("encodings/ctxcodes", ctxcodes, "fonts.encodings.ctxcodes") + storage.register("encodings/names", names, "fonts.encodings.agl.names") + storage.register("encodings/unicodes", unicodes, "fonts.encodings.agl.unicodes") + storage.register("encodings/ctxcodes", ctxcodes, "fonts.encodings.agl.ctxcodes") end end |