ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Italic correction behaviour is odd
@ 2017-01-11 21:11 Henri Menke
  2017-01-18 11:09 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Henri Menke @ 2017-01-11 21:11 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

why are italic corrections in the MWE below not inserted according to the rules stated in the new font manual?  See comments in the code for details.  I can reproduce the issue with TL2016 and latest beta.

Cheers, Henri

---

\definefontfeature
  [default]
  [default]
  [itlc=yes]

\setupitaliccorrection[text]

\enabletrackers[typesetters.italics]

\starttext
{\it beef} beer % seems to be fine

{\it beef} \hbox{beer} % why is correction inserted here?  It's a box

{\it beef}? % correction missing

{\it beef\/}? % adding `global' flag inserts correction here

{\it beef\normalitaliccorrection}? % works always with itlc=yes
\stoptext
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Italic correction behaviour is odd
  2017-01-11 21:11 Italic correction behaviour is odd Henri Menke
@ 2017-01-18 11:09 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2017-01-18 11:09 UTC (permalink / raw)
  To: ntg-context

On 1/11/2017 10:11 PM, Henri Menke wrote:
> Dear list,
>
> why are italic corrections in the MWE below not inserted according to the rules stated in the new font manual?  See comments in the code for details.  I can reproduce the issue with TL2016 and latest beta.


you can test with

local function okay(data,current,font,prevchar,previtalic,char,what)
     if data then -- remove the not

in typo-itc.lua

> Cheers, Henri
>
> ---
>
> \definefontfeature
>   [default]
>   [default]
>   [itlc=yes]
>
> \setupitaliccorrection[text]
>
> \enabletrackers[typesetters.italics]
>
> \starttext
> {\it beef} beer % seems to be fine
>
> {\it beef} \hbox{beer} % why is correction inserted here?  It's a box
>
> {\it beef}? % correction missing
>
> {\it beef\/}? % adding `global' flag inserts correction here
>
> {\it beef\normalitaliccorrection}? % works always with itlc=yes
> \stoptext
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2017-01-18 11:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-11 21:11 Italic correction behaviour is odd Henri Menke
2017-01-18 11:09 ` 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).