From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37567 Path: news.gmane.org!not-for-mail From: "Jeff Smith" Newsgroups: gmane.comp.tex.context Subject: Visually replace one character by another one automatically Date: Mon, 26 Nov 2007 22:07:33 -0500 Message-ID: <2e8813a0711261907u6ff6c3adwaaebda5942cb2ceb@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1196132883 30788 80.91.229.12 (27 Nov 2007 03:08:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Nov 2007 03:08:03 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 27 04:08:09 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1Iwqnw-0007Wq-MD for gctc-ntg-context-518@m.gmane.org; Tue, 27 Nov 2007 04:08:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E5E991FB77; Tue, 27 Nov 2007 04:07:50 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17315-04; Tue, 27 Nov 2007 04:07:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 28EA51FA4C; Tue, 27 Nov 2007 04:07:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E5E01FA4C for ; Tue, 27 Nov 2007 04:07:40 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05796-01-2 for ; Tue, 27 Nov 2007 04:07:36 +0100 (CET) Original-Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.186]) by ronja.ntg.nl (Postfix) with ESMTP id 27BAD1FA4A for ; Tue, 27 Nov 2007 04:07:35 +0100 (CET) Original-Received: by rv-out-0910.google.com with SMTP id k15so723362rvb for ; Mon, 26 Nov 2007 19:07:34 -0800 (PST) Original-Received: by 10.140.82.40 with SMTP id f40mr1626411rvb.1196132853790; Mon, 26 Nov 2007 19:07:33 -0800 (PST) Original-Received: by 10.140.202.9 with HTTP; Mon, 26 Nov 2007 19:07:33 -0800 (PST) Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:37567 Archived-At: 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 ___________________________________________________________________________________