ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pontus Lurcock <pont@talvi.net>
To: ntg-context@ntg.nl
Subject: Re: Producing quotesingle glyph
Date: Sun, 20 Mar 2011 11:41:22 +1300	[thread overview]
Message-ID: <20110319224122.GW29732@rae.vm.bytemark.co.uk> (raw)
In-Reply-To: <20110319082039.GA3139@khaled-laptop>

Thanks, Mojca and Khaled!

Taking trep out of the default features works nicely, but since in
this case I want quote-replacement as the default and straight
quotes only occasionally, I ended up with the following solution:

\definefontfeature[default][liga=yes,kern=yes,tlig=yes,trep=yes,mode=node]
\definefontfeature[notrep][liga=yes,kern=yes,tlig=yes,trep=no,mode=node]
\def\realquotesingle{{\setfontfeature{notrep}'}}

\starttext

Straight quote: \realquotesingle

Standard quote: '

\stoptext

Will wikify later today in case anyone else ever needs this.

Pont
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2011-03-19 22:41 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-19  0:29 Pontus Lurcock
2011-03-19  8:05 ` Mojca Miklavec
2011-03-19  8:12   ` Mojca Miklavec
2011-03-19  8:20     ` Khaled Hosny
2011-03-19 22:41       ` Pontus Lurcock [this message]
2011-03-20  0:33         ` Pontus Lurcock
2011-03-20  7:11         ` Wolfgang Schuster
2011-03-20  7:34           ` Pontus Lurcock
2011-03-20 10:04             ` Mojca Miklavec
2011-03-20 11:35               ` Wolfgang Schuster
2011-03-20 12:02                 ` Mojca Miklavec

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=20110319224122.GW29732@rae.vm.bytemark.co.uk \
    --to=pont@talvi.net \
    --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).