ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Issue with missing kerns when using fallback family (or KeterYG font)
@ 2018-12-30 11:06 Joseph Canedo
  2018-12-30 12:18 ` Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph Canedo @ 2018-12-30 11:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 968 bytes --]

Dear list,

Given the Following MWE, I notice that with latest beta (does not seem to happen before) kerns are not applied in paragraph in which there are some hebrew letters. This only affects text after that hebrew letters up to end of paragraph.
I use 2 fonts in sample : EBGaramond and KeterYG (can be found in various places). 

Thanks for advising
Best regards

Joseph

\showfontkerns

\definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes]

\definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr]

\definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, scale=1.0, features=hebrew]
\definefontfamily[mainfont][serif][EBGaramond][features=base]

\setupbodyfont[mainfont, 9pt]

\def\He{\hebrewHe}
\def\Tav{\hebrewTav}
\def\Vav{\hebrewVav}

\starttext

VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern between latest V and A

VA c'est. % kern as expected

\stoptext




[-- Attachment #1.2: Type: text/html, Size: 3154 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Issue with missing kerns when using fallback family (or KeterYG font)
  2018-12-30 11:06 Issue with missing kerns when using fallback family (or KeterYG font) Joseph Canedo
@ 2018-12-30 12:18 ` Hans Hagen
  2018-12-30 18:03   ` Issue with missing kerns when using fallback family(or " Joseph Canedo
  2018-12-30 18:05   ` Issue with missing kerns when using fallback family(or " Joseph Canedo
  0 siblings, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2018-12-30 12:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Joseph Canedo

On 12/30/2018 12:06 PM, Joseph Canedo wrote:
> Dear list,
> 
> Given the Following MWE, I notice that with latest beta (does not seem 
> to happen before) kerns are not applied in paragraph in which there are 
> some hebrew letters. This only affects text after that hebrew letters up 
> to end of paragraph.
> 
> I use 2 fonts in sample : EBGaramond and KeterYG (can be found in 
> various places).
> 
> Thanks for advising
> 
> Best regards
> 
> Joseph
> 
> \showfontkerns
> 
> \definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes]
> 
> \definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr]
> 
> \definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, 
> scale=1.0, features=hebrew]
> 
> \definefontfamily[mainfont][serif][EBGaramond][features=base]
> 
> \setupbodyfont[mainfont, 9pt]
> 
> \def\He{\hebrewHe}
> 
> \def\Tav{\hebrewTav}
> 
> \def\Vav{\hebrewVav}
> 
> \starttext
> 
> VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern 
> between latest V and A
> 
> VA c'est. % kern as expected
> 
> \stoptext
in font-ots.lua you can find

     local lefttoright  = 0
     local righttoleft  = 1

the second line misses a 't'

can you test with fixing that

(i'm cleaning up a bit of directional code and upcoming betas might have 
more of that cleanup)

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Issue with missing kerns when using fallback family(or KeterYG font)
  2018-12-30 12:18 ` Hans Hagen
@ 2018-12-30 18:03   ` Joseph Canedo
  2018-12-30 18:35     ` Hans Hagen
  2018-12-30 18:05   ` Issue with missing kerns when using fallback family(or " Joseph Canedo
  1 sibling, 1 reply; 6+ messages in thread
From: Joseph Canedo @ 2018-12-30 18:03 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2121 bytes --]

The MWE case is fixed but for some weird reason the « real » typesetting is still missing the kerns in some cases.
I’ll try to dig up a bit more to modify the MWE eventually.

De : Hans Hagen
Envoyé le :dimanche 30 décembre 2018 13:18
À : mailing list for ConTeXt users; Joseph Canedo
Objet :Re: [NTG-context] Issue with missing kerns when using fallback family(or KeterYG font)

On 12/30/2018 12:06 PM, Joseph Canedo wrote:
> Dear list,
> 
> Given the Following MWE, I notice that with latest beta (does not seem 
> to happen before) kerns are not applied in paragraph in which there are 
> some hebrew letters. This only affects text after that hebrew letters up 
> to end of paragraph.
> 
> I use 2 fonts in sample : EBGaramond and KeterYG (can be found in 
> various places).
> 
> Thanks for advising
> 
> Best regards
> 
> Joseph
> 
> \showfontkerns
> 
> \definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes]
> 
> \definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr]
> 
> \definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, 
> scale=1.0, features=hebrew]
> 
> \definefontfamily[mainfont][serif][EBGaramond][features=base]
> 
> \setupbodyfont[mainfont, 9pt]
> 
> \def\He{\hebrewHe}
> 
> \def\Tav{\hebrewTav}
> 
> \def\Vav{\hebrewVav}
> 
> \starttext
> 
> VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern 
> between latest V and A
> 
> VA c'est. % kern as expected
> 
> \stoptext
in font-ots.lua you can find

     local lefttoright  = 0
     local righttoleft  = 1

the second line misses a 't'

can you test with fixing that

(i'm cleaning up a bit of directional code and upcoming betas might have 
more of that cleanup)

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


