[NTG-context] Another bug with ligature-blocking?

Hans Hagen j.hagen at xs4all.nl
Wed Mar 24 22:21:28 CET 2021


On 3/24/2021 8:20 PM, denis.maier at ub.unibe.ch wrote:
>> -----Ursprüngliche Nachricht-----
>> Von: Hans Hagen <j.hagen at xs4all.nl>
>> Gesendet: Mittwoch, 24. März 2021 17:42
>> An: mailing list for ConTeXt users <ntg-context at ntg.nl>; Maier, Denis
>> Christian (UB) <denis.maier at ub.unibe.ch>
>> Betreff: Re: [NTG-context] Another bug with ligature-blocking?
>>
>> On 3/24/2021 4:48 PM, denis.maier at 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
-----------------------------------------------------------------


More information about the ntg-context mailing list