From deee6a29cb7ef11e15d1f9376d5f56516b46d726 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 13 May 2013 21:31:27 +0200 Subject: remove dead code from ``luaotfload-features.lua`` --- luaotfload-features.lua | 51 +++++++++++++++---------------------------------- 1 file changed, 15 insertions(+), 36 deletions(-) (limited to 'luaotfload-features.lua') diff --git a/luaotfload-features.lua b/luaotfload-features.lua index 33b529f..1c85dd7 100644 --- a/luaotfload-features.lua +++ b/luaotfload-features.lua @@ -873,8 +873,14 @@ local toboolean = function (s) return stringlower(s) end ---- dirty test if a file: request is actually a path: lookup; don’t ---- ask! +--[[doc-- + + Dirty test if a file: request is actually a path: lookup; don’t + ask! Note this fails on Windows-style absolute paths. These will + *really* have to use the correct request. + +--doc]]-- + local check_garbage = function (_,i, garbage) if stringfind(garbage, "/") then report("log", 0, "load", --- ffs use path! @@ -1388,9 +1394,13 @@ local anum_specification = { }, } ---- below the specifications as given in the removed font-otc.lua ---- the rest was identical to what this file had from the beginning ---- both make the “anum.tex” test pass anyways +--[[doc-- + + Below the specifications as given in the removed font-otc.lua. + The rest was identical to what this file had from the beginning. + Both make the “anum.tex” test pass anyways. + +--doc]]-- otf.addfeature("anum",anum_specification) @@ -1399,35 +1409,4 @@ registerotffeature { description = 'arabic digits', } -if characters.combined then - - local tcom = { } - - local function initialize() - characters.initialize() - for first, seconds in next, characters.combined do - for second, combination in next, seconds do - tcom[combination] = { first, second } - end - end - -- return false - end - - local tcom_specification = { - type = "ligature", - features = everywhere, - data = tcom, - flags = noflags, - initialize = initialize, - } - - otf.addfeature("tcom",tcom_specification) - - registerotffeature { - name = 'tcom', - description = 'tex combinations', - } - -end - -- vim:tw=71:sw=4:ts=4:expandtab -- cgit v1.2.3