\usemodule and prtcatcodes
Hi, why does \usemodule load the requested file with “prtcatcodes” settings when nearly each module has \unprotect and \protect at the begin and end of the file? I ask this because of a recent question [1] on the list where a user defined shortcuts for math. Maybe a module isn’t the perfect thing for these things and he can put them in a environment but now comes the next problem. When you load a environment in this way: \environment myenvironment \starttext … \stoptext the file is loaded again with prtcatcodes while in the following form \startproduct myproduct \environment myenvironment … \stopproduct the environment is loaded with ctxcatcodes. While prtcatcodes make sense for a module i can’t understand why they are used for environments. [1] http://www.ntg.nl/pipermail/ntg-context/2011/055915.html Wolfgang
On 17-1-2011 4:13, Wolfgang Schuster wrote:
Hi,
why does \usemodule load the requested file with “prtcatcodes” settings when nearly each module has \unprotect and \protect at the begin and end of the file?
I ask this because of a recent question [1] on the list where a user defined shortcuts for math. Maybe a module isn’t the perfect thing for these things and he can put them in a environment but now comes the next problem.
When you load a environment in this way:
\environment myenvironment \starttext … \stoptext
the file is loaded again with prtcatcodes while in the following form
\startproduct myproduct \environment myenvironment … \stopproduct
the environment is loaded with ctxcatcodes. While prtcatcodes make sense for a module i can’t understand why they are used for environments.
much of this goes back a long time .. we used to have only m-* and styles were normally environments; and when defining interface independent environments unprotect makes sense ... we can consider removing that (but then need to check for environments on our machines that use ! etc) 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 -----------------------------------------------------------------
Am 17.01.2011 um 17:00 schrieb Hans Hagen:
much of this goes back a long time .. we used to have only m-* and styles were normally environments; and when defining interface independent environments unprotect makes sense ... we can consider removing that (but then need to check for environments on our machines that use ! etc)
Remove prtcatcodes from modules and environments or only environments? If such a change happens we can do this for mkiv only because mkii hasn’t a problem with _ Wolfgang
On 17-1-2011 7:15, Wolfgang Schuster wrote:
Am 17.01.2011 um 17:00 schrieb Hans Hagen:
much of this goes back a long time .. we used to have only m-* and styles were normally environments; and when defining interface independent environments unprotect makes sense ... we can consider removing that (but then need to check for environments on our machines that use ! etc)
Remove prtcatcodes from modules and environments or only environments?
If such a change happens we can do this for mkiv only because mkii hasn’t a problem with _
you can have a look at the version on the ftp server (i checked all modules) in that beta protection is no longer enforced but i think that in some cases maybe it should bibl-bib.mkiv 458: {\startreadingfile colo-ini.mkiv 223: {\startreadingfile java-ini.mkiv 149: \startreadingfile meta-ini.mkiv 643: \startreadingfile meta-ini.mkiv 843: \startreadingfile symb-ini.mkiv 259: {\startreadingfile type-ini.mkiv 171: {\startreadingfile currently only the last one has it (already had it) as we have these \s!file etc mem savers there 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 -----------------------------------------------------------------
Am 18.01.2011 um 15:26 schrieb Hans Hagen:
On 17-1-2011 7:15, Wolfgang Schuster wrote:
Remove prtcatcodes from modules and environments or only environments?
If such a change happens we can do this for mkiv only because mkii hasn’t a problem with _
you can have a look at the version on the ftp server (i checked all modules)
x-res-08.tex \doifnotmode{\systemmodeprefix\v!first}{\endinput} \unprotect Wolfgang
On 18-1-2011 5:41, Wolfgang Schuster wrote:
Am 18.01.2011 um 15:26 schrieb Hans Hagen:
On 17-1-2011 7:15, Wolfgang Schuster wrote:
Remove prtcatcodes from modules and environments or only environments?
If such a change happens we can do this for mkiv only because mkii hasn’t a problem with _
you can have a look at the version on the ftp server (i checked all modules)
x-res-08.tex
\doifnotmode{\systemmodeprefix\v!first}{\endinput}
\unprotect
ah, a tricky one ... \unprotect \doifnotmode{\systemmodeprefix\v!first}{\protect\endinput} ----------------------------------------------------------------- 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 (2)
-
Hans Hagen
-
Wolfgang Schuster