From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69817 Path: news.gmane.org!not-for-mail From: JJ Newsgroups: gmane.emacs.gnus.general Subject: Re: Display OpenOffice Writer files inline with odt2txt] Date: Tue, 20 Jul 2010 06:57:26 -0400 Message-ID: References: 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 1279623476 18333 80.91.229.12 (20 Jul 2010 10:57:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Jul 2010 10:57:56 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M18207@lists.math.uh.edu Tue Jul 20 12:57:55 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 1ObAWJ-00059l-9h for ding-account@gmane.org; Tue, 20 Jul 2010 12:57:55 +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 1ObAW6-0001ba-0n; Tue, 20 Jul 2010 05:57:42 -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 1ObAW3-0001bI-C7 for ding@lists.math.uh.edu; Tue, 20 Jul 2010 05:57:39 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1ObAW2-00083r-AI for ding@lists.math.uh.edu; Tue, 20 Jul 2010 05:57:39 -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 1ObAVz-0003iu-00 for ; Tue, 20 Jul 2010 12:57:35 +0200 Original-Received: from deleuze.hcoop.net ([69.90.123.67] helo=mail.hcoop.net ident=roundcube) by deleuze.hcoop.net with esmtp (Exim 4.63) (envelope-from ) id 1ObAVq-0003Jn-A8 for ding@gnus.org; Tue, 20 Jul 2010 06:57:26 -0400 In-Reply-To: X-Sender: ding_gnus.org@sumou.com User-Agent: RoundCube Webmail/0.1-rc2 X-Spam-Score: 0.8 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.4124 Ham tokens: 0.008-2--2h-0s--0d--UD:doc, 0.016-1--1h-0s--0d--OpenOffice, 0.016-1--1h-0s--0d--UD:odt, 0.016-1--1h-0s--0d--openoffice, 0.022-1631--3042h-235s--0d--i'll Spam tokens: 0.973-631--115h-13789s--0d--H*r:quimby.gnus.org, 0.961-571--163h-13581s--0d--HTo:D*gnus.org, 0.957-521--170h-12775s--0d--H*Ad:D*gnus.org, 0.956-556--190h-13790s--0d--H*r:3.36, 0.955-2204--761h-54853s--0d--HContent-Transfer-Encoding:8bit Autolearn status: ham 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4124] List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69817 Archived-At: On Tue, 20 Jul 2010 06:24:56 +0100, Leo wrote: > If you get the help text it possibly means you are not using dt2txt > correctly. Anyway you can use mm-save-part-to-file to save to file and > go from there. Well, the fault is with odt2txt, in that it's not able to work with standard input. That's how the text gets passed to it. So unlike antiword for instance, when you: antiword file.doc cat file.doc | antiword - you get the same output, i.e. the file is parsed. However with odt2txt with: odt2txt file.odt the file is parsed. However with: cat file.odt | odt2txt - you just get odt2txt help text. I'm not up to rewriting odt2txt source to enable standard input. I'll try experimenting with mm-save-part-to-file, so that it could then perhaps be submitted to odt2txt... -- JJ