ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Let's Polish the math!
Date: Sat, 14 Mar 2009 03:52:36 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.00.0903140329480.32482@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <20090314002625.GI11907@atos.labs.wmid.amu.edu.pl>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1776 bytes --]

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

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

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

  parent reply	other threads:[~2009-03-14  7:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-14  0:26 Marcin Borkowski
2009-03-14  7:10 ` Mojca Miklavec
2009-03-14  7:52 ` Aditya Mahajan [this message]
2009-03-14 13:11   ` Xan
2009-03-14 16:01     ` Hans Hagen
2009-03-14 16:04       ` Xan
2009-03-14 16:04   ` Hans Hagen
2009-03-17 19:12   ` Mojca Miklavec
2009-03-17 19:56     ` Wolfgang Schuster
2009-03-17 20:39       ` Mojca Miklavec
2009-03-17 22:30         ` Hans Hagen
2009-03-14 12:05 ` Wolfgang Schuster

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=alpine.LNX.2.00.0903140329480.32482@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).