4 luatexbase.provides_module({
8 description = 'The OTF Lua module for LuaTeX-ja',
10 module('luatexja.otf', package.seeall)
12 require('luatexja.base'); local ltjb = luatexja.base
14 local attr_curjfnt = luatexbase.attributes['ltj@curjfnt']
17 local curjfnt = fonts.ids[tex.attribute[attr_curjfnt]]
18 if curjfnt.cidinfo.ordering ~= "Japan1" then
19 ltjb.package_error('luatexja-otf',
20 'Current Japanese font "'..curjfnt.psname..'" is not a CID-Keyed font (Adobe-Japan1)',
21 'Select a CID-Keyed font using \jfont.')
24 local char = curjfnt.unicodes['Japan1.'..tostring(key)]
26 ltjb.package_error('luatexja-otf',
27 'Current Japanese font "'..curjfnt.psname..'" does not include the specified CID character ('..tostring(key)..')',
28 'Use a font including the specified CID character.')
34 -------------------- all done