* Another bug with ligature-blocking?
@ 2021-03-24 15:48 denis.maier
2021-03-24 16:41 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: denis.maier @ 2021-03-24 15:48 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 926 bytes --]
Hi,
I just ran into something strange with ligature blocking:
---------------------------------------------------------------------------------------
\blockligatures[begrif:fl:ich]
\definefontfeature[default][default][dlig=yes,liga=yes,]
\definefontfeature[default:block][default][blockligatures=yes]
\definefontfamily[times][rm][Times New Roman]
\definefontfamily[termes[rm][TeX Gyre Termes]
\starttext
\switchtobodyfont[times]
\definedfont[Serif*default]
begrifflich
\blank
\definedfont[Serif*default:block]
begrifflich
\switchtobodyfont[termes]
\definedfont[Serif*default]
begrifflich
\blank
\definedfont[Serif*default:block]
begrifflich
\stoptext
---------------------------------------------------------------------------------------
With <Times New Roman> I'm getting < begriff|lich> when blockligatures is activated. Does anyone know what's going on there?
Best,
Denis
[-- Attachment #1.2: Type: text/html, Size: 3849 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 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] 4+ messages in thread
* Re: Another bug with ligature-blocking?
2021-03-24 15:48 Another bug with ligature-blocking? denis.maier
@ 2021-03-24 16:41 ` Hans Hagen
2021-03-24 19:20 ` denis.maier
0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2021-03-24 16:41 UTC (permalink / raw)
To: mailing list for ConTeXt users, denis.maier
On 3/24/2021 4:48 PM, denis.maier@ub.unibe.ch wrote:
> \definefontfamily[times][rm][Times New Roman]
don't assume beforehand that something that doesn't work as expected is
a bug
the font just has no ligatures defined which you can remedy (in this
cae) with because it does have the glyphs
\startluacode
fonts.handlers.otf.addfeature {
name = "moreligatures",
type = "ligature",
data = {
['ff'] = { "f", "f" },
['fi'] = { "f", "i" },
['fl'] = { "f", "l" },
}
}
\stopluacode
\blockligatures[begrif:fl:ich]
\definefontfeature[default][default][dlig=yes,liga=yes,moreligatures=yes]
\definefontfamily[times][rm][Times New Roman]
\definefontfamily[termes[rm][TeX Gyre Termes]
\definefontfeature[default:block][default][blockligatures=yes]
\starttext
{\switchtobodyfont[times] \definedfont[Serif*default] begrifflich
ff fi fl\blank
\definedfont[Serif*default:block]
begrifflich ff fi fl\blank}
{\switchtobodyfont[termes]\definedfont[Serif*default] begrifflich
ff fi fl\blank
\definedfont[Serif*default:block]
begrifflich ff fi fl\blank}
\stoptext
-----------------------------------------------------------------
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] 4+ messages in thread
* Re: Another bug with ligature-blocking?
2021-03-24 16:41 ` Hans Hagen
@ 2021-03-24 19:20 ` denis.maier
2021-03-24 21:21 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: denis.maier @ 2021-03-24 19:20 UTC (permalink / raw)
To: j.hagen, ntg-context
> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.hagen@xs4all.nl>
> Gesendet: Mittwoch, 24. März 2021 17:42
> An: mailing list for ConTeXt users <ntg-context@ntg.nl>; Maier, Denis
> Christian (UB) <denis.maier@ub.unibe.ch>
> Betreff: Re: [NTG-context] Another bug with ligature-blocking?
>
> On 3/24/2021 4:48 PM, denis.maier@ub.unibe.ch wrote:
>
> > \definefontfamily[times][rm][Times New Roman]
> don't assume beforehand that something that doesn't work as expected is a
> bug
Sorry, Hans, I didn't mean to be offensive.
>
> the font just has no ligatures defined which you can remedy (in this
> cae) with because it does have the glyphs
>
> \startluacode
> fonts.handlers.otf.addfeature {
> name = "moreligatures",
> type = "ligature",
> data = {
> ['ff'] = { "f", "f" },
> ['fi'] = { "f", "i" },
> ['fl'] = { "f", "l" },
> }
> }
> \stopluacode
>
>
> \blockligatures[begrif:fl:ich]
> \definefontfeature[default][default][dlig=yes,liga=yes,moreligatures=yes]
> \definefontfamily[times][rm][Times New Roman]
> \definefontfamily[termes[rm][TeX Gyre Termes]
>
> \definefontfeature[default:block][default][blockligatures=yes]
>
> \starttext
>
> {\switchtobodyfont[times] \definedfont[Serif*default] begrifflich
> ff fi fl\blank
> \definedfont[Serif*default:block] begrifflich ff fi fl\blank}
> {\switchtobodyfont[termes]\definedfont[Serif*default] begrifflich
> ff fi fl\blank
> \definedfont[Serif*default:block] begrifflich ff fi fl\blank}
>
> \stoptext
>
I'm not sure I understand what is going on here. I thought \blockligatures simply means that instead of a ligature you'll have the regular glyphs in the output. Is that not correct?
Denis
___________________________________________________________________________________
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] 4+ messages in thread
* Re: Another bug with ligature-blocking?
2021-03-24 19:20 ` denis.maier
@ 2021-03-24 21:21 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2021-03-24 21:21 UTC (permalink / raw)
To: denis.maier, ntg-context
On 3/24/2021 8:20 PM, denis.maier@ub.unibe.ch wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: Hans Hagen <j.hagen@xs4all.nl>
>> Gesendet: Mittwoch, 24. März 2021 17:42
>> An: mailing list for ConTeXt users <ntg-context@ntg.nl>; Maier, Denis
>> Christian (UB) <denis.maier@ub.unibe.ch>
>> Betreff: Re: [NTG-context] Another bug with ligature-blocking?
>>
>> On 3/24/2021 4:48 PM, denis.maier@ub.unibe.ch wrote:
>>
>>> \definefontfamily[times][rm][Times New Roman]
>> don't assume beforehand that something that doesn't work as expected is a
>> bug
>
> Sorry, Hans, I didn't mean to be offensive.
it has more to do with searching for solutions using the subjects of
mail ... in which case 'bug' is not a good one
>>
>> the font just has no ligatures defined which you can remedy (in this
>> cae) with because it does have the glyphs
>>
>> \startluacode
>> fonts.handlers.otf.addfeature {
>> name = "moreligatures",
>> type = "ligature",
>> data = {
>> ['ff'] = { "f", "f" },
>> ['fi'] = { "f", "i" },
>> ['fl'] = { "f", "l" },
>> }
>> }
>> \stopluacode
>>
>>
>> \blockligatures[begrif:fl:ich]
>> \definefontfeature[default][default][dlig=yes,liga=yes,moreligatures=yes]
>> \definefontfamily[times][rm][Times New Roman]
>> \definefontfamily[termes[rm][TeX Gyre Termes]
>>
>> \definefontfeature[default:block][default][blockligatures=yes]
>>
>> \starttext
>>
>> {\switchtobodyfont[times] \definedfont[Serif*default] begrifflich
>> ff fi fl\blank
>> \definedfont[Serif*default:block] begrifflich ff fi fl\blank}
>> {\switchtobodyfont[termes]\definedfont[Serif*default] begrifflich
>> ff fi fl\blank
>> \definedfont[Serif*default:block] begrifflich ff fi fl\blank}
>>
>> \stoptext
>>
>
> I'm not sure I understand what is going on here. I thought \blockligatures simply means that instead of a ligature you'll have the regular glyphs in the output. Is that not correct?
sure but times doesn't have these ligatures (it has the shapes but not
the 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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-24 21:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24 15:48 Another bug with ligature-blocking? denis.maier
2021-03-24 16:41 ` Hans Hagen
2021-03-24 19:20 ` denis.maier
2021-03-24 21:21 ` 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).