From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Micah Cowan Newsgroups: gmane.emacs.help Subject: RFC: Unicode Punct Input Method Date: 16 Oct 2003 14:17:14 -0700 Organization: CalWeb Internet Services, Inc. Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066339044 3202 80.91.224.253 (16 Oct 2003 21:17:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 21:17:24 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 23:17:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AAFUj-0003HO-00 for ; Thu, 16 Oct 2003 23:17:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AAFU3-0002Jy-67 for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Oct 2003 17:16:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!peer01.cox.net!cox.net!newshosting.com!news-xfer2.atl.newshosting.com!posted1.newshosting.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Lines: 42 Original-NNTP-Posting-Host: 815736b1.news.newshosting.com Original-X-Trace: DXC=XEG; eN5YJ; JEfnBYW377SH7gYX5fdemc@XUDneGAXkhNXdhdlNSdFE12_0aWC Original-X-Complaints-To: abuse@calweb.com Original-Xref: shelby.stanford.edu gnu.emacs.help:117332 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:13260 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13260 When editing XML documents in PSGML's xml-mode, I like to enter appropriate punctuation that is context-sensitive; that is, when I type `'' (apostrophe) I like it to use Unicode's left-quote character if there is whitespace (or no characters at all) to the left of point; and right-quote otherwise. I have similar rules for dashes: one of MINUS (U+2212), EN DASH (U+2013), HYPHEN (U+2010) or EM DASH U+2014) are selected based on context (in the case of EM DASH, the previous character is examined, and if it too is a dash character, then it is *replaced* by the new EM DASH character). I also like to be able to quickly indicate that the next character should be inserted as-is without massaging, or that (for instance) the logic as to whether to insert a left-quote or right-quote should be reversed (think of "'Tis" or "Stop 'N Shop"). Also, since I do this in XML, context-sensitivity is important, so that if I start typing `