diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-08-19 01:08:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-08-19 01:08:00 +0200 |
commit | 174663b0081dd76f91c45fd705262a262a7b1f49 (patch) | |
tree | 554d5d47e81a9263e98fe7091be7e4dbd363482b /tex/context/base/font-col.lua | |
parent | e68c228a21a98042c87ef21d9a094b97f941e8de (diff) | |
download | context-174663b0081dd76f91c45fd705262a262a7b1f49.tar.gz |
beta 2010.08.19 01:08
Diffstat (limited to 'tex/context/base/font-col.lua')
-rw-r--r-- | tex/context/base/font-col.lua | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tex/context/base/font-col.lua b/tex/context/base/font-col.lua index af72ff0da..357567d14 100644 --- a/tex/context/base/font-col.lua +++ b/tex/context/base/font-col.lua @@ -11,6 +11,7 @@ if not modules then modules = { } end modules ['font-col'] = { local format, gmatch, texsprint, type = string.format, string.gmatch, tex.sprint, type local traverse_id, first_character = node.traverse_id, node.first_character local lpegmatch = lpeg.match +local settings_to_hash = utilities.parsers.settings_to_hash local ctxcatcodes = tex.ctxcatcodes @@ -18,19 +19,20 @@ local trace_collecting = false trackers.register("fonts.collecting", function(v local report_fonts = logs.new("fonts") -local fontdata = fonts.ids +local fonts = fonts -local glyph = node.id('glyph') +fonts.collections = fonts.collections or { } +local collections = fonts.collections + +collections.definitions = collections.definitions or { } +local definitions = collections.definitions -fonts.normalizers = fonts.normalizers or { } +collections.vectors = collections.vectors or { } +local vectors = collections.vectors -fonts.collections = fonts.collections or { } -fonts.collections.definitions = fonts.collections.definitions or { } -fonts.collections.vectors = fonts.collections.vectors or { } +local fontdata = fonts.ids -local collections = fonts.collections -local definitions = fonts.collections.definitions -local vectors = fonts.collections.vectors +local glyph = node.id('glyph') local list, current, active = { }, 0, false @@ -65,7 +67,7 @@ function collections.define(name,font,ranges,details) d = { } definitions[name] = d end - details = aux.settings_to_hash(details) + details = settings_to_hash(details) -- todo, combine per font start/stop as arrays for s in gmatch(ranges,"([^, ]+)") do local start, stop, description = characters.getrange(s) |