ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Visually replace one character by another one automatically
@ 2007-11-27  3:07 Jeff Smith
  2007-11-27  8:18 ` Taco Hoekwater
  0 siblings, 1 reply; 9+ messages in thread
From: Jeff Smith @ 2007-11-27  3:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-11-28 21:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27  3:07 Visually replace one character by another one automatically Jeff Smith
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

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).