ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: Producing quotesingle glyph
Date: Sun, 20 Mar 2011 11:04:32 +0100	[thread overview]
Message-ID: <AANLkTikD+xvMij+q27RuFMrQ3V2Fr40v0i86PNNmDZpP@mail.gmail.com> (raw)
In-Reply-To: <20110320073437.GA29732@rae.vm.bytemark.co.uk>

On Sun, Mar 20, 2011 at 08:34, Pontus Lurcock wrote:
> On Sun 20 Mar 2011, Wolfgang Schuster wrote:
>
>> Another option is to disable only a single feature:
>>
>> \definefontfeature[notrep][trep=no]
>> \def\realquotesingle{{\addfs{notrep}'}}
>
> Thanks, that's more elegant. I've updated the wiki page to include it.

Just a question for Hans or Taco: would it be possible to create a
command sequence that would avoid doing the auto-replacement even when
trep is on? Say, \textapostrophe, \asciiapostrophe, \textquote,
\asciiquote or some similar name.

One option would be to automatically create a "virtual font" with
duplicate of 0x27 at some constant slot and then access that glyph
(even though that might have consequences for searching in PDFs). This
is ugly, but maybe there is some better and more elegant approach.

Mojca
___________________________________________________________________________________
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-20 10:04 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
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 [this message]
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=AANLkTikD+xvMij+q27RuFMrQ3V2Fr40v0i86PNNmDZpP@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=pragma@wxs.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).