From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: nospam55 Newsgroups: gmane.emacs.help Subject: fixing M$ character codes Date: Sat, 03 Jul 2004 18:00:28 +0200 Organization: itaposets Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <2ko3egF4flbgU1@uni-berlin.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: sea.gmane.org 1088870606 22940 80.91.224.253 (3 Jul 2004 16:03:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Jul 2004 16:03:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 03 18:03:20 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bgmz1-0000n6-00 for ; Sat, 03 Jul 2004 18:03:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bgn0t-0004TH-UD for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Jul 2004 12:05:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs,alt.religion.emacs Original-Followup-To: gnu.emacs.help Original-Lines: 62 Original-X-Trace: news.uni-berlin.de 2q1UJZtv7ZC4FBBeqMiaZQsW6ffS7yJd0ZL/cXMA0OiuEMAHiX User-Agent: KNode/0.7.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:124103 comp.emacs:85298 alt.religion.emacs:8551 Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19434 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19434 Hi! Help me and the mankind ! I have often to correct manually dowloaded M$ - originating text , i. e. I must bother to do the ethernal replacements \222 into ' \213 into < etc etc , where the codes are taken from the well-known (defvar gnus-article-dumbquotes-map '(("\202" ",") ("\203" "f") ("\204" ",,") ("\205" "...") ("\213" "<") ("\214" "OE") ("\221" "`") ("\222" "'") ("\223" "``") ("\224" "\"") ("\225" "*") ("\226" "-") ("\227" "--") ("\231" "(TM)") ("\233" ">") ("\234" "oe") ("\264" "'")) "Table for MS-to-Latin1 translation.") Now, the big question whose answer I didn't find on the internet is there a way for having emacs fix this mess ? My dream is to have something like M-x fix-evil-empire-nonsense RET that automatically does on the selected region the replacements above for us poor humans. Any package? Any defun ? Thank you :) PS micro$oft-ware makes many people to write \222 for ' apostrophe \202 for , comma \213 for < "less than" \233 for > "greater than" \224 for backslash \225 for asterisk etc etc without they realize this :(