From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [odt] User-visible improvements Date: Fri, 19 Aug 2011 14:14:55 +0530 Message-ID: <81sjoxyem0.fsf@gmail.com> References: <814o1w7urm.fsf@gmail.com> <87obznch1e.fsf@altern.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuKi6-0004RY-S0 for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 04:45:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QuKi5-0002gI-51 for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 04:45:50 -0400 Received: from mail-pz0-f44.google.com ([209.85.210.44]:45872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QuKi4-0002g6-U5 for emacs-orgmode@gnu.org; Fri, 19 Aug 2011 04:45:49 -0400 Received: by pzk36 with SMTP id 36so5328334pzk.17 for ; Fri, 19 Aug 2011 01:45:47 -0700 (PDT) In-Reply-To: (suvayu ali's message of "Thu, 18 Aug 2011 14:31:17 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: Bastien , emacs-orgmode@gnu.org suvayu ali writes: > Hi Jambu and Bastien, > > On Thu, Aug 18, 2011 at 9:31 AM, Bastien wrote: >> Hi Jambunathan, >> >> these are great improvements -- I'm surprised people didn't thank >> you more for this! =A0So, thanks. >> > > Does this feature mean we can export to other common word processor > formats like .doc using the odt exporter and command line utilities > for the final conversion? Although this is not of direct interest to > me (I stay away from anything not Linux :-p), it might be interesting > to my Mac/Windows friends. :) Yes. org->odt-> First link in the chain is through an org backend and the second link in the chain is through a converter. (Think of exporting to latex natively and then using pdflated to generate pdf. The principle is just the same) > I also see Jambu mentions odp to pdf.=20 Yes you can convert to already-existing_odp->pdf. More specifically you can do all conversions that you typically do with "Save As" and "Export to" options while working on Writer/Presentation/Spreadsheet/Web/Drawing documents. More specifically if you have latex, docbook or mediawiki extensions installed you can export do a html->latex, odt->docbook, rtf->mediawiki throught the converter. The command to use is M-x org-lparse-convert RET RET RET=20 and the external converter will do the job for you. > I wasn't aware the odt exporter could export to odp.=20 You do a org->odt->odp. This is an easter egg in BasicODConverter (and this feature is not available in unoconv). You can add a odp entry in org-lparse-convert-capabilities as below ,---- | (("Text" <---- Under Text category | ("odt" "ott" "doc" "rtf") | (("pdf" "pdf") | ("odt" "odt") | ("xhtml" "html") | ("rtf" "rtf") | ("ott" "ott") | ("doc" "doc") | ("ooxml" "xml") | ("html" "html") | ("odp" "odp"))) <---- Add this entry | [snip]) `---- odt->odp currently uses File->Send->Outline To Presentation (BasicODConverter is authored by me. So without much of haggling :-) I can have it do File->Send->Autoabstract to Presentation) This is an asynchronous call and it is NOT headless. So basically the LibreOffice window will pop-up and wait for few second before declaring that conversion is done. If there is enough interest in this direction I would file a feature request against LibreOffice to provide a synchronous API for outline to presentation conversion. (From the OpenOffice mailing list I understand that odt->html conversion was asynchronous but was later converter to synchronous mechanism based on a bug report filed by the JODConverter) ,---- from Main.Bas in BasicODConverter dir | ' Export Outline to Presentation | dispatcher =3D createUnoService("com.sun.star.frame.DispatchHelper") | dispatcher.executeDispatch(inDoc.CurrentController.Frame, ".uno:SendOutl= ineToStarImpress", "", 0, Array()) |=20 | ' Dispatch event above is aynchronous. Wait for a few seconds for the ab= ove event to finish | Wait(WaitFor * 1000) `---- > This would be something I would love to test more. Is there any > special configuration I need to do? I tried looking for variables, but > nothing jumped out as an obvious customisation in a cursory glance. > And of course a huge thanks to Jambu. :) --=20