diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/luatex/generic/luaotfload/fontloader-fonts-mis.lua |
Initial commit
Diffstat (limited to 'macros/luatex/generic/luaotfload/fontloader-fonts-mis.lua')
-rw-r--r-- | macros/luatex/generic/luaotfload/fontloader-fonts-mis.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/macros/luatex/generic/luaotfload/fontloader-fonts-mis.lua b/macros/luatex/generic/luaotfload/fontloader-fonts-mis.lua new file mode 100644 index 0000000000..b472b86dda --- /dev/null +++ b/macros/luatex/generic/luaotfload/fontloader-fonts-mis.lua @@ -0,0 +1,35 @@ +if not modules then modules = { } end modules ['luatex-font-mis'] = { + version = 1.001, + comment = "companion to luatex-*.tex", + author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", + copyright = "PRAGMA ADE / ConTeXt Development Team", + license = "see context related readme files" +} + +if context then + os.exit() +end + +local currentfont = font.current + +local hashes = fonts.hashes +local identifiers = hashes.identifiers or { } +local marks = hashes.marks or { } + +hashes.identifiers = identifiers +hashes.marks = marks + +table.setmetatableindex(marks,function(t,k) + if k == true then + return marks[currentfont()] + else + local resources = identifiers[k].resources or { } + local marks = resources.marks or { } + t[k] = marks + return marks + end +end) + +function font.each() + return table.sortedhash(fonts.hashes.identifiers) +end |