From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [WIP] OpenOffice Exporter Date: Mon, 11 Oct 2010 18:41:59 +0530 Message-ID: <81hbgsub4w.fsf@gmail.com> References: <81r5fy5z61.fsf@gmail.com> <8762x9uoa1.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41364 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P5IAs-0007i3-PS for emacs-orgmode@gnu.org; Mon, 11 Oct 2010 09:12:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P5IAr-0003jt-QN for emacs-orgmode@gnu.org; Mon, 11 Oct 2010 09:12:18 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:40908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P5IAr-0003jp-Lo for emacs-orgmode@gnu.org; Mon, 11 Oct 2010 09:12:17 -0400 Received: by pxi6 with SMTP id 6so1804345pxi.0 for ; Mon, 11 Oct 2010 06:12:16 -0700 (PDT) In-Reply-To: <8762x9uoa1.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 11 Oct 2010 09:28:06 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: e.fraga@ucl.ac.uk Cc: org-mode mailing list Hi Eric Eric S Fraga writes: > On Sun, 10 Oct 2010 12:09:50 +0530, Jambunathan K wrote: >> >> >> I am working on a Org->OpenOffice/ODT exporter. >> >> This is a WIP announcement. I am posting this with an intention to hear >> of and preferably avoid any parallell efforts. >> >> I am basing it on org-html.el. >> >> As it stands now in my own work area, it can export an outline structure >> and has support for >> >> 1. character styles >> - bold, italic, underline, strikethrough, code, verbatim >> >> 2. paragraph styles >> - quote, verse, center, example and source code >> >> 3. lists >> - numbered, bulleted and description lists >> >> 4. table of contents >> >> Still a long a way to go ... > > but sounds good so far. Although org->html->OOo works fine, I would > definitely like to remove the one unnecessary step. Export should be as simple as C-c C-e o nothing more. That's what I have defined as the default key binding for Open Office exporter. > How are you going to handle images? I like this question. It looks like Org->html->OOo exporter falls short of expectations atleast wrt working with images. This in itself will justify my development efforts [1]. > I want to make sure that the document that is exported has images > "inside" the document (as opposed to links), at least optionally, so > that I can share documents properly. Will this be possible? > Short answer: Yes it is possible. I will make embedding images in the ODT document an optional feature. Long answer: I tried the Org->html>OOo route and I understand what you mean. I 'hand edited' the resulting odt file the following way and was able to accomplish what you desire. 1. Unzip it (dot file is just a *.zip archive) 2. Create Pictures folder within the Unzipped archive and copy over the needed images in to that folder. 3. Fixup META-INF/manifest.xml to contain entries for the images that moved over. 4. Update content.xml with the new path for the images. 5. Zip up the archive with an ODT extension. 6. The document is ready to be served. Footnotes: [1] There are some discussions about issues with cross-references + bibliographic entries in the existing Org->->ODT conversion sequence. It would be good if the users record the limitations with such export procedures in specific details in this thread. > Thanks, > eric