* activating font specific ligatures
@ 2009-10-01 11:17 Peter Rolf
2009-10-01 11:32 ` Thomas A. Schmitz
2009-10-01 11:32 ` Arthur Reutenauer
0 siblings, 2 replies; 11+ messages in thread
From: Peter Rolf @ 2009-10-01 11:17 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: activating font specific ligatures
2009-10-01 11:17 activating font specific ligatures Peter Rolf
@ 2009-10-01 11:32 ` Thomas A. Schmitz
2009-10-01 11:34 ` Arthur Reutenauer
2009-10-01 11:32 ` Arthur Reutenauer
1 sibling, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2009-10-01 11:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: activating font specific ligatures
2009-10-01 11:17 activating font specific ligatures Peter Rolf
2009-10-01 11:32 ` Thomas A. Schmitz
@ 2009-10-01 11:32 ` Arthur Reutenauer
2009-10-01 12:22 ` Peter Rolf
2009-10-01 17:49 ` Hans Hagen
1 sibling, 2 replies; 11+ messages in thread
From: Arthur Reutenauer @ 2009-10-01 11:32 UTC (permalink / raw)
To: Mailing list for ConTeXt users
> 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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: activating font specific ligatures
2009-10-01 11:32 ` Arthur Reutenauer
@ 2009-10-01 12:22 ` Peter Rolf
2009-10-01 12:33 ` Thomas A. Schmitz
2009-10-01 17:49 ` Hans Hagen
1 sibling, 1 reply; 11+ messages in thread
From: Peter Rolf @ 2009-10-01 12:22 UTC (permalink / raw)
To: Mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1672 bytes --]
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
> ___________________________________________________________________________________
>
>
[-- Attachment #1.2: Type: text/html, Size: 2784 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: activating font specific ligatures
2009-10-01 12:22 ` Peter Rolf
@ 2009-10-01 12:33 ` Thomas A. Schmitz
2009-10-01 12:54 ` Peter Rolf
0 siblings, 1 reply; 11+ messages in thread
From: Thomas A. Schmitz @ 2009-10-01 12:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: activating font specific ligatures
2009-10-01 12:33 ` Thomas A. Schmitz
@ 2009-10-01 12:54 ` Peter Rolf
2009-10-01 13:14 ` Thomas A. Schmitz
0 siblings, 1 reply; 11+ messages in thread
From: Peter Rolf @ 2009-10-01 12:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 ;)
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: activating font specific ligatures
2009-10-01 12:54 ` Peter Rolf
@ 2009-10-01 13:14 ` Thomas A. Schmitz
0 siblings, 0 replies; 11+ messages in thread
From: Thomas A. Schmitz @ 2009-10-01 13:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: activating font specific ligatures
2009-10-01 11:32 ` Arthur Reutenauer
2009-10-01 12:22 ` Peter Rolf
@ 2009-10-01 17:49 ` Hans Hagen
2009-10-01 19:32 ` Peter Rolf
1 sibling, 1 reply; 11+ messages in thread
From: Hans Hagen @ 2009-10-01 17:49 UTC (permalink / raw)
To: Mailing list for ConTeXt users
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: activating font specific ligatures
2009-10-01 17:49 ` Hans Hagen
@ 2009-10-01 19:32 ` Peter Rolf
0 siblings, 0 replies; 11+ messages in thread
From: Peter Rolf @ 2009-10-01 19:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
> ___________________________________________________________________________________
>
>
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-10-01 19:32 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-01 11:17 activating font specific ligatures Peter Rolf
2009-10-01 11:32 ` Thomas A. Schmitz
2009-10-01 11:34 ` Arthur Reutenauer
2009-10-01 11:37 ` Thomas A. Schmitz
2009-10-01 11:32 ` Arthur Reutenauer
2009-10-01 12:22 ` Peter Rolf
2009-10-01 12:33 ` Thomas A. Schmitz
2009-10-01 12:54 ` Peter Rolf
2009-10-01 13:14 ` Thomas A. Schmitz
2009-10-01 17:49 ` Hans Hagen
2009-10-01 19:32 ` Peter Rolf
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).