[-- Attachment #1.2: Type: text/html, Size: 5433 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Issue with missing kerns when using fallback family(or KeterYG font)
  2018-12-30 12:18 ` Hans Hagen
  2018-12-30 18:03   ` Issue with missing kerns when using fallback family(or " Joseph Canedo
@ 2018-12-30 18:05   ` Joseph Canedo
  1 sibling, 0 replies; 6+ messages in thread
From: Joseph Canedo @ 2018-12-30 18:05 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1974 bytes --]

Forgot to write, thanks a lot BTW.

De : Hans Hagen
Envoyé le :dimanche 30 décembre 2018 13:18
À : mailing list for ConTeXt users; Joseph Canedo
Objet :Re: [NTG-context] Issue with missing kerns when using fallback family(or KeterYG font)

On 12/30/2018 12:06 PM, Joseph Canedo wrote:
> Dear list,
> 
> Given the Following MWE, I notice that with latest beta (does not seem 
> to happen before) kerns are not applied in paragraph in which there are 
> some hebrew letters. This only affects text after that hebrew letters up 
> to end of paragraph.
> 
> I use 2 fonts in sample : EBGaramond and KeterYG (can be found in 
> various places).
> 
> Thanks for advising
> 
> Best regards
> 
> Joseph
> 
> \showfontkerns
> 
> \definefontfeature[base][mode=node, kern=yes, script=latn, trep=yes]
> 
> \definefontfeature[hebrew][default][mode=node, lang=heb, script=hebr]
> 
> \definefallbackfamily[mainfont][serif][KeterYG][preset=range:hebrew, 
> scale=1.0, features=hebrew]
> 
> \definefontfamily[mainfont][serif][EBGaramond][features=base]
> 
> \setupbodyfont[mainfont, 9pt]
> 
> \def\He{\hebrewHe}
> 
> \def\Tav{\hebrewTav}
> 
> \def\Vav{\hebrewVav}
> 
> \starttext
> 
> VA c'est {\setupalign[r2l]\Tav\He\Vav} VA c'est % there is no kern 
> between latest V and A
> 
> VA c'est. % kern as expected
> 
> \stoptext
in font-ots.lua you can find

     local lefttoright  = 0
     local righttoleft  = 1

the second line misses a 't'

can you test with fixing that

(i'm cleaning up a bit of directional code and upcoming betas might have 
more of that cleanup)

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


[-- Attachment #1.2: Type: text/html, Size: 5257 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

* Re: Issue with missing kerns when using fallback family(or KeterYG font)
  2018-12-30 18:03   ` Issue with missing kerns when using fallback family(or " Joseph Canedo
@ 2018-12-30 18:35     ` Hans Hagen
  2018-12-30 18:43       ` Issue with missing kerns when using fallbackfamily(or " Joseph Canedo
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2018-12-30 18:35 UTC (permalink / raw)
  To: Joseph Canedo, mailing list for ConTeXt users

On 12/30/2018 7:03 PM, Joseph Canedo wrote:
> The MWE case is fixed but for some weird reason the « real » typesetting 
> is still missing the kerns in some cases.
> 
> I’ll try to dig up a bit more to modify the MWE eventually.
ok. nothing really fundamental changed, only a different kind of 
housekeeping which is fixable

(and actually at some point we can do more things but that's for next year)

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Issue with missing kerns when using fallbackfamily(or KeterYG font)
  2018-12-30 18:35     ` Hans Hagen
@ 2018-12-30 18:43       ` Joseph Canedo
  0 siblings, 0 replies; 6+ messages in thread
From: Joseph Canedo @ 2018-12-30 18:43 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1191 bytes --]

No rush at all, I’ll try to work out another MWE or find out if anything is wrong with my typesetting.
Enjoy New Year’s Eve, best wishes too to all other people in this mailing list for end of year.

De : Hans Hagen
Envoyé le :dimanche 30 décembre 2018 19:35
À : Joseph Canedo; mailing list for ConTeXt users
Objet :Re: [NTG-context] Issue with missing kerns when using fallbackfamily(or KeterYG font)

On 12/30/2018 7:03 PM, Joseph Canedo wrote:
> The MWE case is fixed but for some weird reason the « real » typesetting 
> is still missing the kerns in some cases.
> 
> I’ll try to dig up a bit more to modify the MWE eventually.
ok. nothing really fundamental changed, only a different kind of 
housekeeping which is fixable

(and actually at some point we can do more things but that's for next year)

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


[-- Attachment #1.2: Type: text/html, Size: 3393 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2018-12-30 18:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-30 11:06 Issue with missing kerns when using fallback family (or KeterYG font) Joseph Canedo
2018-12-30 12:18 ` Hans Hagen
2018-12-30 18:03   ` Issue with missing kerns when using fallback family(or " Joseph Canedo
2018-12-30 18:35     ` Hans Hagen
2018-12-30 18:43       ` Issue with missing kerns when using fallbackfamily(or " Joseph Canedo
2018-12-30 18:05   ` Issue with missing kerns when using fallback family(or " Joseph Canedo

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