summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/type-ini.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/type-ini.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/type-ini.lua23
1 files changed, 13 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/context/base/type-ini.lua b/Master/texmf-dist/tex/context/base/type-ini.lua
index 4ce953168f5..03cdb0fe571 100644
--- a/Master/texmf-dist/tex/context/base/type-ini.lua
+++ b/Master/texmf-dist/tex/context/base/type-ini.lua
@@ -8,6 +8,8 @@ if not modules then modules = { } end modules ['type-ini'] = {
-- more code will move here
+local commands, context = commands, context
+
local gsub = string.gsub
local report_typescripts = logs.reporter("fonts","typescripts")
@@ -15,25 +17,26 @@ local report_typescripts = logs.reporter("fonts","typescripts")
local patterns = { "type-imp-%s.mkiv", "type-imp-%s.tex", "type-%s.mkiv", "type-%s.tex" } -- this will be imp only
local function action(name,foundname)
- context.startreadingfile()
- context.pushendofline()
- context.unprotect()
- context.input(foundname)
- context.protect()
- context.popendofline()
- context.stopreadingfile()
+ -- context.startreadingfile()
+ -- context.pushendofline()
+ -- context.unprotect()
+ -- context.input(foundname)
+ -- context.protect()
+ -- context.popendofline()
+ -- context.stopreadingfile()
+ context.loadfoundtypescriptfile(foundname)
end
local name_one, name_two
local function failure_two(name)
- report_typescripts("unknown: library '%s' or '%s'",name_one,name_two)
+ report_typescripts("unknown library %a or %a",name_one,name_two)
end
local function failure_one(name)
name_two = gsub(name,"%-.*$","")
if name_two == name then
- report_typescripts("unknown: library '%s'",name_one)
+ report_typescripts("unknown library %a",name_one)
else
commands.uselibrary {
name = name_two,
@@ -59,7 +62,7 @@ end
local patterns = { "type-imp-%s.mkiv", "type-imp-%s.tex" }
local function failure(name)
- report_typescripts("unknown: library '%s'",name)
+ report_typescripts("unknown library %a",name)
end
function commands.loadtypescriptfile(name) -- a more specific name