ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Units fonts and spacing
Date: Sun, 12 Sep 2010 13:33:26 +0200	[thread overview]
Message-ID: <4C8CBA86.7000902@wxs.nl> (raw)
In-Reply-To: <E12BDED7-2638-4F5B-A6A3-2321083CE6E3@gmail.com>

On 11-9-2010 4:00, Wolfgang Schuster wrote:
>
> Am 11.09.2010 um 11:33 schrieb Hans Hagen:
>
>>> Will siunits module be used as a base for this or will this be
>>> something completely new?
>>
>> I don't know what you mean with siunits. Wolfgangs module?  We have unit support in context for along time (also as part of some mathml extensions). So, we're more talking of an upgrade of the current module (units and digits) and I will have a look at Wolfgangs code to see what additional support is in there and we can merge things if needed.
>
> He’s talking about my module. The difference between our modules is that your use “10 \Meter \Per \Second” for the input while i use ”\siunit{10\meter\per\second}”.

ah, so you explicitly tag the unit

one reason why I didn't do this is that it does not integrate well in 
math at that time (superscripts etc) and the mechanism was mainly meant 
for schoolbooks (and strongly related to mathml input as well)

> There is nothing wrong about two modules with the same function as long as both do not cause a problem for the module (and i took care of this in my module).

sure

> Parts like the number parsing can become part of the core and you provide a function which others can use to integrate it in their own macros.

indeed

>> The fundamentals of units are not going to change much, apart from the fact that we can now parse m/s if needed instead of using the verbose names).
>
> I’m not a friend of the ”m/s” input because you can’t say where a units starts/ends without adding separators between them, here is a example from latex’s siunitx package which supports both methods but although the first is shorter we should rely on the tex method

hm, never seen that one (no time to look into it anyway)

> - si{kg.m/s^2}
> - si{\kilo\gram\metre\per\square\second}

we can provide the first one flagged as "unit mode for dummies" but it 
will never work out well with

$ a = 123 m/s^2$

so one would always hae to tag the unit then.

>> Keep in mind that the units module runs on top of synonyms so that one can ask for lists of used units and meanings of them.
>
> Adding this function is no problem, synonyms can also be integrated in any other system.

yes

let's discuss it at the conference

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


      parent reply	other threads:[~2010-09-12 11:33 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09  9:22 Vedran Miletić
2010-09-09 14:19 ` Wolfgang Schuster
2010-09-10  8:03   ` Vedran Miletić
2010-09-10 14:58     ` Wolfgang Schuster
2010-09-10 15:01       ` Hans Hagen
2010-09-10 15:06         ` Wolfgang Schuster
2010-09-10 15:40           ` Hans Hagen
2010-09-10 22:13             ` Vedran Miletić
2010-09-10 22:40               ` Vedran Miletić
2010-09-11 13:47                 ` Wolfgang Schuster
2010-09-11  9:33               ` Hans Hagen
2010-09-11 14:00                 ` Wolfgang Schuster
2010-09-11 14:24                   ` Alan BRASLAU
2010-09-11 16:33                     ` Wolfgang Schuster
2010-09-12 11:33                   ` Hans Hagen [this message]

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=4C8CBA86.7000902@wxs.nl \
    --to=pragma@wxs.nl \
    --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).