ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Jeff Smith" <ascarel@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Visually replace one character by another one automatically
Date: Mon, 26 Nov 2007 22:07:33 -0500	[thread overview]
Message-ID: <2e8813a0711261907u6ff6c3adwaaebda5942cb2ceb@mail.gmail.com> (raw)

Hi again everyone!

I have a weird question. I sort of want to use ConTeXt to solve some
of my typing laziness. :-) I explain.

When typing a document, I use the normal single-quote style apostrophe
'  (UTF U+0027) - the "straight" apostrophe.

When typesetting the document, I want the apostrophe to appear like a
comma instead. The character is the single comma quotation mark (UTF
U+2019). (As both characters exist with different UTF definition ,
this is not a font issue.)

On my computer (it's a laptop), with my keyboard language settings and
all (under Ubuntu), the only apostrophe I can manage to type is the
first one. From what I can understand, my French Canadian keyboard
layout actually replaces the single quote key with something else more
important to us -- the acute accent (no, we don't use the French
azerty layout).

So right now all I can do is copy-paste the right character from the
Character Map... it's a bit impractical and unwieldy in the long run,
so this is not a good solution.

Furthermore, typing an apostrophe is second nature anyway when you've
been typing since childhood -- changing such typing habit is very
offputting AND it can create many mistakes. I don't want to think
about it. :-)

Therefore, I was wondering if there was a way to automatically replace
one character with another through some TeX magic! Changing all my
apostrophes in the input for single comma quotation mark when the
document is compiled.

Is this possible?

Thanks!
Jeff
___________________________________________________________________________________
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
___________________________________________________________________________________


             reply	other threads:[~2007-11-27  3:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-27  3:07 Jeff Smith [this message]
2007-11-27  8:18 ` Taco Hoekwater
2007-11-27  9:07   ` Taco Hoekwater
2007-11-27 15:14   ` Jeff Smith
2007-11-27 15:23     ` Hans Hagen
2007-11-27 16:15       ` Jeff Smith
2007-11-28 18:26         ` Henning Hraban Ramm
2007-11-28 19:07           ` Jeff Smith
2007-11-28 21:30             ` Henning Hraban Ramm

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=2e8813a0711261907u6ff6c3adwaaebda5942cb2ceb@mail.gmail.com \
    --to=ascarel@gmail.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).