From b55577d0998160c0174e250b542016ecd6ca9056 Mon Sep 17 00:00:00 2001 From: Context Git Mirror Bot Date: Sat, 16 May 2015 00:15:04 +0200 Subject: 2015-05-15 23:06:00 --- web2c/contextcnf.lua | 52 +++++++++++++++++----------------------------------- 1 file changed, 17 insertions(+), 35 deletions(-) (limited to 'web2c') diff --git a/web2c/contextcnf.lua b/web2c/contextcnf.lua index 366df01ac..af65f41d0 100644 --- a/web2c/contextcnf.lua +++ b/web2c/contextcnf.lua @@ -101,13 +101,18 @@ return { PERLINPUTS = ".;$TEXMF/scripts/context/perl", PYTHONINPUTS = ".;$TEXMF/scripts/context/python", RUBYINPUTS = ".;$TEXMF/scripts/context/ruby", - LUAINPUTS = ".;$TEXINPUTS;$TEXMF/scripts/context/lua//", + LUAINPUTS = ".;$TEXINPUTS;$TEXMF/scripts/context/lua//;$TEXMF", CLUAINPUTS = ".;$SELFAUTOLOC/lib/{context,$engine,luatex}/lua//", + -- texmf-local/tex/generic/example/foo : + -- + -- package.helpers.trace = true + -- require("example.foo.bar") + -- Not really used by MkIV so they might go away. - BIBINPUTS = ".;$TEXMF/bibtex/bib//", - BSTINPUTS = ".;$TEXMF/bibtex/bst//", + BIBINPUTS = ".;$TEXMF/bibtex/bib//;$TEXMF/tex/context//", + BSTINPUTS = ".;$TEXMF/bibtex/bst//;$TEXMF/tex/context//", -- Experimental @@ -118,38 +123,7 @@ return { FONTCONFIG_FILE = "fonts.conf", FONTCONFIG_PATH = "$TEXMFSYSTEM/fonts/conf", - limiters = { - input = { - -- any = { - -- { "permit", "*" }, - -- }, - -- restricted = { - -- { "permit", "*" }, - -- }, - paranoid = { - { "permit", "^[^/]+$" }, - { "permit", "^./" }, - { "forbid", ".." }, - { "tree" , "TEXMF" }, - -- { "tree" , "MPINPUTS" }, - -- { "tree" , "TEXINPUTS" }, - { "forbid", "^/.." }, - { "forbid", "^[a-c]:/.." }, - }, - }, - output = { - -- any = { - -- { "permit", "*" }, - -- }, - -- restricted = { - -- { "permit", "*" }, - -- }, - paranoid = { - { "permit", "^[^/]+$" }, - { "permit", "^./" }, - }, - } - }, + -- we now have a different subsystem for this, }, @@ -211,6 +185,14 @@ return { -- ["fonts.usesystemfonts"] = false, + -- You can permit loading modules with no prefix: + + -- ["modules.permitunprefixed"] = "no", + + -- You can permit loading files from anywhere in the TDS tree: + + -- ["resolvers.otherwise"] = "no", + }, experiments = { -- cgit v1.2.3