Sietse wrote:
% doesn't work correctly: comma is accepted as decimal mark at parse time, % but then printed as thin space anyway. ?!? \setupunit[method=3, order=reverse] \units{12.345,00} %--> 12,345 00
Wolfgang wrote:
I going to send then a mail to Hans with a description of this bug and also the one in Marcos link, both are in the Lua part of the code and it’s no so easy for me to fix them.
Actually, this bug is in the ConTeXt part of the code, in phys-dim.lua: -\unexpanded\def\digitsfinalcomma {\digitscommasymbol } % more for tracing \unexpanded\def\digitsfinalperiod {\digitsperiodsymbol} % more for tracing \unexpanded\def\digitsintermediatecomma {\digitscommasymbol } % more for tracing -\unexpanded\def\digitsintermediateperiod {\digitsperiodsymbol} % more for tracing +\unexpanded\def\digitsfinalcomma {\digitsperiodsymbol } % more for tracing \unexpanded\def\digitsfinalperiod {\digitsperiodsymbol} % more for tracing \unexpanded\def\digitsintermediatecomma {\digitscommasymbol } % more for tracing +\unexpanded\def\digitsintermediateperiod {\digitscommasymbol} % more for tracing The mistake probably arose because \digitscommasymbol always corresponds to the intermediate mark (the digits separator), not always to the comma. I know the name wrong-footed me when I was reading the code. Romain: you can make this change in phys-dim.lua (around line 220), then remake the formats with context --make cont-en Then this should work correctly: % 3: decimal comma, digits space % 4: decimal point, digits space % English input (order=normal) \setupunits[method=3] \unit{11,122.13 micro mol per second} \par \setupunits[method=4] \unit{21,222.23 micro mol per second} \par % French input (order=reverse) \setupunits[method=3, order=reverse] \unit{31.322,33 micro mol per second} \par \setupunits[method=4, order=reverse] \unit{41.422,43 micro mol per second} \par Cheers, Sietse