activating font specific ligatures
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Hi, I'm currently adding some otf-fonts (MinionPro,MyriadPro from Designer8.2) to ConTeXt. I use the following font feature for MinionPro: \definefontfeature[minion][script=latn,liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes] Most ligature work with this setting, but ch ck ct ij IJ sp ss st do not. Also the ligatures for small caps (some are defined) do not work at all. Is there a way to manually select the ligatures of a font? I like to activate the ch-,ch-ligatures (c_h E085, c_k E086), but not the too playful ct-,sp-,st-ligatures. I can live without all this, but it would be nice to use the possibilities of the font. Any hint is welcome. Greetings, Peter
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On Oct 1, 2009, at 1:17 PM, Peter Rolf wrote:
Hi,
I'm currently adding some otf-fonts (MinionPro,MyriadPro from Designer8.2) to ConTeXt. I use the following font feature for MinionPro: \definefontfeature[minion] [script=latn,liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes]
Most ligature work with this setting, but ch ck ct ij IJ sp ss st
do not. Also the ligatures for small caps (some are defined) do not work at all.
Is there a way to manually select the ligatures of a font? I like to activate the ch-,ch-ligatures (c_h E085, c_k E086), but not the too playful ct-,sp-,st-ligatures. I can live without all this, but it would be nice to use the possibilities of the font. Any hint is welcome.
Greetings, Peter
From my understanding (which may or may not be right): Minion has the dlig feature which you can turn on with dlig=yes, but that would enable the st and ct-ligs as well, and a quick test seems to show that there are no ch ck ij IJ or ss ligs. If you want to manually select, I think the only way would be to use the font in node mode and write lookup rules in a fea-file (yes, the one that Taco warned against on the list this very morning). Best Thomas
![](https://secure.gravatar.com/avatar/a0f6b595b0e3b7f3abba19eeb8261fc2.jpg?s=120&d=mm&r=g)
Most ligature work with this setting, but
ch ck ct ij IJ sp ss st
Those ligatures are usually not part of the liga feature that only activates the most common f-ligatures; try dlig (discretionary ligatures), or maybe hlig (historical ligatures), although it's more probably the former.
Is there a way to manually select the ligatures of a font?
You can use a feature file to define your own OpenType features that would only activates the ligatures of your choice and associate it with a name, say plig for "Peter's ligatures" (rlig is already used for "required ligatures" in scripts like Arabic, better not to overwrite it). See fonts/fea/context/texhistoric.fea in the ConTeXt distribution for how it's done for tlig (which is not a standard OpenType feature either). Send it to Hans when you're over, so that he can use it too because he's been traumatised by the st and ct ligatures :-) Arthur
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Arthur Reutenauer schrieb:
Most ligature work with this setting, but
ch ck ct ij IJ sp ss st
Those ligatures are usually not part of the liga feature that only activates the most common f-ligatures; try dlig (discretionary ligatures), or maybe hlig (historical ligatures), although it's more probably the former.
Is there a way to manually select the ligatures of a font?
You can use a feature file to define your own OpenType features that would only activates the ligatures of your choice and associate it with a name, say plig for "Peter's ligatures" (rlig is already used for "required ligatures" in scripts like Arabic, better not to overwrite it). See fonts/fea/context/texhistoric.fea in the ConTeXt distribution for how it's done for tlig (which is not a standard OpenType feature either). Send it to Hans when you're over, so that he can use it too because he's been traumatised by the st and ct ligatures :-)
:)) will do so I have found the 'dlig'-feature in the font, but activating this feature doesn't work here. Thanks Arthur and Thomas! Best wishes, Peter
Arthur ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On Oct 1, 2009, at 2:22 PM, Peter Rolf wrote:
I have found the 'dlig'-feature in the font, but activating this feature doesn't work here.
Hmm, it does work here: \definefontfeature [pete] [mode = node ,script = latn ,language =dflt,liga=yes,dlig=yes,onum=yes,pnum=yes,kern=yes,tlig=yes,trep=yes] \starttypescript [serif] [minion] \definefontsynonym [Minion-Roman] [name:MinionPro- Regular] [features=pete] \definefontsynonym [Minion-Bold] [name:MinionPro-Bold] [features=pete] \definefontsynonym [Minion-Italic] [name:MinionPro-It] [features=pete] \definefontsynonym [Minion-Bold-Italic] [name:MinionPro-BoldIt] [features=pete] \stoptypescript \starttypescript [serif] [minion] [name] \usetypescript[serif][fallback] \definefontsynonym [Serif] [Minion-Roman] [features=pete] \definefontsynonym [SerifItalic] [Minion-Italic] [features=pete] \definefontsynonym [SerifBold] [Minion-Bold] [features=pete] \definefontsynonym [SerifBoldItalic] [Minion-Bold-Italic] [features=pete] \definefontsynonym [SerifCaps] [Minion-Roman] [features=smallcaps] \stoptypescript \starttypescript [Minion] \definetypeface [MyMinion] [rm] [serif] [minion] [default] \stoptypescript \usetypescript[Minion] \setupbodyfont[MyMinion,12pt] \starttext The official construction files flash and hiss IJ ij ack ock. {\it The official construction files flash and hiss IJ ij ack ock.} \stoptext Thomas
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Thomas A. Schmitz schrieb:
On Oct 1, 2009, at 2:22 PM, Peter Rolf wrote:
I have found the 'dlig'-feature in the font, but activating this feature doesn't work here.
Hmm, it does work here:
Yep, your example works here too... *but* now I'm also traumatized by the ugly ligatures. My lawyer will contact you ;)
![](https://secure.gravatar.com/avatar/d0e94fb08d4620cfbd2f8f59a7868637.jpg?s=120&d=mm&r=g)
On Oct 1, 2009, at 2:54 PM, Peter Rolf wrote:
Yep, your example works here too... *but* now I'm also traumatized by the ugly ligatures. My lawyer will contact you ;)
YOU made me look at those ligatures in the first place, so my lawyer will contact your lawyer :-) But seriously, it really depends: the French "Pléiade" editions have these st and ct ligatures, and for poetry, e.g., I don't find them ugly at all. But of course, you wouldn't want to use them for a technical manual.
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Arthur Reutenauer wrote:
for tlig (which is not a standard OpenType feature either). Send it to Hans when you're over, so that he can use it too because he's been traumatised by the st and ct ligatures :-)
right now i'm traumatized by the fact that after our main communication server crashed (mail, ftp, svn, vpn) i had to spend this week figuring out a new setup so, hence my lack of response this week Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/44ca9eda7aaa681c0e3b3e90125c56b0.jpg?s=120&d=mm&r=g)
Hans Hagen schrieb:
Arthur Reutenauer wrote:
for tlig (which is not a standard OpenType feature either). Send it to Hans when you're over, so that he can use it too because he's been traumatised by the st and ct ligatures :-)
No easy way to do this anymore!? \installfeature[otf][xlig] \definefontfeature[minion][mode=node,script=latn,language=dflt,liga=yes,kern=yes,tlig=yes,trep=yes,onum=yes, xlig=yes,featurefile=minionpro.fea] [font-ini.mkiv] [..] \def\doinstallfontfeature[#1][#2]% {\writestatus\m!fonts{installing font features was experimental}} % \ctxlua{fonts.install_feature("#1","#2")}} ----- I can send you the *.fea file, but I doubt that the two ligatures (c_h,c_k) are worth all the trouble...
right now i'm traumatized by the fact that after our main communication server crashed (mail, ftp, svn, vpn) i had to spend this week figuring out a new setup
so, hence my lack of response this week
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
participants (4)
-
Arthur Reutenauer
-
Hans Hagen
-
Peter Rolf
-
Thomas A. Schmitz