1if not modules then modules = { } end modules ['luatex-font-mis'] = { 2 version = 1.001, 3 comment = "companion to luatex-*.tex", 4 author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", 5 copyright = "PRAGMA ADE / ConTeXt Development Team", 6 license = "see context related readme files" 7} 8 9if context then 10 os.exit() 11end 12 13local currentfont = font.current 14 15local hashes = fonts.hashes 16local identifiers = hashes.identifiers or { } 17local marks = hashes.marks or { } 18 19hashes.identifiers = identifiers 20hashes.marks = marks 21 22table.setmetatableindex(marks,function(t,k) 23 if k == true then 24 return marks[currentfont()] 25 else 26 local resources = identifiers[k].resources or { } 27 local marks = resources.marks or { } 28 t[k] = marks 29 return marks 30 end 31end) 32 33function font.each() 34 return table.sortedhash(fonts.hashes.identifiers) 35end 36 |