diff --git a/luametalatex-font-tfm.lua b/luametalatex-font-tfm.lua index c5d7798..5c6dbd3 100644 --- a/luametalatex-font-tfm.lua +++ b/luametalatex-font-tfm.lua @@ -16,7 +16,7 @@ local function read_scaled(buf, i, count, factor) return result, i + count * 4 end local function parse_ligkern(buf, offset, r_boundary, kerns) - local kerns, ligatures, done = {}, {}, {} + local kerning, ligatures, done = {}, {}, {} repeat local skip, next, op, rem skip, next, op, rem, offset = string.unpack("BBBB", buf, offset) @@ -25,7 +25,7 @@ local function parse_ligkern(buf, offset, r_boundary, kerns) if not done[next] then done[next] = true if op >= 128 then - kerns[next] = kerns[(op - 128 << 8) + rem + 1] + kerning[next] = kerns[(op - 128 << 8) + rem + 1] else ligatures[next] = { type = op, @@ -34,7 +34,7 @@ local function parse_ligkern(buf, offset, r_boundary, kerns) end end until skip == 128 - return next(kerns) and kerns or nil, next(ligatures) and ligatures or nil + return next(kerning) and kerning or nil, next(ligatures) and ligatures or nil end local function parse_tfm(buf, i, size) local lf, lh, bc, ec, nw, nh, nd, ni, nl, nk, ne, np diff --git a/luametaplain-init.lua b/luametaplain-init.lua new file mode 120000 index 0000000..0954e25 --- /dev/null +++ b/luametaplain-init.lua @@ -0,0 +1 @@ +luametalatex-init.lua \ No newline at end of file diff --git a/luametaplain.ini b/luametaplain.ini new file mode 100644 index 0000000..b189cb4 --- /dev/null +++ b/luametaplain.ini @@ -0,0 +1,23 @@ +% tex-ini-files 2016-04-15: luatex.ini + +% Karl Berry, originally written 2008. Public domain. +% PDF output by default. + +% Must be done first (as needs to 'tidy up') +% \input luatexconfig.tex +% Activate primitives +\input luatexiniconfig.tex +\begingroup +% load-unicode-data needs \eTeXversion +\catcode`\{=1 +\catcode`\}=2 +\global\chardef\eTeXversion=2 +\global\def\eTeXrevision{.2} +\endgroup +\input load-unicode-data.tex +\showthe\mathcode`\1 +\input etex.src +\showthe\mathcode`\1 +\input luametalatex-baseregisters +\showthe\mathcode`\1 +\dump diff --git a/luametaplain.lua b/luametaplain.lua new file mode 120000 index 0000000..42725df --- /dev/null +++ b/luametaplain.lua @@ -0,0 +1 @@ +luametalatex.lua \ No newline at end of file