ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Reconciling unicode-math with LaTeX2e mathematics
Date: Thu, 3 Dec 2015 13:33:52 +0100	[thread overview]
Message-ID: <566036B0.4060309@wxs.nl> (raw)
In-Reply-To: <CAJ2CwZ3qSSWw2JpkUgd9G0NkwcFjEfO0aSAEkpTPMbB6fY3D+g@mail.gmail.com>

On 12/3/2015 3:16 AM, Maggyero wrote:

> In both LaTeX and ConTeXt, we have two kinds of fonts:
> — a text font: multi-letter words;
> — a math font: single letter words.
>
> In math mode, using LaTeX, text fonts can use both
> — text spacing: $\textit{abc ffi}$ gives abc ffi;
> — math spacing: $\mathit{abc ffi}$ gives abcffi.
>
 > ...
> okay: $\it{abc ffi}$ gives abcffi. But you should note that in the
> source of ConTeXt you (Hans) introduced \mathit (and \mathup & \mathtf,
> \mathsl, \mathbf, etc.) as an equivalent of \it (\tf, \sl, \bf, etc.,

It's a bit different .. traditional tex has 8 bit fonts. Also, in 
traditional tex math families were implemented using text fonts while in 
opentype (unicode) math the alphabets come from the math fonts (with 
math properties). And, as there is some basic ligaturing built in the 
traditional math code path it will deal with ligatures in such a font. 
you can consider that an intentional side effect of using text fonts.

The context unicode math implementation is different (and quite likely 
rather different from latex too, if only because it already was done 
many years ago). Also, the implementation is quite ok (and actually 
pretty advanced) so changing something in the-latex-way is no option (in 
whatever way it is done, which i must admit i don't know). Most context 
math evolved over time and the mentioned commands were introduced 
already in mkii when aditya extended some code.

Anyway, as we have \mathtext (aka \text) we can also have an extra 
command \mathword which nils the spacing because that is actually what 
you ask for: space not being a space (math spacing is something else, it 
would enclose each character with math spacing which contradicts with 
ligatures).

I'll send you some code to play with,

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
___________________________________________________________________________________

  reply	other threads:[~2015-12-03 12:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-03  2:16 Maggyero
2015-12-03 12:33 ` Hans Hagen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-12-03  2:22 Maggyero
2015-11-30 17:20 Maggyero
2015-11-30 17:44 ` 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=566036B0.4060309@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).