emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Jambunathan's ODT exporter now in contrib/
@ 2011-07-01  9:37 Bastien
  2011-07-01 12:00 ` Christian Moe
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bastien @ 2011-07-01  9:37 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Jambunathan K.

Dear all,

I'm please to announce that Jambunathan's ODT exporter is now in the
contrib/ directory (in latest git repo) -- the files are here:

  contrib/odt/
  contrib/lisp/org-odt.el
  contrib/lisp/org-lparse.el
  contrib/lisp/org-xhtml.el

Jambunathan and I are still actively tuning this major addition, please
bare with us while we are making sure everything works as expected.

We still need to update the documentation and a few things.

Again, thanks a lot to Jambunathan for this wonderful addition and for
his patience, and also thanks to Lennart who contributed to the initial
effort and helped make this come true.

The ODT exporter will live in contrib/ for Org 7.6 -- then we will work
on integrating it to the core, so that it can safely move to Emacs one
day.

Happy hacking and testing to everyone!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Jambunathan's ODT exporter now in contrib/
  2011-07-01  9:37 Jambunathan's ODT exporter now in contrib/ Bastien
@ 2011-07-01 12:00 ` Christian Moe
  2011-07-01 12:04 ` [PATCH] Make org-xhtml and org-odt usable Jambunathan K
  2011-07-01 12:39 ` Jambunathan's ODT exporter now in contrib/ Niels Giesen
  2 siblings, 0 replies; 6+ messages in thread
From: Christian Moe @ 2011-07-01 12:00 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Jambunathan K.

Congratulations and thanks to Jambunathan!

This is indeed a major addition, and great news for those of us with 
clients who expect *office formats.

Yours,
Christian

On 7/1/11 11:37 AM, Bastien wrote:
> Dear all,
>
> I'm please to announce that Jambunathan's ODT exporter is now in the
> contrib/ directory (in latest git repo) -- the files are here:
>
>    contrib/odt/
>    contrib/lisp/org-odt.el
>    contrib/lisp/org-lparse.el
>    contrib/lisp/org-xhtml.el
>
> Jambunathan and I are still actively tuning this major addition, please
> bare with us while we are making sure everything works as expected.
>
> We still need to update the documentation and a few things.
>
> Again, thanks a lot to Jambunathan for this wonderful addition and for
> his patience, and also thanks to Lennart who contributed to the initial
> effort and helped make this come true.
>
> The ODT exporter will live in contrib/ for Org 7.6 -- then we will work
> on integrating it to the core, so that it can safely move to Emacs one
> day.
>
> Happy hacking and testing to everyone!
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH] Make org-xhtml and org-odt usable
  2011-07-01  9:37 Jambunathan's ODT exporter now in contrib/ Bastien
  2011-07-01 12:00 ` Christian Moe
@ 2011-07-01 12:04 ` Jambunathan K
  2011-07-01 13:04   ` Bastien
  2011-07-01 12:39 ` Jambunathan's ODT exporter now in contrib/ Niels Giesen
  2 siblings, 1 reply; 6+ messages in thread
From: Jambunathan K @ 2011-07-01 12:04 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]


Bastien

> Dear all,
>
> I'm please to announce that Jambunathan's ODT exporter is now in the
> contrib/ directory (in latest git repo) -- the files are here:
>
>   contrib/odt/
>   contrib/lisp/org-odt.el
>   contrib/lisp/org-lparse.el
>   contrib/lisp/org-xhtml.el
>

Thanks for accepting my contribution. I am happy to see my files land in
the master repo. I am confident that these files will provide a good and
stable framework for external exporters to plug in.

> Jambunathan and I are still actively tuning this major addition, please
> bare with us while we are making sure everything works as expected.

The attached patch will make sure that the xhtml and odt exporter don't
crash when invoked. Could you please apply this patch?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Make-org-xhtml-and-org-odt-usable.patch --]
[-- Type: text/x-patch, Size: 1647 bytes --]

From d96a8f9e167abebe74cb23e5810f3556ed7a87e1 Mon Sep 17 00:00:00 2001
From: Jambunathan K <kjambunathan@gmail.com>
Date: Fri, 1 Jul 2011 17:11:45 +0530
Subject: [PATCH] Make org-xhtml and org-odt usable

* contrib/lisp/org-odt.el (org-odt-data-dir): Update to
reflect new directory layout.

* contrib/lisp/org-xhtml.el
(org-export-xhtml-special-string-regexps): Define it.
---
 contrib/lisp/org-odt.el   |    2 +-
 contrib/lisp/org-xhtml.el |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el
