ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Units fonts and spacing
Date: Sat, 11 Sep 2010 16:00:58 +0200	[thread overview]
Message-ID: <E12BDED7-2638-4F5B-A6A3-2321083CE6E3@gmail.com> (raw)
In-Reply-To: <4C8B4CCC.1060208@wxs.nl>


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}”.

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).

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.

> 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

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

> 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.

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	other threads:[~2010-09-11 14:00 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 [this message]
2010-09-11 14:24                   ` Alan BRASLAU
2010-09-11 16:33                     ` Wolfgang Schuster
2010-09-12 11:33                   ` Hans Hagen

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=E12BDED7-2638-4F5B-A6A3-2321083CE6E3@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).