From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.devel Subject: Re: DocView now supports OpenDocument & MS Office formats Date: Fri, 06 May 2011 21:00:59 +0530 Message-ID: <81iptn4zik.fsf@gmail.com> References: <87vd2bxskk.fsf@member.fsf.org> <67C423E857BB47B7AFAE5F39568E36A0@us.oracle.com> <87mxnnxql8.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1304695888 32430 80.91.229.12 (6 May 2011 15:31:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 6 May 2011 15:31:28 +0000 (UTC) Cc: Stefan Monnier , Drew Adams , emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 06 17:31:23 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QIMzy-0005TX-Vf for ged-emacs-devel@m.gmane.org; Fri, 06 May 2011 17:31:23 +0200 Original-Received: from localhost ([::1]:34668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIMzy-0002t9-Cd for ged-emacs-devel@m.gmane.org; Fri, 06 May 2011 11:31:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIMzv-0002t4-DK for emacs-devel@gnu.org; Fri, 06 May 2011 11:31:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIMzt-0000iI-VS for emacs-devel@gnu.org; Fri, 06 May 2011 11:31:19 -0400 Original-Received: from mail-px0-f171.google.com ([209.85.212.171]:34272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIMzt-0000iA-Qp for emacs-devel@gnu.org; Fri, 06 May 2011 11:31:17 -0400 Original-Received: by pxi7 with SMTP id 7so2266170pxi.30 for ; Fri, 06 May 2011 08:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:references:mail-followup-to :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=MJHb7jgHILWDEXCBuE3YkU2hKyNtUle9JE3eNihgNpw=; b=hLUj6ob26EPgZoCySoLKo0e6TVAeUWhNyDHnvVRT8fOUR9JnC9ybbxwWdZlB6hcMv0 6u1bbCGtWplMWq7RWIjHTHX6NbJwtDc46ZTPwC8L4048vZDbSTUMHoFncaAtvGom85jM 5hMz1jUM0dlPtSceDhtMl5dY8ichCtz4BRc+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:mail-followup-to:date:in-reply-to :message-id:user-agent:mime-version:content-type; b=EZDqwddzdloTW64KHGWqSgvS4baayqzEJQjWN0+dp/Cv31E9go9OIAYbihdWuCccuF 8msBE4WTkQhi3ZPUURPJ0tx8Nuy+S4v99bHfRUHI4R0LdKSkx59plMNQ061j9B1RFOQ4 w1P8hTEGDtjClSAUJmzdIPklrFan2wVeLmLic= Original-Received: by 10.142.152.34 with SMTP id z34mr2131117wfd.197.1304695875526; Fri, 06 May 2011 08:31:15 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.184.10.47]) by mx.google.com with ESMTPS id n7sm4291544wfl.23.2011.05.06.08.31.10 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 May 2011 08:31:14 -0700 (PDT) Mail-Followup-To: Tassilo Horn , Stefan Monnier , Drew Adams , emacs-devel@gnu.org In-Reply-To: (Stefan Monnier's message of "Thu, 30 Dec 2010 10:40:27 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.212.171 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139179 Archived-At: Hello Tassilo >> Hm, I don't know. It mostly depends on unoconv, which in turn depends >> on OO.org. I have version 0.4 installed here, but at least 0.3 should >> be fine as well. > > I see. On my Debian machines (6 year-old Debian testing installation > which has accumulated pretty much all packages I've ever needed during > those years), I don't have unoconv installed, so I think there's a good > chance that many people don't have it installed. This fact I think > gives a first answer to "should we add .doc and .odt to > auto-mode-alist": only if unoconv is available. Thanks for adding support for converting odt files to pdf files. I am wondering whether it would be possible to *not* make the unoconv the default converter. Speaking for myself, I had troubling getting unoconv-0.4 to work on my Windows box right from the way go - mostly due to limited patience and ignorance of python runtime. But I had better luck with using OpenOffice.Org's Basic macros to convert my odt files to pdf [1]. So, may I propose following minor changes to doc-view.el? Make doc-view-unoconv-program to be either an executable (as is now) or a function pointer with the same signature as (defun doc-view-odf->pdf (odf callback) ...) with one another argument that says where the resulting pdf file need to be produced. The above changes are minor and could be easily circumvented. In summary what I am saying is this: All that docview needs is a pdf file and how it is generated should be configureable and left to the user's taste. This is particularly so when unoconv and the python bindings it implies is not a de-facto standard. Jambunathan k. Footnotes: [1] See the .bat wrapper and the macro code here: http://user.services.openoffice.org/en/forum/viewtopic.php?f=20&t=39983 [2] On a related note. one can also "record macros" so generating quick vb code for makeshift/one-off conversions from odt->doc/rtf/xhtml/docbook would be a fairly straightforward task. Following post has a recipe for converting using import/export filters in inter-document conversions (The script is similar in spirit to the way unoconv uses export filters) http://user.services.openoffice.org/en/forum/viewtopic.php?f=21&t=23531 --