From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Roodwriter@core.com" Newsgroups: gmane.emacs.help Subject: Re: How to convert .doc to plain text ascii in emacs. Date: Sun, 02 May 2004 15:04:12 -0400 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <109ahjkmdupajcd@corp.supernews.com> References: <87u0z0vuln.fsf@spacecentre.se> Reply-To: Roodwriter@core.com 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 1083525404 31973 80.91.224.253 (2 May 2004 19:16:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 May 2004 19:16:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 02 21:16:35 2004 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 1BKMS3-0001Rw-00 for ; Sun, 02 May 2004 21:16:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKMRm-0000zL-Qx for geh-help-gnu-emacs@m.gmane.org; Sun, 02 May 2004 15:16:18 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!sn-xit-02!sn-xit-06!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.7.1 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 47 Original-Xref: shelby.stanford.edu gnu.emacs.help:122920 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 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:18207 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:18207 gebser@speakeasy.net wrote: > > Thanks very much. Your elisp works great. There's one glitch (which I > realize is from antiword): > > The three characters "\342\200\231" should be replaced by the single > apostrophe character ('). To do this by hand, I did > > M-x replace-regexp Return C-q 342 Return C-q 200 Return C-q 231 Return > Return ' Return > > but this does not find the intended string. The problem seems to be > that C-q 342 is immediately (in the minibuffer) converted into an 'a' > with a grave symbol over it. Putting the point on the backslash (\) > preceding the 342 in the antiword-converted buffer and doing "C-u C-x =" > indeed shows this a-with-grave character to be (0342, 226, 0xe2). > > To create a simple test case, do the following: > > Open an empty *scratch* buffer. Enter into it: C-q 342 Return C-q 200 > Return C-q 231 Return. The first character that appears is the > a-with-grave; the second and third characters appear properly as > \200\231. > > It is, I think, the failure of C-q 342 to be represented as \342 which > is the problem. What is the solution? > > > tia, > ken > Have you tried just copying and pasting the character into the minibuffer when doing the replace-regexp? --Rod __________ Author of "Linux for Non-Geeks--Clear-eyed Answers for Practical Consumers" and "Boring Stories from Uncle Rod." Both are available at http://www.rodwriterpublishing.com/index.html To reply by e-mail, take the extra "o" out of the name.