[NTG-context] \unit parser ignoring case, in some cases.

Hans Hagen j.hagen at freedom.nl
Mon Mar 13 22:44:24 CET 2023


On 3/9/2023 2:04 PM, Gavin via ntg-context wrote:
> \startformula
>    \unit{3 meter} \qquad
>    \unit{6 Meter} \qquad
>    \unit{3 mEtEr} \qquad
> \stopformula
> 
> Units with lowercase prefixes (c, k, n).
> \startformula
>    \unit{3cm} \qquad
>    \unit{6kg} \qquad
>    \unit{3ns} \qquad
> \stopformula
> 
> Units with capital letters, called with names (coulomb, kelvin, newton).
> \startformula
>    \unit{3 coulomb} \qquad
>    \unit{6 kelvin} \qquad
>    \unit{3 newton} \qquad
> \stopformula

you can look at phys-dim and see plenty of short and long keys and 
making all case insensitive is asking for troubles

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



More information about the ntg-context mailing list