Dear gang, The following, simple MWE gives an undefined control sequence error:
======= % \usemodule[translate] % \enableinputtranslation \startluacode -- context.usemodule({translate}) context.usemodule{translate} context.enableinputtranslation() context.darkgreen() \stopluacode \startTEXpage[offset=1em] \translateinput[Hermes][Idris] Hermes \disableinputtranslation Hermes \stopTEXpage ======= tex error > tex error on line 14 in file ./test-luacode.tex: Undefined control sequence <line 3.12> \translateinput [Hermes][Idris] ======= The reason for the error is that the module is not being loaded. Toggling back to context syntax, of course, works. Reference: ConTeXt Lua Documents by Hans Hagen, page 22. The following analogous code works: \startluacode context.startchapter{first} \stopluacode So how do we properly load the module from within a luacode environment? Thank you in advance. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________