Am 25.11.2011 um 09:18 schrieb Hans Hagen:

> On 24-11-2011 21:18, Pontus Lurcock wrote:
>> On Thu 24 Nov 2011, Romain Diss wrote:
>> 
>>> - again in french, the liter symbol is lowercase l (althought the
>>> uppercase L is also temporarly accepted).
>> 
>> Not only in French, but in most of Europe, I think:
>> http://en.wikipedia.org/wiki/Litre#Symbol . Should probably be
>> explicitly configurable.
> 
> there is already some basic mechanism fro that
> 
> \startluacode
>    languages.data.labels.units.foo = {
>        Liter = "l"
>    }
>    languages.data.labels.units.bar = {
>        Liter = "L"
>    }
> \stopluacode
> 
> \starttext
> 
> \defineunits[lunit]            \lunit{10 l/s}\par
> \defineunits[funit][label=foo] \funit{10 l/s}\par
> \defineunits[bunit][label=bar] \bunit{10 l/s}\par
> 
> \stoptext

Maybe better:

\definelabelclass[unit]

…

\setupunittext[liter=l]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to