From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: [PATCH][ANN] org-html/org-odt Date: Mon, 21 Mar 2011 22:26:02 +0100 Message-ID: <4D87C26A.2070700@christianmoe.com> References: <811v21sjy9.fsf@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=35447 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1mZA-0005Kq-D9 for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 17:23:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1mZ6-00062t-Aj for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 17:23:08 -0400 Received: from mars.hitrost.net ([91.185.211.18]:33461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1mZ6-0005sG-0a for emacs-orgmode@gnu.org; Mon, 21 Mar 2011 17:23:04 -0400 In-Reply-To: <811v21sjy9.fsf@gmail.com> 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: Jambunathan K Cc: emacs-orgmode@gnu.org Hi, Very, very nice! Tested with a minimal emacs, using Org-mode version 7.5 (baseline.6.g533ba.dirty), GNU Emacs 23.2.1 (powerpc-apple-darwin9.8.0, NS apple-appkit-949.54) on a Mac. Notes on the resulting test.odt document (I've had only a quick look at the html, so what follows refers only to ODT unless HTML is specifically mentioned): * Blocks There's no syntax highlighting in exported src blocks (ODT and HTML both). Not a priority? The OrgVerse style can, luckily, be changed to something more poetic... * Verbatim LaTeX I can't report on the LaTeX math display (never got dvipng to install on my system). What I /can/ report is that with the =LaTeX:verbatim option=, which you probably haven't tested, LaTeX equation environments are not exported (everything after the =\begin{equation}= line is missing or not visible). This is copy-pasted from test.odt: #+begin_example 6.5.1 LaTeX Fragment1 There is a equation down below. \begin{equation} 6.5.2 LaTeX Fragment2 \begin{equation} If $a^2=b$ and \( b=2 \), then the solution must be either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \]. #+end_example Everything shows up in HTML, but linebreaks before the =\end{equation}= line are lost. * Links The link to =Dedicated Target1= under 8.2.3 does not work when clicked (in odt -- it works in html). Hovering does show a popup, =.OrgXref.Dedicated-Target1=. All other links work as expected. * Captions, labels, references On opening, caption and reference labels include verbatim the reference key used in the Org source, which was my main concern last time. But now I realize that this is not an issue after all! =Tools > Update > Update all= takes care of automatic renumbering of all labels/references. This should probably be mentioned in the documentation. Tomorrow, I'll throw a 40-page report at it and see what happens. :) Yours, Christian On 3/20/11 7:32 PM, Jambunathan K wrote: > > This is a formal request to integrate my org-html.el& org-odt.el > changes in to the master branch. > > This patch introduces 3 major features: > 1. A generic exporter > 2. All new html backend re-implemented as a plugin to (1). > 3. A odt backend as a plugin to (1). > > The patch is based on git commit 3d802. > > I am attaching a sample test.org and test.html file generated by the > above set of changes. > > Http URL for the repo is: > - http://repo.or.cz/w/org-mode/org-jambu.git/shortlog/refs/heads/staging > (`staging' branch of `org-jambu.git') > > Let me know if you have any questions. > > ps: Considering the amount of effort I have already invested in these > patches it is almost impossible for me to break down this monolithic > patch in to series of smaller patches. I would be willing to accommodate > all other requests. > > > > > > > Jambunathan K. >