Re: [NTG-context] Issue with tex.romannumeral output

2020-11-25 Thread Hans Hagen

On 11/25/2020 7:51 PM, Joseph wrote:

Dear list,

Following MWE outputs only ‘m’ characters (with latest upload).

ah, some left over from a test, i'll fix it

Hans

-
  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
___


Re: [NTG-context] Issue with tex.romannumeral output

2020-11-25 Thread Jairo A. del Rio
Hi, Joseph.

Something like this?

\starttext
\cldcontext{converters.convert("r",118):gsub("i$", "j") }
\stoptext

Jairo


El mié, 25 de nov. de 2020 a la(s) 14:30, Joseph (josephcan...@gmail.com)
escribió:

> Yes, I replace last ‘i’ with a ‘j’ in roman number, that’s to mimic old
> typesetting (very specific case for sure :-).
>
> Ie 118 -> cxiij
>
> Is there a way to do this with convertnumber anyhow ?
>
>
>
> *De : *Wolfgang Schuster 
> *Envoyé le :*mercredi 25 novembre 2020 20:11
> *À : *mailing list for ConTeXt users 
> *Cc : *Joseph 
> *Objet :*Re: [NTG-context] Issue with tex.romannumeral output
>
>
>
> Joseph schrieb am 25.11.2020 um 19:51:
>
> > Dear list,
>
> >
>
> > Following MWE outputs only ‘m’ characters (with latest upload).
>
>
>
> Is there a reason why you don't use the conversion mechanism?
>
>
>
> \starttext
>
>
>
> \convertnumber{r}{7}
>
>
>
> \cldcontext{converters.convert("r",7)}
>
>
>
> \stoptext
>
>
>
> Wolfgang
>
>
>
> ___
> 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
>
> ___
>
___
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
___


Re: [NTG-context] Issue with tex.romannumeral output

2020-11-25 Thread Wolfgang Schuster

Joseph schrieb am 25.11.2020 um 19:51:

Dear list,

Following MWE outputs only ‘m’ characters (with latest upload).


Is there a reason why you don't use the conversion mechanism?

\starttext

\convertnumber{r}{7}

\cldcontext{converters.convert("r",7)}

\stoptext

Wolfgang
___
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] Issue with tex.romannumeral output

2020-11-25 Thread Joseph
Dear list, Following MWE outputs only ‘m’ characters (with latest upload).Thanks \startluacode function roman_num(n)   assert(type(n) == 'number')   context(tex.romannumeral(n))end \stopluacode \define[1]\RM{\ctxlua{roman_num(#1)}} \starttext\RM{1}\RM{7}\RM{10}\RM{70}\RM{100}\stoptext  
___
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
___