* reading modules broken?
@ 2014-06-06 19:35 Meer, H. van der
2014-06-06 20:52 ` Hans Hagen
0 siblings, 1 reply; 10+ messages in thread
From: Meer, H. van der @ 2014-06-06 19:35 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 1424 bytes --]
My modules are not read anymore, allthough Context thinks it does. This must have been the case for some time. I ran a test with an older version which demonstrates that the change in behaviour must have occurred after january second.
Minimal example follows.
Hans van der Meer
Module code in file module-test is:
\writestatus{HVDM}{Module has been read}
\endinput
Test code in file moduletest.tex is:
\usemodule[module-test]
\starttext
module testing look into the log.
\stoptext
In the log I find:
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
\write18 enabled.
open source > 1 > 1 > /Users/hansm/tex/context-20/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.06.05 23:04 MKIV beta fmt: 2014.6.6 int: english/english
open source > 2 > 3 > /Users/hansm/tex/test-tex/modules/moduletest.tex
resolvers > modules > 'module-test' is already loaded <-- wrongly thinks it is loaded
It says the module is already loaded, but the telltale \writestatus is absent.
Running the same code with an older version of ConTeXt does load the module:
ConTeXt ver: 2014.01.02 20:05 MKIV current fmt: 2014.1.2 int: english/english
(/Users/hansm/tex/test-tex/modules/moduletest.tex
resolvers > modules > 'module-test' is loaded <-- loads as it should
(module-test.tex
HVDM > Module has been read
[-- Attachment #1.2: Type: text/html, Size: 3244 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: reading modules broken?
2014-06-06 19:35 reading modules broken? Meer, H. van der
@ 2014-06-06 20:52 ` Hans Hagen
2014-06-07 10:11 ` Meer, H. van der
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Hans Hagen @ 2014-06-06 20:52 UTC (permalink / raw)
To: ntg-context
On 6/6/2014 9:35 PM, Meer, H. van der wrote:
> My modules are not read anymore, allthough Context thinks it does. This must have been the case for some time. I ran a test with an older version which demonstrates that the change in behaviour must have occurred after january second.
> Minimal example follows.
>
> Hans van der Meer
>
> Module code in file module-test is:
> \writestatus{HVDM}{Module has been read}
> \endinput
>
> Test code in file moduletest.tex is:
> \usemodule[module-test]
> \starttext
> module testing look into the log.
> \stoptext
modules have names like
m-
x-
s-
p-
u-
and the lookup happens in a certain order without prefix, and checking
for mkvi, mkiv, mkii or tex suffixes
so in your case it should be something
u-hvdm-test
or so (user hvdm test)
so you were just lucky that in the past modules-* worked
the loading is probably ok because test.* is loaded
> In the log I find:
>
> This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
> \write18 enabled.
> open source > 1 > 1 > /Users/hansm/tex/context-20/tex/texmf-context/tex/context/base/cont-yes.mkiv
>
> ConTeXt ver: 2014.06.05 23:04 MKIV beta fmt: 2014.6.6 int: english/english
>
> open source > 2 > 3 > /Users/hansm/tex/test-tex/modules/moduletest.tex
> resolvers > modules > 'module-test' is already loaded <-- wrongly thinks it is loaded
>
> It says the module is already loaded, but the telltale \writestatus is absent.
>
> Running the same code with an older version of ConTeXt does load the module:
>
> ConTeXt ver: 2014.01.02 20:05 MKIV current fmt: 2014.1.2 int: english/english
> (/Users/hansm/tex/test-tex/modules/moduletest.tex
> resolvers > modules > 'module-test' is loaded <-- loads as it should
> (module-test.tex
> HVDM > Module has been read
>
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: reading modules broken?
2014-06-06 20:52 ` Hans Hagen
@ 2014-06-07 10:11 ` Meer, H. van der
2014-06-07 10:52 ` Wolfgang Schuster
2014-06-07 12:40 ` Andreas Schneider
2 siblings, 0 replies; 10+ messages in thread
From: Meer, H. van der @ 2014-06-07 10:11 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 5070 bytes --]
Hans Hagen <pragma@wxs.nl<mailto:pragma@wxs.nl>> wrote:
modules have names like
m-
x-
s-
p-
u-
Remark: u- does not work out of the box, only when called as \usemodule[u][modulename].
I had consulted the Wiki that tells us:
Usage
When you load a module with \usemodule[modulename] ConTeXt looks for a file with the following names:
* m-modulaname (core module)
* p-modulename (private module)
* s-modulename (ConTeXt style file)
* x-modulename (XML module)
* t-modulename (Third party module)
* modulename
Once a file is found ConTeXt stops the search and loads the found file (only once).
When you have two file with the same name but different prefixes you can tell ConTeXt which file it should load with
\usemodule[<prefix>][modulename]
I checked \usemodule[modulename] with all these prefixes and they work ok.
But the last item in the list (marked red for clarity) does not (any more). That item suggest \usemodule[module-name] should work. I suggest someone in charge of the Wiki takes a look and removes the last item when my observations turn out to be correct.
A final question. Using the \usemodule[<prefix>][modulename] form, one can use any prefix letter. In fact, any prefix seems to work. If that functionality stays, it will give more flexibility in the naming scheme for modules. Please confirm if this will be the case or if module naming in the future will be restricted to a one letter scheme or even restricted to [mpsxt] exclusively as mentioned in the Wiki.
Hans van der Meer
On 06 Jun 2014, at 22:52, Hans Hagen <pragma@wxs.nl<mailto:pragma@wxs.nl>> wrote:
On 6/6/2014 9:35 PM, Meer, H. van der wrote:
My modules are not read anymore, allthough Context thinks it does. This must have been the case for some time. I ran a test with an older version which demonstrates that the change in behaviour must have occurred after january second.
Minimal example follows.
Hans van der Meer
Module code in file module-test is:
\writestatus{HVDM}{Module has been read}
\endinput
Test code in file moduletest.tex is:
\usemodule[module-test]
\starttext
module testing look into the log.
\stoptext
modules have names like
m-
x-
s-
p-
u-
and the lookup happens in a certain order without prefix, and checking for mkvi, mkiv, mkii or tex suffixes
so in your case it should be something
u-hvdm-test
or so (user hvdm test)
so you were just lucky that in the past modules-* worked
the loading is probably ok because test.* is loaded
In the log I find:
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972)
\write18 enabled.
open source > 1 > 1 > /Users/hansm/tex/context-20/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2014.06.05 23:04 MKIV beta fmt: 2014.6.6 int: english/english
open source > 2 > 3 > /Users/hansm/tex/test-tex/modules/moduletest.tex
resolvers > modules > 'module-test' is already loaded <-- wrongly thinks it is loaded
It says the module is already loaded, but the telltale \writestatus is absent.
Running the same code with an older version of ConTeXt does load the module:
ConTeXt ver: 2014.01.02 20:05 MKIV current fmt: 2014.1.2 int: english/english
(/Users/hansm/tex/test-tex/modules/moduletest.tex
resolvers > modules > 'module-test' is loaded <-- loads as it should
(module-test.tex
HVDM > Module has been read
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl<mailto: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
___________________________________________________________________________________
--
-----------------------------------------------------------------
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<http://www.pragma-ade.com/>
| www.pragma-pod.nl<http://www.pragma-pod.nl/>
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl<http://www.pragma-ade.nl/> / http://tex.aanhet.net<http://tex.aanhet.net/>
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net<http://contextgarden.net/>
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 10280 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: reading modules broken?
2014-06-06 20:52 ` Hans Hagen
2014-06-07 10:11 ` Meer, H. van der
@ 2014-06-07 10:52 ` Wolfgang Schuster
2014-06-07 17:08 ` Hans Hagen
2014-06-07 12:40 ` Andreas Schneider
2 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2014-06-07 10:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 784 bytes --]
Am 06.06.2014 um 22:52 schrieb Hans Hagen <pragma@wxs.nl>:
> On 6/6/2014 9:35 PM, Meer, H. van der wrote:
>> My modules are not read anymore, allthough Context thinks it does. This must have been the case for some time. I ran a test with an older version which demonstrates that the change in behaviour must have occurred after january second.
>> Minimal example follows.
>>
>> Hans van der Meer
>>
>> Module code in file module-test is:
>> \writestatus{HVDM}{Module has been read}
>> \endinput
>>
>> Test code in file moduletest.tex is:
>> \usemodule[module-test]
>> \starttext
>> module testing look into the log.
>> \stoptext
>
> modules have names like
>
> m-
> x-
> s-
> p-
> u-
What’s the meaning of the new “v” prefix for modules?
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: reading modules broken?
2014-06-07 10:52 ` Wolfgang Schuster
@ 2014-06-07 17:08 ` Hans Hagen
0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2014-06-07 17:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 6/7/2014 12:52 PM, Wolfgang Schuster wrote:
>
> Am 06.06.2014 um 22:52 schrieb Hans Hagen <pragma@wxs.nl>:
>
>> On 6/6/2014 9:35 PM, Meer, H. van der wrote:
>>> My modules are not read anymore, allthough Context thinks it does. This must have been the case for some time. I ran a test with an older version which demonstrates that the change in behaviour must have occurred after january second.
>>> Minimal example follows.
>>>
>>> Hans van der Meer
>>>
>>> Module code in file module-test is:
>>> \writestatus{HVDM}{Module has been read}
>>> \endinput
>>>
>>> Test code in file moduletest.tex is:
>>> \usemodule[module-test]
>>> \starttext
>>> module testing look into the log.
>>> \stoptext
>>
>> modules have names like
>>
>> m-
>> x-
>> s-
>> p-
>> u-
>
> What’s the meaning of the new “v” prefix for modules?
It is actually an old one (that can go, i had some v files on my machine
.. collected examples).
In file-mod.lua we have commands.usemodules, and we can extend that to
support the case where a user has provided some prefix (prefixing
prevents clashes with files elsewhere in the tex tree)
...
if status then
-- ok, don't change
elseif find(truename,"%-") and usemodule(truename) then
-- assume a user namespace
report_modules("using user prefixed file %a",truename)
status = 1
elseif not permit_unprefixed then
-- forget about it
elseif usemodule(truename) then
report_modules("using unprefixed file %a",truename)
status = 1
else
status = 0
end
...
Btw, in the case of hvdm, an option would have been:
\enabledirectives[modules.permitunprefixed]
I'm somewhat surprised that the issues show up now as that code is not
that young.
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: reading modules broken?
2014-06-06 20:52 ` Hans Hagen
2014-06-07 10:11 ` Meer, H. van der
2014-06-07 10:52 ` Wolfgang Schuster
@ 2014-06-07 12:40 ` Andreas Schneider
2014-06-07 13:05 ` Meer, H. van der
2014-06-07 17:09 ` Hans Hagen
2 siblings, 2 replies; 10+ messages in thread
From: Andreas Schneider @ 2014-06-07 12:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 06.06.2014 22:52, Hans Hagen wrote:
> modules have names like
>
> m-
> x-
> s-
> p-
> u-
>
> and the lookup happens in a certain order without prefix, and checking
> for mkvi, mkiv, mkii or tex suffixes
>
> so in your case it should be something
>
> u-hvdm-test
>
> or so (user hvdm test)
>
> so you were just lucky that in the past modules-* worked
>
> the loading is probably ok because test.* is loaded
That new behavior breaks SimpleSlides however, because now the styles
aren't loaded anymore.
In the log I find (for example):
resolvers > modules > 'simpleslides-s-BottomSquares' is already loaded
So either this old behavior had it's upsides or SimpleSlides needs to be
fixed :-)
Best Regards,
Andreas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: reading modules broken?
2014-06-07 12:40 ` Andreas Schneider
@ 2014-06-07 13:05 ` Meer, H. van der
2014-06-07 16:47 ` Hans Hagen
2014-06-07 17:09 ` Hans Hagen
1 sibling, 1 reply; 10+ messages in thread
From: Meer, H. van der @ 2014-06-07 13:05 UTC (permalink / raw)
To: NTG ConTeXt
[-- Attachment #1.1: Type: text/plain, Size: 403 bytes --]
I have my modules renamed. With x-<oldname> for xml-processors and t-<oldname> for the others. After that everything seems to work fine. No need therefore to change \usemodule calls inside the code.
Hans van der Meer
On 07 Jun 2014, at 14:40, Andreas Schneider <aksdb@gmx.de<mailto:aksdb@gmx.de>> wrote:
So either this old behavior had it's upsides or SimpleSlides needs to be fixed :-)
[-- Attachment #1.2: Type: text/html, Size: 1496 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: reading modules broken?
2014-06-07 12:40 ` Andreas Schneider
2014-06-07 13:05 ` Meer, H. van der
@ 2014-06-07 17:09 ` Hans Hagen
2014-06-15 9:38 ` Schmitz Thomas A.
1 sibling, 1 reply; 10+ messages in thread
From: Hans Hagen @ 2014-06-07 17:09 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 6/7/2014 2:40 PM, Andreas Schneider wrote:
> On 06.06.2014 22:52, Hans Hagen wrote:
>> modules have names like
>>
>> m-
>> x-
>> s-
>> p-
>> u-
>>
>> and the lookup happens in a certain order without prefix, and checking
>> for mkvi, mkiv, mkii or tex suffixes
>>
>> so in your case it should be something
>>
>> u-hvdm-test
>>
>> or so (user hvdm test)
>>
>> so you were just lucky that in the past modules-* worked
>>
>> the loading is probably ok because test.* is loaded
>
> That new behavior breaks SimpleSlides however, because now the styles
> aren't loaded anymore.
> In the log I find (for example):
> resolvers > modules > 'simpleslides-s-BottomSquares' is already
> loaded
>
> So either this old behavior had it's upsides or SimpleSlides needs to be
> fixed :-)
s-simpleslides
would have been a better choice
> Best Regards,
> Andreas
> ___________________________________________________________________________________
>
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: reading modules broken?
2014-06-07 17:09 ` Hans Hagen
@ 2014-06-15 9:38 ` Schmitz Thomas A.
0 siblings, 0 replies; 10+ messages in thread
From: Schmitz Thomas A. @ 2014-06-15 9:38 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 07 Jun 2014, at 19:09, Hans Hagen <pragma@wxs.nl> wrote:
> s-simpleslides
>
> would have been a better choice
I have uploaded a new version with these changes, it appears to work. I don’t have time right now to look at all the styles (most work, some have small defects) and do the documentation, so this is just a version patched with the most important changes. And now that the last user of mkii, in a small country in central Europe, has switched, I have made the module mkiv only.
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-06-15 9:38 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-06 19:35 reading modules broken? Meer, H. van der
2014-06-06 20:52 ` Hans Hagen
2014-06-07 10:11 ` Meer, H. van der
2014-06-07 10:52 ` Wolfgang Schuster
2014-06-07 17:08 ` Hans Hagen
2014-06-07 12:40 ` Andreas Schneider
2014-06-07 13:05 ` Meer, H. van der
2014-06-07 16:47 ` Hans Hagen
2014-06-07 17:09 ` Hans Hagen
2014-06-15 9:38 ` Schmitz Thomas A.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).