index ad53204..c0b6491 100644
--- a/contrib/lisp/org-odt.el
+++ b/contrib/lisp/org-odt.el
@@ -70,7 +70,7 @@
 
 (defconst org-odt-lib-dir (file-name-directory load-file-name))
 (defconst org-odt-data-dir
-  (let ((dir1 (expand-file-name ".." org-odt-lib-dir))		   ; git
+  (let ((dir1 (expand-file-name "../odt" org-odt-lib-dir))	   ; git
 	(dir2 (expand-file-name "./contrib/odt" org-odt-lib-dir))) ; elpa
     (cond
      ((file-directory-p dir1) dir1)
diff --git a/contrib/lisp/org-xhtml.el b/contrib/lisp/org-xhtml.el
index 7cdb936..fcc782c 100644
--- a/contrib/lisp/org-xhtml.el
+++ b/contrib/lisp/org-xhtml.el
@@ -44,6 +44,13 @@
   :tag "Org Export HTML"
   :group 'org-export)
 
+(defconst org-export-xhtml-special-string-regexps
+  '(("\\\\-" . "&shy;")
+    ("---\\([^-]\\)" . "&mdash;\\1")
+    ("--\\([^-]\\)" . "&ndash;\\1")
+    ("\\.\\.\\." . "&hellip;"))
+  "Regular expressions for special string conversion.")
+
 (defcustom org-export-xhtml-footnotes-section "<div id=\"footnotes\">
 <h2 class=\"footnotes\">%s: </h2>
 <div id=\"text-footnotes\">
-- 
1.7.2.3


[-- Attachment #3: Type: text/plain, Size: 21 bytes --]


Jambunathan K.

-- 

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: Jambunathan's ODT exporter now in contrib/
  2011-07-01  9:37 Jambunathan's ODT exporter now in contrib/ Bastien
  2011-07-01 12:00 ` Christian Moe
  2011-07-01 12:04 ` [PATCH] Make org-xhtml and org-odt usable Jambunathan K
@ 2011-07-01 12:39 ` Niels Giesen
  2011-07-01 13:28   ` Giovanni Ridolfi
  2 siblings, 1 reply; 6+ messages in thread
From: Niels Giesen @ 2011-07-01 12:39 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Jambunathan K.

[-- Attachment #1: Type: text/plain, Size: 1838 bytes --]

Using latest org-mode, with org-odt included.

C-c C-e O complained about not finding OrgOdtAutomaticStyles.xml.
I patched org-odt.el to the following so that it could find it:

Could someone look into this? (e.g. I do not know whether this would break
non-integrated org-odt (or whether that matters at all at this stage)

diff --git a/contrib/lisp/org-odt.el b/contrib/lisp/org-odt.el
index ad53204..2857bf9 100644
--- a/contrib/lisp/org-odt.el
+++ b/contrib/lisp/org-odt.el
@@ -70,7 +70,7 @@

 (defconst org-odt-lib-dir (file-name-directory load-file-name))
 (defconst org-odt-data-dir
-  (let ((dir1 (expand-file-name ".." org-odt-lib-dir))            ; git
+  (let ((dir1 (expand-file-name "../odt" org-odt-lib-dir))                ;
git
        (dir2 (expand-file-name "./contrib/odt" org-odt-lib-dir))) ; elpa
     (cond
      ((file-directory-p dir1) dir1)




On Fri, Jul 1, 2011 at 11:37 AM, Bastien <bzg@altern.org> wrote:

> Dear all,
>
> I'm please to announce that Jambunathan's ODT exporter is now in the
> contrib/ directory (in latest git repo) -- the files are here:
>
>  contrib/odt/
>  contrib/lisp/org-odt.el
>  contrib/lisp/org-lparse.el
>  contrib/lisp/org-xhtml.el
>
> Jambunathan and I are still actively tuning this major addition, please
> bare with us while we are making sure everything works as expected.
>
> We still need to update the documentation and a few things.
>
> Again, thanks a lot to Jambunathan for this wonderful addition and for
> his patience, and also thanks to Lennart who contributed to the initial
> effort and helped make this come true.
>
> The ODT exporter will live in contrib/ for Org 7.6 -- then we will work
> on integrating it to the core, so that it can safely move to Emacs one
> day.
>
> Happy hacking and testing to everyone!
>
> --
>  Bastien
>
>


-- 
http://pft.github.com

[-- Attachment #2: Type: text/html, Size: 2587 bytes --]

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] Make org-xhtml and org-odt usable
  2011-07-01 12:04 ` [PATCH] Make org-xhtml and org-odt usable Jambunathan K
@ 2011-07-01 13:04   ` Bastien
  0 siblings, 0 replies; 6+ messages in thread
From: Bastien @ 2011-07-01 13:04 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

> The attached patch will make sure that the xhtml and odt exporter don't
> crash when invoked. Could you please apply this patch?

Done, thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Jambunathan's ODT exporter now in contrib/
  2011-07-01 12:39 ` Jambunathan's ODT exporter now in contrib/ Niels Giesen
@ 2011-07-01 13:28   ` Giovanni Ridolfi
  0 siblings, 0 replies; 6+ messages in thread
From: Giovanni Ridolfi @ 2011-07-01 13:28 UTC (permalink / raw)
  To: Niels Giesen; +Cc: Bastien, emacs-orgmode, Jambunathan K.

Niels Giesen <niels.giesen@gmail.com> writes:

Hi, Niels,
> Using latest org-mode, with org-odt included.
>
> C-c C-e O complained about not finding OrgOdtAutomaticStyles.xml.
> I patched org-odt.el to the following so that it could find it:

it was applied 22 minutes ago by Bastien.

a51c5637f9c9c8a20eaa063cd35427ffd211787d

cheers
Giovanni

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-01 13:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-01  9:37 Jambunathan's ODT exporter now in contrib/ Bastien
2011-07-01 12:00 ` Christian Moe
2011-07-01 12:04 ` [PATCH] Make org-xhtml and org-odt usable Jambunathan K
2011-07-01 13:04   ` Bastien
2011-07-01 12:39 ` Jambunathan's ODT exporter now in contrib/ Niels Giesen
2011-07-01 13:28   ` Giovanni Ridolfi

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).