ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Opentype feature and "aligncharacter=yes"
@ 2016-09-04  4:38 Jose Luis Arellano
  2016-09-04  9:40 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Jose Luis Arellano @ 2016-09-04  4:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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.

Thanks guys.
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Opentype feature and "aligncharacter=yes"
  2016-09-04  4:38 Opentype feature and "aligncharacter=yes" Jose Luis Arellano
@ 2016-09-04  9:40 ` Hans Hagen
  2016-09-04 15:33   ` Jose Luis Arellano
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2016-09-04  9:40 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Opentype feature and "aligncharacter=yes"
  2016-09-04  9:40 ` Hans Hagen
@ 2016-09-04 15:33   ` Jose Luis Arellano
  2016-09-04 16:22     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Jose Luis Arellano @ 2016-09-04 15:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello Hans.

> I have no clue what you expect ..
Use old style numbers as default feature in text and tabular-lining
numbers for tables.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Opentype feature and "aligncharacter=yes"
  2016-09-04 15:33   ` Jose Luis Arellano
@ 2016-09-04 16:22     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2016-09-04 16:22 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-04 16:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-04  4:38 Opentype feature and "aligncharacter=yes" 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 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).