From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Apostrophes not converting to typographical curly apostrophes
Date: Tue, 27 Mar 2012 09:52:19 +0200 [thread overview]
Message-ID: <038E5659-125B-471D-A2E0-40036CC0B568@googlemail.com> (raw)
In-Reply-To: <20120327043455.GA14042@s70206.gridserver.com>
Am 27.03.2012 um 06:34 schrieb John Magolske:
> * Hans Hagen <pragma@wxs.nl> [120322 22:24]:
>> On 22-3-2012 07:32, John Magolske wrote:
>>> I'm having difficulty getting straight 0x0027 apostrophes to convert
>>> into typographical single-quotes when using a given typescript.
>> [...]
>> search the wiki for 'features' ... you need to tell context what
>> features to use for an opentype font
>
> Thanks, I found it's trep that lets the straight apostrophes get curly:
>
> \definefontfeature[default][trep=yes]
>
> This was informative: http://wiki.contextgarden.net/Quotesingle
ConTeXt has a predefined feature set where “trep” is already set, you missed only in your typescripts to apply the features to the font.
\starttypescriptcollection [lemonde]
\starttypescript [serif] [lemonde]
\definefontsynonym [LeMondeLivre-Roman] [name:lemondelivrenormalosf]
\definefontsynonym [LeMondeLivre-Bold] [name:lemondelivreboldosf]
\definefontsynonym [LeMondeLivre-Italic] [name:lemondelivreitalicosf]
\stoptypescript
\starttypescript [serif] [lemonde]
\setups[font:fallback:serif]
\definefontsynonym [Serif] [LeMondeLivre-Roman]
\definefontsynonym [SerifBold] [LeMondeLivre-Bold]
\definefontsynonym [SerifItalic] [LeMondeLivre-Italic]
\stoptypescript
\starttypescript [sans] [lemonde]
\definefontsynonym [LeMondeSans-Roman] [name:lemondesansnormalosf]
\definefontsynonym [LeMondeSans-Bold] [name:lemondesansboldosf]
\definefontsynonym [LeMondeSans-Italic] [name:lemondesansitalicosf]
\stoptypescript
\starttypescript [sans] [lemonde]
\setups[font:fallback:sans]
\definefontsynonym [Sans] [LeMondeSans-Roman]
\definefontsynonym [SansBold] [LeMondeSans-Bold]
\definefontsynonym [SansItalic] [LeMondeSans-Italic]
\stoptypescript
\starttypescript [lemonde]
\definetypeface [lemonde] [rm] [serif] [lemonde] [default] [features=default]
\definetypeface [lemonde] [ss] [sans] [lemonde] [default] [features=default]
\quittypescriptscanning
\stoptypescript
\stoptypescriptcollection
Wolfgang
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2012-03-27 7:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-22 6:32 John Magolske
2012-03-22 21:43 ` Hans Hagen
2012-03-27 4:34 ` John Magolske
2012-03-27 7:52 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=038E5659-125B-471D-A2E0-40036CC0B568@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).