From: Romain Diss <romain.diss@yahoo.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to add a new unit for \unit{} command?
Date: Fri, 18 Oct 2013 08:35:37 +0200 [thread overview]
Message-ID: <1517021.NeMYeNKAtn@nereid> (raw)
In-Reply-To: <94541631-07D2-4E00-869E-2E5A1C95E807@gmail.com>
Le jeudi 17 octobre 2013 06:40:21 Wolfgang Schuster a écrit :
>> \registerunit[unit][division=division]
>> \setupunittext[division=div]
> Context looks for language dependent value of "division"
> and prints the value from the unittext entry, with this method you can also
> set different texts for different languages.
Thank you for these precisions.
Actually this feature interests me because I wondered how to translate certain
unit labels, like for example:
\unit{2 day} gives: "2 d" but I would like it to gives "2 j" in french.
So if I type this:
\setupunittext[day=j]
I get the correct translation but how can I tell Context that this is the
translation for 'french' only?
--
Romain Diss
<romain.diss@yahoo.fr>
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-10-18 6:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 11:57 Romain Diss
2013-10-16 12:47 ` Marco Patzer
2013-10-16 19:21 ` Romain Diss
2013-10-17 4:40 ` Wolfgang Schuster
2013-10-18 6:35 ` Romain Diss [this message]
2013-10-18 6:39 ` Wolfgang Schuster
2013-10-18 9:27 ` Romain Diss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1517021.NeMYeNKAtn@nereid \
--to=romain.diss@yahoo.fr \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).