summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2015-05-26 08:15:51 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2015-05-26 08:15:51 +0200
commit892ebebdc0fb6d59e1748e7d81e976d41f8fd85f (patch)
treee8d38836b5e58c2fc06531202a9a574ae5b1af72
parent7bad2f7429de8354f0105108ea495c0c6b85291b (diff)
downloadluaotfload-892ebebdc0fb6d59e1748e7d81e976d41f8fd85f.tar.gz
[main] remove obsolete workarounds
-rw-r--r--src/luaotfload-main.lua45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index b12e3b7..d09ea7b 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -92,8 +92,6 @@ luaotfload.log.tex = {
--[[doc--
- XXX remove
-
We set the minimum version requirement for \LUATEX to v0.76,
because the font loader requires recent features like direct
attribute indexing and \luafunction{node.end_of_math()} that aren’t
@@ -116,15 +114,6 @@ if tex.luatexversion < min_luatex_version then
warning ("using fallback fontloader -- newer functionality not available")
fontloader_package = "tl2014" --- TODO fallback should be configurable too
--- we install a fallback for older versions as a safety
- if not node.end_of_math then
- local math_t = node.id "math"
- local traverse_nodes = node.traverse_id
- node.end_of_math = function (n)
- for n in traverse_nodes (math_t, n.next) do
- return n
- end
- end
- end
end
--[[doc--
@@ -157,38 +146,6 @@ log.set_loglevel (default_log_level)
--[[doc--
- XXX remove
-
- Before \TeX Live 2013 version, \LUATEX had a bug that made ofm fonts
- fail when called with their extension. There was a side-effect making
- ofm totally unloadable when luaotfload was present. The following
- lines are a patch for this bug. The utility of these lines is
- questionable as they are not necessary since \TeX Live 2013. They
- should be removed in the next version.
-
---doc]]--
-
-local Cs, P, lpegmatch = lpeg.Cs, lpeg.P, lpeg.match
-
-local p_dot, p_slash = P".", P"/"
-local p_suffix = (p_dot * (1 - p_dot - p_slash)^1 * P(-1)) / ""
-local p_removesuffix = Cs((p_suffix + 1)^1)
-
-local find_vf_file = function (name)
- local fullname = kpsefind_file(name, "ovf")
- if not fullname then
- --fullname = kpsefind_file(file.removesuffix(name), "ovf")
- fullname = kpsefind_file(lpegmatch(p_removesuffix, name), "ovf")
- end
- if fullname then
- logreport ("log", 0, "main",
- "loading virtual font file %s.", fullname)
- end
- return fullname
-end
-
---[[doc--
-
\subsection{Preparing the Font Loader}
We treat the fontloader as a black box so behavior is consistent
between formats.
@@ -428,8 +385,6 @@ add_to_callback("hpack_filter",
nodes.simple_font_handler,
"luaotfload.node_processor",
1)
-add_to_callback("find_vf_file",
- find_vf_file, "luaotfload.find_vf_file")
load_luaotfload_module "override" --- load glyphlist on demand