emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: [PATCH] Make org-xhtml and org-odt usable
Date: Fri, 01 Jul 2011 17:34:23 +0530	[thread overview]
Message-ID: <81tyb6xl4o.fsf@gmail.com> (raw)
In-Reply-To: <87mxgyxry8.fsf@gnu.org> (Bastien's message of "Fri, 01 Jul 2011 11:37:03 +0200")

[-- 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.

-- 

  parent reply	other threads:[~2011-07-01 12:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2011-07-01 13:04   ` [PATCH] Make org-xhtml and org-odt usable Bastien
2011-07-01 12:39 ` Jambunathan's ODT exporter now in contrib/ Niels Giesen
2011-07-01 13:28   ` Giovanni Ridolfi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81tyb6xl4o.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).