diff options
| author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-13 21:31:27 +0200 | 
|---|---|---|
| committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-13 21:31:27 +0200 | 
| commit | deee6a29cb7ef11e15d1f9376d5f56516b46d726 (patch) | |
| tree | a719333c4daf8665dcbf281c0d479c1cc9e0a1d2 | |
| parent | bd8bb3ee7f8ff1d97cb487ac6b8ff282945fcdca (diff) | |
| download | luaotfload-deee6a29cb7ef11e15d1f9376d5f56516b46d726.tar.gz | |
remove dead code from ``luaotfload-features.lua``
| -rw-r--r-- | luaotfload-features.lua | 51 | 
1 files changed, 15 insertions, 36 deletions
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  | 
