Hi Marcin, On Sat, 14 Mar 2009, Marcin Borkowski wrote:
Hi,
how to do this: here in Poland we have some conventions as for typesetting math; for example, we don't use \leq, but \leqslant;
The easy way is to type ⩽ (0x2A7D) instead of ≤ (0x2264) :). You can do something like \setuplabeltext [en] [lessthanequal={\leq}] \setuplabeltext [pl] [lessthanequal={\leqslant}] \def\le{\labeltext{lessthanequal}} and then use \le, but I am not sure if this is a good thing to do.
we don't write "tan" for tangent, but "tg";
Do you want \tan to produce tg? Again you can do \setuplabeltext [en] [tangent={tan}] \setuplabeltext [pl] [tangent={tg}] \definemathcommand [tan] [nolop] {\mfunction{\labeltext{tangent}}}
we don't write "arcsin", but "arc\,sin"; etc.
Same as above.
Would it be possible to have such typographic conventions (I could provide a more comprehensive list, of course) enabled by \mainlanguage[pl]?
It is relatively easy to do this. I am in favour of implementing the trignometric functions, etc; but I do not think that changing the meanings of mathematical symbols is a good thing. It is really hard to remember the names of symbols as is, changing meaning according to language will make it extremely difficult.
A related problem is dashes; where the English use an em-dash without any spaces, the Polish use an en-dash with spaces of around 0.2em (the left one "unbreakable", i.e., with \penalty10000).
Don't know.
Also, we put periods after section numbers, so no "1.2 Section", but rather "1.2. Section".
\setuplabeltext [pl] [section={{},{.}}]
What is the ConTeXt way to have such things for different languages?
\setuplabeltext Aditya