[NTG-context] em-dash ligature is converted to en-dash in the generic fontloader

Marcel Krüger tex at 2krueger.de
Thu Feb 28 12:38:54 CET 2019


On 2/23/2019 1:50 PM, Ulrike Fischer wrote:
> As reported on the dev-luatex list --- is converted to an en-dash
> (instead of em-dash) if there are no spaces around the ---.
> 
> We could now reproduce the problem also with the generic fontloader:
> it appears only with mode=node. I'm using the files from 2019-02-14,
> but the problem appeared first in the files from 2018-11-18):
> 
> \font\test={file:texgyreheros-regular.otf:+tlig;mode=node;}\test
> 
> dashes-these % gives dash
> 
> dashes--these % gives en-dash
> 
> dashes---these % gives en-dash WRONG
> 
> dashes --- these % gives em-dash
> 
> em-dashes---these % gives em-dash
> 
> \bye
> 
> context is not affected, there the code works fine.

This issue can be fixed in the fontloader with the attached patch.

Best regards,
Marcel Krüger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-ligature-followed-by-disc.diff
Type: application/octet-stream
Size: 653 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190228/406eb28b/attachment.obj>


More information about the ntg-context mailing list