[luatex] callbacks in luatex 0.89
Philipp Gesang
phg at phi-gamma.net
Fri Feb 12 23:26:21 CET 2016
···<date: 2016-02-11, Thursday>···<from: Hans Hagen>···
> return function(specification)
> local t = { }
> for k, v in pairs(specification.features.normal) do
With Plain from Context 2016.02.08 15:35, features.normal contains:
table={
["0x41-0x5A+0x30-0x39+0x21"]=true,
["1"]="61",
["2"]="62",
}
> local n = tonumber(k)
> if n then
> t[n] = v
> end
> end
At this point, t = { "61", "62" }.
> for k, v in ipairs(t) do
> local name, rest = string.match(v,"^(.-):(.*)$")
This matches no entry -> only the first font is ever used. It’s
obvious what the code is intended to accomplish but it won’t work
as-is with the spec parser.
Philipp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://tug.org/pipermail/luatex/attachments/20160212/afcacafc/attachment.bin>
More information about the luatex
mailing list