I patched the 'regi-ini.lua' by your purpose: ---
function regimes.process(s) --return translate(s,regimes.currentregime) print("111", regimes) print("222", regimes.translate) return regimes.translate(s,regimes.currentregime) end --- But I'm still getting the same error message! I still have "! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/regi-ini.lua:100: attempt to call global 'translate' (a nil value).", although I added two "print(...)" before "return regimes...". The line in the error message is the same: 100 - although the code is shifted three lines bellow. And - no "111" or "222" appears in the scope during the error message. - Isn't it weird? Is there something more I should do? E.g. to delete a Lua cache manually (what dirs/files exactly in this case?). I also run the "mtxrun --generate" but without success. You can check the regi-ini.lua attached - it is originally placed in "c:\ConTeXt\tex\texmf-context\tex\context\base\regi-ini.lua". Lukas On Sun, 28 Nov 2010 19:08:56 +0100, Wolfgang Schuster <schuster.wolfg...@googlemail.com> wrote:
Am 28.11.2010 um 18:52 schrieb Procházka Lukáš:Hello, I have a problem to \input a file [in the same directory as the main file is]. This problem started appearing with the latest minimals (updated today evening) and there was no such a problem before.regi-ini.lua function regimes.process(s) - return translate(s,regimes.currentregime) + return regimes.translate(s,regimes.currentregime) end The \input command in ConTeXt has no braces, it’s \input <file> or for files with spaces \input "<file with spaces>" Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
regi-ini.lua
Description: Binary data
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________