···<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
pgputR9imFGu1.pgp
Description: PGP signature
