From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Opentype feature and "aligncharacter=yes"
Date: Sun, 4 Sep 2016 18:22:50 +0200 [thread overview]
Message-ID: <65cb0032-0207-21b5-d957-fe31c5f405c6@wxs.nl> (raw)
In-Reply-To: <CABLfLbBfPk=_TrCCH9TuBWDQ1TgZ2RR_3QZL7mSE7dvTh08ydg@mail.gmail.com>
On 9/4/2016 5:33 PM, Jose Luis Arellano wrote:
> Hello Hans.
>
>> I have no clue what you expect ..
> Use old style numbers as default feature in text and tabular-lining
> numbers for tables.
and how about oldstyle tabular lining numbers ... if we would disable
oldstyle then someone would complain that oldstyle fixed width digits
would fail
\definefontfeature
[system:tabnum]
[system:tabnum]
[onum=no]
\definefontfeature[default][default][onum=yes]
\setupbodyfont[pagella]
\starttext
\enabledirectives[typesetters.characteralign.autofont]
\bTABLE
\setupTABLE[alignmentcharacter={text->.},aligncharacter=yes,align=middle]
\bTR \bTD 1.23456789 \eTD \eTR
\bTR \bTD 12.3456789 \eTD \eTR
\bTR \bTD 123.456789 \eTD \eTR
\eTABLE
\disabledirectives[typesetters.characteralign.autofont]
\bTABLE
\setupTABLE[alignmentcharacter={text->.},aligncharacter=yes,align=middle]
\bTR \bTD 1.23456789 \eTD \eTR
\bTR \bTD 12.3456789 \eTD \eTR
\bTR \bTD 123.456789 \eTD \eTR
\eTABLE
\stoptext
>> what font is used? Not all fonts have those num features.
> This issue is not related to font. You can reproduce it with default
> font (Latin Modern) just use the MWE.
>
> Thanks
>
> 2016-09-04 6:40 GMT-03:00 Hans Hagen <pragma@wxs.nl>:
>> On 9/4/2016 6:38 AM, Jose Luis Arellano wrote:
>>>
>>> Hello list.
>>> I want to report a very annoying issue when one use oldstyle numbers
>>> by default. You can check the result in the following MWE:
>>>
>>> %\definefontfeature[default][default][onum=yes]
>>> \definefontfeature[lnum][tnum=yes,lnum=yes]
>>>
>>> \starttext
>>> \bTABLE
>>>
>>> \setupTABLE[alignmentcharacter={text->.},aligncharacter=yes,align=middle,style={\feature[+][lnum]}]
>>> \bTR \bTD 1.23456789 \eTD \eTR
>>> \bTR \bTD 12.3456789 \eTD \eTR
>>> \bTR \bTD 123.456789 \eTD \eTR
>>> \eTABLE
>>> \stoptext
>>>
>>> As you can see, when you uncomment the line above, "aligncharacter"
>>> has no effect.
>>
>>
>> I have no clue what you expect .. what font is used? Not all fonts have
>> those num features.
>>
>> Hans
>>
>>
>> -----------------------------------------------------------------
>> Hans Hagen | PRAGMA ADE
>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>> tel: 038 477 53 69 | www.pragma-ade.nl | 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
>> ___________________________________________________________________________________
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | 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
___________________________________________________________________________________
prev parent reply other threads:[~2016-09-04 16:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-04 4:38 Jose Luis Arellano
2016-09-04 9:40 ` Hans Hagen
2016-09-04 15:33 ` Jose Luis Arellano
2016-09-04 16:22 ` 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=65cb0032-0207-21b5-d957-fe31c5f405c6@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).