From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69810 Path: news.gmane.org!not-for-mail From: "JJ" Newsgroups: gmane.emacs.gnus.general Subject: View multibyte word files inline with antiword] Date: Thu, 15 Jul 2010 03:41:24 -0400 (EDT) Message-ID: <59601.83.149.8.170.1279179684.squirrel@mail.hcoop.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1279179786 8741 80.91.229.12 (15 Jul 2010 07:43:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Jul 2010 07:43:06 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18199@lists.math.uh.edu Thu Jul 15 09:43:05 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OZJ5z-0000t2-3N for ding-account@gmane.org; Thu, 15 Jul 2010 09:43:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1OZJ4p-0006xQ-Vv; Thu, 15 Jul 2010 02:41:52 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1OZJ4k-0006xD-SL for ding@lists.math.uh.edu; Thu, 15 Jul 2010 02:41:46 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1OZJ4a-0005pK-4K for ding@lists.math.uh.edu; Thu, 15 Jul 2010 02:41:46 -0500 Original-Received: from deleuze.hcoop.net ([69.90.123.67] ident=Debian-exim) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1OZJ4Z-0004Ys-00 for ; Thu, 15 Jul 2010 09:41:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=mail.hcoop.net ident=hcoop) by deleuze.hcoop.net with esmtp (Exim 4.63) (envelope-from ) id 1OZJ4O-0004na-WC for ding@gnus.org; Thu, 15 Jul 2010 03:41:25 -0400 Original-Received: from 83.149.8.170 (SquirrelMail authenticated user jj) by mail.hcoop.net with HTTP; Thu, 15 Jul 2010 03:41:24 -0400 (EDT) User-Agent: SquirrelMail/1.4.9a X-Priority: 3 (Normal) Importance: Normal X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.4571 Ham tokens: 0.008-2--2h-0s--0d--what-have-you, 0.008-2--2h-0s--0d--whathaveyou, 0.010-217--373h-12s--0d--btw, 0.011-137--238h-9s--0d--BTW, 0.012-1052--1834h-72s--0d--i'd Spam tokens: 0.962-554--154h-13076s--0d--HTo:D*gnus.org, 0.958-504--161h-12288s--0d--H*Ad:D*gnus.org, 0.955-2131--734h-52966s--0d--HContent-Transfer-Encoding:8bit, 0.947-509--224h-13540s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.947-509--224h-13540s--0d--H*RU:quimby.gnus.org Autolearn status: ham 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4571] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69810 Archived-At: Hi all: I'd like to view ms word files inline with antiword. I've had success with the following setup: (add-to-list 'mm-inlined-types "application/msword") (add-to-list 'mm-inline-media-tests '("application/msword" (lambda (handle) (mm-inline-render-with-stdin handle nil "antiword" "-")) identity)) This then displays the world file inline, when you hit RET on it in the Article buffer. However, when the file has multibyte text, it winds up weirdly malformed. I've inspected mm-inline-render-with-stdin and surely enough, it uses unibyte buffer processing to display the file. I've noticed that mm-inline-render-with-function seems to enable multibyte stuff. How can I redefun maybe mm-inline-renden-with-stdin or what-have-you, so that multibyte text in the word files would be displayed properly? BTW, antiword on its own in a term has no problem with these, displays them fine, as long as the locale is set properly -- JJ