1if not modules then modules = { } end modules ['demo-font.lum'] = { 2 version = 1.001, 3 comment = "companion to font-map.lua", 4 author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", 5 copyright = "PRAGMA ADE / ConTeXt Development Team", 6 license = "see context related readme files" 7} 8 9--[[ 10 11 After some testing Taco and I decided that the lack of information 12 with regards to unicode mapping of alternative shapes can best be 13 handled by an auxiliary table. So, here is an example. This file 14 gets its place in TDS in: 15 16/fonts/map/luatex/context/demo-file.lum 17 18 We recommend that you use a lowercase filename, just to prevent 19 lookup errors. Font filenames are already such a mess. 20 21 A test file, dedicated to Dohyun Kim is: 22 23 \usemodule[fnt-20] 24 25 \starttext 26 27 \definefontfeature 28 [otftracker-kozminprovi-regular] 29 [mode=node,vrt2=yes,script=latn] 30 31 \setvariables 32 [otftracker] 33 [font=kozminprovi-regular, 34 sample=\char"3002] 35 36 \stoptext 37 38 In the resulting pdf file you will then find: 39 40 begincmap 41 /CIDSystemInfo 42 << /Registry (TeX) 43 /Ordering (FNUMTE-KozMinProVI-Regular) 44 /Supplement 0 45 >> def 46 /CMapName /TeX-Identity-FNUMTE-KozMinProVI-Regular def 47 /CMapType 2 def 48 1 begincodespacerange 49 <0000> 50 endcodespacerange 51 0 beginbfrange 52 endbfrange 53 2 beginbfchar 54 <027B> <3002> 55 <1ED0> <3002> 56 endbfchar 57 endcmap 58 59 Of course this assumes that the font used is the same as we 60 have on our machines. 61 62]]-- 63 64return { 65 version = 1.00, 66 fontname = "kozminprovi-regular.otf", 67 tounicode = { 68 ["Japan1.7888"] = 0x3002, 69 }, 70} 71