Re: [NTG-context] Loading units fails

2018-04-24 Thread Hans Hagen

On 4/24/2018 7:58 PM, Michael Guravage wrote:

Dear list members,

I do not know when this problem first appeared, I have not used the 
units package for a while, but merely invoking the package with the 
latest beta provokes an error.


MWE:

\usemodule[units]
   \starttext
     help
   \stoptext

The attached log says there is a problem on line 42 of m-units.mkiv.

Any help would be appreciated.

units are built in (dimensions)

anyway, you can fix this in mult-ini.mkiv

\unexpanded\def\startmessages #1 library: #2 %
  {\bgroup
   \ifcsname\m!prefix!#2\endcsname\else\setgvalue{\m!prefix!#2}{#2}\fi
   \catcode\endoflineasciicode\othercatcode

\doifelseinset{#1}{\currentresponses,all}\mult_messages_start_yes\mult_messages_start_nop{#2}}




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Loading units fails

2018-04-24 Thread Michael Guravage
Dear list members,

I do not know when this problem first appeared, I have not used the units
package for a while, but merely invoking the package with the latest beta
provokes an error.

MWE:

\usemodule[units]
  \starttext
help
  \stoptext

The attached log says there is a problem on line 42 of m-units.mkiv.

Any help would be appreciated.

-- 
With kind regards,

Michael Guravage
open source > level 1, order 1, name '/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
system  > 
system  > ConTeXt  ver: 2018.04.19 15:53 MKIV beta  fmt: 2018.4.24  int: english/english
system  > 
system  > 'cont-new.mkiv' loaded
open source > level 2, order 2, name '/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
close source> level 2, order 2, name '/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
system  > files > jobname 'testing', input './testing', result 'testing'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 2, order 3, name '/tmp/testing.tex'
modules > 'units' is loaded
open source > level 3, order 4, name '/opt/ConTeXt-alpha/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv'

tex error   > tex error on line 42 in file /opt/ConTeXt-alpha/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv: ! Undefined control sequence

 title: units
 1: use \string \Degrees \space \string \Celsius \space instead of 
\mult_messages_start_yes ...erfacemessages {#1}{#2
  }\egroup 
l.42 \stopmessages


32 %D an upward compatibility issue.
33 
34 \startmessages  dutch  library: units
35   title: eenheden
36   1: gebruik \string\Degrees\space\string\Celsius\space in plaats van \string\Celsius !
37 \stopmessages
38 
39 \startmessages  english  library: units
40   title: units
41   1: use \string\Degrees\space\string\Celsius\space instead of \string\Celsius !
42 >>  \stopmessages
43 
44 \startmessages  german  library: units
45   title: Einheiten
46   1: Verwende \string\Degrees\space\string\Celsius\space statt \string\Celsius !
47 \stopmessages
48 
49 \startmessages  italian  library: units
50   title: unita
51   1: usare \string\Degrees\space\string\Celsius\space invece di \string\Celsius !
52 \stopmessages


? x

system  > start used files

system  > text: testing

system  > stop used files


system  > start used files

system  >1: filename=char-prv.lua filetype=tex format=tex foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/char-prv.lua fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/char-prv.lua usedmethod=database
system  >2: filename=cont-yes.mkiv filetype=tex foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv usedmethod=database
system  >3: filename=publ-imp-default.lua filetype=scripts foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database
system  >4: filename=cont-new.mkiv filetype=tex foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv usedmethod=database
system  >5: filename=lang-exc.lua filetype=scripts foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database
system  >6: filename=lang-us.lua filetype=scripts foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database
system  >7: filename=/tmp/testing.tex foundname=/tmp/testing.tex fullname=/tmp/testing.tex usedmethod=direct
system  >8: filename=m-units.mkiv filetype=tex foundname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv fullname=/opt/ConTeXt-alpha/tex/texmf-context/tex/context/modules/mkiv/m-units.mkiv usedmethod=database

system  > stop used files


system  > start commandline options

system  > currentrun="1"
system  > fulljobname="./testing.tex"
system  > input="./testing.tex"
system  > kindofrun="1"
system  > maxnofruns="9"
system  > no-parse-first-line="true"

system  > stop commandline options


system  > start commandline files

system  >1: ./testing.tex

system  >