From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Steven W. Orr" Newsgroups: gmane.emacs.help Subject: Copying to unicode. Date: Wed, 03 Nov 2010 12:27:45 -0400 Message-ID: <4CD18D81.1080309@syslang.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1288812091 32022 80.91.229.12 (3 Nov 2010 19:21:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 3 Nov 2010 19:21:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 03 20:21:27 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PDite-0005iS-HN for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Nov 2010 20:21:27 +0100 Original-Received: from localhost ([127.0.0.1]:32832 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDitW-0002dn-RJ for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Nov 2010 15:21:14 -0400 Original-Received: from [140.186.70.92] (port=43782 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PDgBp-00026H-Ey for help-gnu-emacs@gnu.org; Wed, 03 Nov 2010 12:27:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PDgBi-0001X1-9w for help-gnu-emacs@gnu.org; Wed, 03 Nov 2010 12:27:57 -0400 Original-Received: from saturn.syslang.net ([207.172.210.41]:40395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PDgBi-0001WD-6Z for help-gnu-emacs@gnu.org; Wed, 03 Nov 2010 12:27:50 -0400 Original-Received: from [IPv6:::1] (localhost.localdomain [127.0.0.1]) by saturn.syslang.net (8.14.3/8.14.3) with ESMTP id oA3GRjcu027833 for ; Wed, 3 Nov 2010 12:27:47 -0400 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 03 Nov 2010 15:20:08 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75284 Archived-At: People send me stuff from Outlook all the time. I sometimes want to copy some of the text to a file I'm editing in emacs. The text displays fine in emacs, but what I really want to do is to set myself up so that *funny* characters end up being pasted in using unicode. I see that there's something called the nonascii-translation-table. I'm looking for low-hanging fruit. Has anyone already written something cool that translates funny characters to keep me in unibyte? Examples would be: Open or close double quotes ==> " ( \042 ) enspace, mspace, etc ==> ' ' ( \040 ) Funny single quotes ==> ' ( \047 ) etc... Anyone? Or is this a dumb idea? Thanks. -- Time flies like the wind. Fruit flies like a banana. Stranger things have .0. happened but none stranger than this. Does your driver's license say Organ ..0 Donor?Black holes are where God divided by zero. Listen to me! We are all- 000 individuals! What if this weren't a hypothetical question? steveo at syslang.net