unknown script 'context.lua' or 'mtx-context.lua'
Hans, why don't you add a special-case in this case:
context test MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
if 'context.lua' cannot be found then either: a) instead of printing out "unknown script 'context.lua'" print out "please run 'luatools --generate'" - it will be less confusing for users b) or (may be even better) try to run "luatools --generate" automatically and then retry I guess that there is some not-too-difficult way to figure out from within mtxrun that no database exists yet. Mojca
Mojca Miklavec wrote:
Hans,
why don't you add a special-case in this case:
context test MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
Coincidence: Hans and I discussed this same thing just this morning.
b) or (may be even better) try to run "luatools --generate" automatically and then retry
We decided we want b) but only if there is no database at all yet (to avoid lengthy processing of mtxrun --script fnts) Best wishes, Taco
On Wed, May 26, 2010 at 12:25, Taco Hoekwater wrote:
Mojca Miklavec wrote:
Hans,
why don't you add a special-case in this case:
context test MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
Coincidence: Hans and I discussed this same thing just this morning.
Wow, great :) Mindreading. Thanks a lot, Mojca PS (not to be taken too seriously): The second thought probably had to do with "if there's format version mismatch in mkii, write out some temporary file or some signal line in tuo file that triggers 'texexec --make' in the 'post-processing step' and thus eliminates the need to do it manually every time" or did I misinterpret the signal that came all the way from Netherlands? :) :) :)
On 26-5-2010 12:34, Mojca Miklavec wrote:
On Wed, May 26, 2010 at 12:25, Taco Hoekwater wrote:
Mojca Miklavec wrote:
Hans,
why don't you add a special-case in this case:
context test MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
Coincidence: Hans and I discussed this same thing just this morning.
Wow, great :) Mindreading.
Thanks a lot, Mojca
PS (not to be taken too seriously): The second thought probably had to do with "if there's format version mismatch in mkii, write out some temporary file or some signal line in tuo file that triggers 'texexec --make' in the 'post-processing step' and thus eliminates the need to do it manually every time" or did I misinterpret the signal that came all the way from Netherlands? :) :) :)
that needs a bit of thinking; in mkiv it's easier as there the engine runs context and context then determines it while in pdftex an old format and new engine does not come that far; what could be made to work is auto format making when there is a context update (and forget about the engine) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 26-5-2010 12:20, Mojca Miklavec wrote:
Hans,
why don't you add a special-case in this case:
context test MTXrun | unknown script 'context.lua' or 'mtx-context.lua'
if 'context.lua' cannot be found then either: a) instead of printing out "unknown script 'context.lua'" print out "please run 'luatools --generate'" - it will be less confusing for users
and then with any typo a generate? no fun
b) or (may be even better) try to run "luatools --generate" automatically and then retry
see email taco ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Mojca Miklavec
-
Taco Hoekwater