Attached is a set of patches to the org-generic-exporter. They fix a change in the org-preprocess process that means that all uses of the org-generic export facility will crash. They also add rudimentary support for trac wiki and tikiwiki export. Finally, I have removed the HTML exporter from the org-generic export. I don't see any reason to struggle to support this, since it is done better by the core parts of org-mode. Cheers, r Table of contents: [PATCH 1/5] bind org-export-current-backend in generic exporter. [PATCH 2/5] Added trac-wiki and tikiwiki export settings. [PATCH 3/5] Kill the HTML exporter. [PATCH 4/5] Fixed section-header-prefix for trac wiki. [PATCH 5/5] Fix header prefixes for trac wiki.
This is needed for org-export-preprocess-string to function correctly. --- contrib/lisp/org-export-generic.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el index bb42b60..29e90b8 100644 --- a/contrib/lisp/org-export-generic.el +++ b/contrib/lisp/org-export-generic.el @@ -617,6 +617,7 @@ underlined headlines. The default is 3." (buffer-substring (if (org-region-active-p) (region-beginning) (point-min)) (if (org-region-active-p) (region-end) (point-max)))) + (org-export-current-backend 'org-export-generic) (lines (org-split-string (org-export-preprocess-string region -- 1.7.3.5
--- contrib/lisp/org-export-generic.el | 107 +++++++++++++++++++++++++++++++----- 1 files changed, 93 insertions(+), 14 deletions(-) diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el index 29e90b8..e3a8680 100644 --- a/contrib/lisp/org-export-generic.el +++ b/contrib/lisp/org-export-generic.el @@ -187,8 +187,8 @@ in this way, it will be wrapped." ; section prefixes/suffixes can be direct strings or lists as well :body-section-prefix "<secprefix>\n" :body-section-suffix "</secsuffix>\n" -; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") -; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") + ; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") + ; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") ; if preformated text should be included (eg, : prefixed) @@ -263,28 +263,28 @@ in this way, it will be wrapped." :body-header-section-numbers 3 :body-section-prefix "\n" -; :body-section-header-prefix "\n" -; :body-section-header-format "%s\n" -; :body-section-header-suffix (?\$ ?\# ?^ ?\~ ?\= ?\-) + ; :body-section-header-prefix "\n" + ; :body-section-header-format "%s\n" + ; :body-section-header-suffix (?\$ ?\# ?^ ?\~ ?\= ?\-) :body-section-header-prefix ("" "" "" "* " " + " " - ") :body-section-header-format "%s\n" :body-section-header-suffix (?~ ?= ?- "\n" "\n" "\n") -; :body-section-marker-prefix "" -; :body-section-marker-chars (?\$ ?\# ?^ ?\~ ?\= ?\-) -; :body-section-marker-suffix "\n" + ; :body-section-marker-prefix "" + ; :body-section-marker-chars (?\$ ?\# ?^ ?\~ ?\= ?\-) + ; :body-section-marker-suffix "\n" :body-line-export-preformated t :body-line-format "%s\n" :body-line-wrap 75 -; :body-text-prefix "<t>\n" -; :body-text-suffix "</t>\n" + ; :body-text-prefix "<t>\n" + ; :body-text-suffix "</t>\n" :body-bullet-list-prefix (?* ?+ ?-) -; :body-bullet-list-suffix (?* ?+ ?-) + ; :body-bullet-list-suffix (?* ?+ ?-) ) ;; @@ -350,8 +350,8 @@ in this way, it will be wrapped." :body-section-prefix "<secprefix>\n" :body-section-suffix "</secsuffix>\n" -; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") -; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") + ; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") + ; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") :body-line-export-preformated t :body-line-format "%s\n" @@ -360,7 +360,7 @@ in this way, it will be wrapped." :body-text-suffix "</p>\n" :body-bullet-list-prefix (?* ?+ ?-) -; :body-bullet-list-suffix (?* ?+ ?-) + ; :body-bullet-list-suffix (?* ?+ ?-) ) ;; @@ -429,6 +429,85 @@ in this way, it will be wrapped." :body-list-format "<t>%s</t>\n" ) + ("trac-wiki" + :file-suffix ".txt" + :key-binding ?T + + ;; lifted from wikipedia exporter + :header-prefix "" + :header-suffix "" + + :title-format "= %s =\n" + + :date-export nil + + :toc-export nil + + :body-header-section-numbers nil + :body-section-prefix "\n" + + :body-section-header-prefix ("== " "=== " "==== " + "===== " "====== " "======= ") + :body-section-header-suffix (" ==\n\n" " ===\n\n" " ====\n\n" + " =====\n\n" " ======\n\n" " =======\n\n") + + :body-line-export-preformated t ;; yes/no/maybe??? + :body-line-format "%s\n" + :body-line-wrap 75 + + :body-line-fixed-format " %s\n" + + :body-list-format " * %s\n" + :body-number-list-format " # %s\n" + ;; :body-list-prefix "LISTSTART" + ;; :body-list-suffix "LISTEND" + + ;; this is ignored! [2010/02/02:rpg] + :body-bullet-list-prefix ("* " "** " "*** " "**** " "***** ") + ) + ("tikiwiki" + :file-suffix ".txt" + :key-binding ?U + + ;; lifted from wikipedia exporter + :header-prefix "" + :header-suffix "" + + :title-format "-= %s =-\n" + + :date-export nil + + :toc-export nil + + :body-header-section-numbers nil + :body-section-prefix "\n" + + :body-section-header-prefix ("! " "!! " "!!! " "!!!! " + "!!!!! " "!!!!!! " "!!!!!!! ") + :body-section-header-suffix (" \n" " \n" " \n" + " \n" " \n" " \n") + + + :body-line-export-preformated t ;; yes/no/maybe??? + :body-line-format "%s " + :body-line-wrap nil + + :body-line-fixed-format " %s\n" + + :body-list-format "* %s\n" + :body-number-list-format "# %s\n" + ;; :body-list-prefix "LISTSTART" + ;; :body-list-suffix "LISTEND" + :blockquote-start "\n^\n" + :blockquote-end "^\n\n" + :body-newline-paragraph "\n" + :bold-format "__%s__" + :italic-format "''%s''" + :underline-format "===%s===" + :strikethrough-format "--%s--" + :code-format "-+%s+-" + :verbatim-format "~pp~%s~/pp~" + ) ) "A assoc list of property lists to specify export definitions" ) -- 1.7.3.5
This is done better in core org-mode. --- contrib/lisp/org-export-generic.el | 41 ------------------------------------ 1 files changed, 0 insertions(+), 41 deletions(-) diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el index e3a8680..15afe6a 100644 --- a/contrib/lisp/org-export-generic.el +++ b/contrib/lisp/org-export-generic.el @@ -322,47 +322,6 @@ in this way, it will be wrapped." :body-bullet-list-prefix ("* " "** " "*** " "**** " "***** ") ) - - ;; - ;; minimal html exporter - ;; - ("html" - ;; simple html output - :file-suffix ".html" - :key-binding ?h - - :header-prefix "<body>" - - :title-format "<h1>%s</h1>\n\n" - - :date-export t - :date-format "<br /><b>Date:</b> <i>%s</i><br />\n\n" - - :toc-export nil - - :body-header-section-numbers 3 - - :body-section-header-prefix ("<h1>" "<h2>" "<h3>" - "<h4>" "<h5>" "<h6>") - :body-section-header-format "%s" - :body-section-header-suffix ("</h1>\n" "</h2>\n" "</h3>\n" - "</h4>\n" "</h5>\n" "</h6>\n") - - :body-section-prefix "<secprefix>\n" - :body-section-suffix "</secsuffix>\n" - ; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") - ; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") - - :body-line-export-preformated t - :body-line-format "%s\n" - - :body-text-prefix "<p>\n" - :body-text-suffix "</p>\n" - - :body-bullet-list-prefix (?* ?+ ?-) - ; :body-bullet-list-suffix (?* ?+ ?-) - ) - ;; ;; internet-draft .xml for xml2rfc exporter ;; -- 1.7.3.5
--- contrib/lisp/org-export-generic.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el index 15afe6a..5a5af14 100644 --- a/contrib/lisp/org-export-generic.el +++ b/contrib/lisp/org-export-generic.el @@ -405,8 +405,8 @@ in this way, it will be wrapped." :body-header-section-numbers nil :body-section-prefix "\n" - :body-section-header-prefix ("== " "=== " "==== " - "===== " "====== " "======= ") + :body-section-header-prefix (" == " " === " " ==== " + " ===== " " ====== " " ======= ") :body-section-header-suffix (" ==\n\n" " ===\n\n" " ====\n\n" " =====\n\n" " ======\n\n" " =======\n\n") -- 1.7.3.5
trac wiki has hard limit on number of headers. Need space before macro characters in trac wiki. Add a couple of TODO comments. --- contrib/lisp/org-export-generic.el | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el index 5a5af14..12bbcdb 100644 --- a/contrib/lisp/org-export-generic.el +++ b/contrib/lisp/org-export-generic.el @@ -87,7 +87,9 @@ ;; *** allow different open/closing prefixes ;; * properties ;; * drawers -;; * oh my +;; * Escape camel-case for wiki exporters. +;; * Adjust to depth limits on headers --- need to roll-over from headers +;; to lists, as per other exporters ;; * optmization (many plist extracts should be in let vars) ;; * define defcustom spec for the specifier list ;; * fonts: at least monospace is not handled at all here. @@ -406,7 +408,7 @@ in this way, it will be wrapped." :body-section-prefix "\n" :body-section-header-prefix (" == " " === " " ==== " - " ===== " " ====== " " ======= ") + " ===== " ) :body-section-header-suffix (" ==\n\n" " ===\n\n" " ====\n\n" " =====\n\n" " ======\n\n" " =======\n\n") -- 1.7.3.5
>>>>> On Fri, 21 Oct 2011 11:13:24 -0500, "Robert P. Goldman" <rpgoldman@real-time.com> said: RPG> Attached is a set of patches to the org-generic-exporter. They fix RPG> a change in the org-preprocess process that means that all uses of RPG> the org-generic export facility will crash. They also add RPG> rudimentary support for trac wiki and tikiwiki export. Finally, I RPG> have removed the HTML exporter from the org-generic export. I RPG> don't see any reason to struggle to support this, since it is done RPG> better by the core parts of org-mode. Glad to see someone tinkering with it! yay! FYI, the reason the HTML was in there was for proof of concept more than anything else. It was a learning example for those wishing to write their own exports, as HTML is known by lots of people and demonstrated what you could do with it. [especially if you wanted hand-crafted html] -- Wes Hardaker My Pictures: http://capturedonearth.com/ My Thoughts: http://pontifications.hardakers.net/
Hi Wes,
Wes Hardaker <wjhns209@hardakers.net> writes:
> RPG> Attached is a set of patches to the org-generic-exporter. They fix
> RPG> a change in the org-preprocess process that means that all uses of
> RPG> the org-generic export facility will crash. They also add
> RPG> rudimentary support for trac wiki and tikiwiki export. Finally, I
> RPG> have removed the HTML exporter from the org-generic export. I
> RPG> don't see any reason to struggle to support this, since it is done
> RPG> better by the core parts of org-mode.
>
> Glad to see someone tinkering with it! yay!
Could you test Robert's patches against latest Org and report
any problem? As the author of the generic exporter, you might
spot problems more easily...
Thanks!
--
Bastien
On 10/21/11 Oct 21 -12:06 PM, Wes Hardaker wrote:
>>>>>> On Fri, 21 Oct 2011 11:13:24 -0500, "Robert P. Goldman" <rpgoldman@real-time.com> said:
>
> RPG> Attached is a set of patches to the org-generic-exporter. They fix
> RPG> a change in the org-preprocess process that means that all uses of
> RPG> the org-generic export facility will crash. They also add
> RPG> rudimentary support for trac wiki and tikiwiki export. Finally, I
> RPG> have removed the HTML exporter from the org-generic export. I
> RPG> don't see any reason to struggle to support this, since it is done
> RPG> better by the core parts of org-mode.
>
> Glad to see someone tinkering with it! yay!
>
> FYI, the reason the HTML was in there was for proof of concept more than
> anything else. It was a learning example for those wishing to write
> their own exports, as HTML is known by lots of people and demonstrated
> what you could do with it. [especially if you wanted hand-crafted html]
Hm. Well, we could certainly just skip that patch, and apply only the
others to org-mode, if we want to keep it.
The problem with doing that is that when I am fixing things (e.g., I am
working to make links work with various wiki export formats), I don't
have the energy to maintain the HTML backend. So it's likely to
bit-rot, which would make it turn into a /bad/ exemplar.
What do you think?
I think also we should try to assemble a single org document with all
kinds of markup that are expected to work, and use that to make tests.
An export facility is actually easy to regression test.... I just
haven't gotten around to it. Do you know if there is such a document
for one of the other exporters that I could piggyback on?
Best,
r
> I think also we should try to assemble a single org document with all > kinds of markup that are expected to work, and use that to make tests. > An export facility is actually easy to regression test.... I just > haven't gotten around to it. Do you know if there is such a document > for one of the other exporters that I could piggyback on? http://repo.or.cz/w/org-mode/org-jambu.git/tree/refs/heads/private:/contrib/odt/tests --
Patch 996 (http://patchwork.newartisans.com/patch/996/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C1319213609-40770-2-git-send-email-rpgoldman%40real-time.com%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O,1/5] bind org-export-current-backend in generic exporter. > Date: Fri, 21 Oct 2011 21:13:25 -0000 > From: Robert P. Goldman <rpgoldman@real-time.com> > X-Patchwork-Id: 996 > Message-Id: <1319213609-40770-2-git-send-email-rpgoldman@real-time.com> > To: emacs-orgmode@gnu.org > Cc: "Robert P. Goldman" <rpgoldman@real-time.com> > > This is needed for org-export-preprocess-string to function correctly. > > --- > contrib/lisp/org-export-generic.el | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el > index bb42b60..29e90b8 100644 > --- a/contrib/lisp/org-export-generic.el > +++ b/contrib/lisp/org-export-generic.el > @@ -617,6 +617,7 @@ underlined headlines. The default is 3." > (buffer-substring > (if (org-region-active-p) (region-beginning) (point-min)) > (if (org-region-active-p) (region-end) (point-max)))) > + (org-export-current-backend 'org-export-generic) > (lines (org-split-string > (org-export-preprocess-string > region >
Patch 999 (http://patchwork.newartisans.com/patch/999/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C1319213609-40770-3-git-send-email-rpgoldman%40real-time.com%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O,2/5] Added trac-wiki and tikiwiki export settings. > Date: Fri, 21 Oct 2011 21:13:26 -0000 > From: Robert P. Goldman <rpgoldman@real-time.com> > X-Patchwork-Id: 999 > Message-Id: <1319213609-40770-3-git-send-email-rpgoldman@real-time.com> > To: emacs-orgmode@gnu.org > Cc: "Robert P. Goldman" <rpgoldman@real-time.com> > > --- > contrib/lisp/org-export-generic.el | 107 +++++++++++++++++++++++++++++++----- > 1 files changed, 93 insertions(+), 14 deletions(-) > > > diff --git a/contrib/lisp/org-export-generic.el b/contrib/lisp/org-export-generic.el > index 29e90b8..e3a8680 100644 > --- a/contrib/lisp/org-export-generic.el > +++ b/contrib/lisp/org-export-generic.el > @@ -187,8 +187,8 @@ in this way, it will be wrapped." > ; section prefixes/suffixes can be direct strings or lists as well > :body-section-prefix "<secprefix>\n" > :body-section-suffix "</secsuffix>\n" > -; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") > -; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") > + ; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") > + ; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") > > > ; if preformated text should be included (eg, : prefixed) > @@ -263,28 +263,28 @@ in this way, it will be wrapped." > :body-header-section-numbers 3 > :body-section-prefix "\n" > > -; :body-section-header-prefix "\n" > -; :body-section-header-format "%s\n" > -; :body-section-header-suffix (?\$ ?\# ?^ ?\~ ?\= ?\-) > + ; :body-section-header-prefix "\n" > + ; :body-section-header-format "%s\n" > + ; :body-section-header-suffix (?\$ ?\# ?^ ?\~ ?\= ?\-) > > :body-section-header-prefix ("" "" "" "* " " + " " - ") > :body-section-header-format "%s\n" > :body-section-header-suffix (?~ ?= ?- "\n" "\n" "\n") > > -; :body-section-marker-prefix "" > -; :body-section-marker-chars (?\$ ?\# ?^ ?\~ ?\= ?\-) > -; :body-section-marker-suffix "\n" > + ; :body-section-marker-prefix "" > + ; :body-section-marker-chars (?\$ ?\# ?^ ?\~ ?\= ?\-) > + ; :body-section-marker-suffix "\n" > > :body-line-export-preformated t > :body-line-format "%s\n" > :body-line-wrap 75 > > -; :body-text-prefix "<t>\n" > -; :body-text-suffix "</t>\n" > + ; :body-text-prefix "<t>\n" > + ; :body-text-suffix "</t>\n" > > > :body-bullet-list-prefix (?* ?+ ?-) > -; :body-bullet-list-suffix (?* ?+ ?-) > + ; :body-bullet-list-suffix (?* ?+ ?-) > ) > > ;; > @@ -350,8 +350,8 @@ in this way, it will be wrapped." > > :body-section-prefix "<secprefix>\n" > :body-section-suffix "</secsuffix>\n" > -; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") > -; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") > + ; :body-section-prefix ("<sec1>\n" "<sec2>\n" "<sec3>\n") > + ; :body-section-suffix ("</sec1>\n" "</sec2>\n" "</sec3>\n") > > :body-line-export-preformated t > :body-line-format "%s\n" > @@ -360,7 +360,7 @@ in this way, it will be wrapped." > :body-text-suffix "</p>\n" > > :body-bullet-list-prefix (?* ?+ ?-) > -; :body-bullet-list-suffix (?* ?+ ?-) > + ; :body-bullet-list-suffix (?* ?+ ?-) > ) > > ;; > @@ -429,6 +429,85 @@ in this way, it will be wrapped." > :body-list-format "<t>%s</t>\n" > > ) > + ("trac-wiki" > + :file-suffix ".txt" > + :key-binding ?T > + > + ;; lifted from wikipedia exporter > + :header-prefix "" > + :header-suffix "" > + > + :title-format "= %s =\n" > + > + :date-export nil > + > + :toc-export nil > + > + :body-header-section-numbers nil > + :body-section-prefix "\n" > + > + :body-section-header-prefix ("== " "=== " "==== " > + "===== " "====== " "======= ") > + :body-section-header-suffix (" ==\n\n" " ===\n\n" " ====\n\n" > + " =====\n\n" " ======\n\n" " =======\n\n") > + > + :body-line-export-preformated t ;; yes/no/maybe??? > + :body-line-format "%s\n" > + :body-line-wrap 75 > + > + :body-line-fixed-format " %s\n" > + > + :body-list-format " * %s\n" > + :body-number-list-format " # %s\n" > + ;; :body-list-prefix "LISTSTART" > + ;; :body-list-suffix "LISTEND" > + > + ;; this is ignored! [2010/02/02:rpg] > + :body-bullet-list-prefix ("* " "** " "*** " "**** " "***** ") > + ) > + ("tikiwiki" > + :file-suffix ".txt" > + :key-binding ?U > + > + ;; lifted from wikipedia exporter > + :header-prefix "" > + :header-suffix "" > + > + :title-format "-= %s =-\n" > + > + :date-export nil > + > + :toc-export nil > + > + :body-header-section-numbers nil > + :body-section-prefix "\n" > + > + :body-section-header-prefix ("! " "!! " "!!! " "!!!! " > + "!!!!! " "!!!!!! " "!!!!!!! ") > + :body-section-header-suffix (" \n" " \n" " \n" > + " \n" " \n" " \n") > + > + > + :body-line-export-preformated t ;; yes/no/maybe??? > + :body-line-format "%s " > + :body-line-wrap nil > + > + :body-line-fixed-format " %s\n" > + > + :body-list-format "* %s\n" > + :body-number-list-format "# %s\n" > + ;; :body-list-prefix "LISTSTART" > + ;; :body-list-suffix "LISTEND" > + :blockquote-start "\n^\n" > + :blockquote-end "^\n\n" > + :body-newline-paragraph "\n" > + :bold-format "__%s__" > + :italic-format "''%s''" > + :underline-format "===%s===" > + :strikethrough-format "--%s--" > + :code-format "-+%s+-" > + :verbatim-format "~pp~%s~/pp~" > + ) > ) > "A assoc list of property lists to specify export definitions" > ) >
"Robert P. Goldman" <rpgoldman@real-time.com> writes:
> This is needed for org-export-preprocess-string to function correctly.
Applied, thanks.
--
Bastien
"Robert P. Goldman" <rpgoldman@real-time.com> writes:
> ---
> contrib/lisp/org-export-generic.el | 107 +++++++++++++++++++++++++++++++-----
> 1 files changed, 93 insertions(+), 14 deletions(-)
Applied, thanks.
--
Bastien
Jambunathan K <kjambunathan@gmail.com> writes:
> http://repo.or.cz/w/org-mode/org-jambu.git/tree/refs/heads/private:/contrib/odt/tests
This is a very nice test file.
Jambunathan, do you have an idea on how could we integrate an export
test suite into org-mode/test/, using ERT and (part of) your file?
--
Bastien
Hi Robert, I applied your first two patches, but 3-4-5 don't apply against current HEAD. I agree with Wes it's good to have a minimal example on how to use org-export-generic and HTML is the right choice for that; but I also agree with you that this example should not be presented as a core function of the exporter, this creates a useless maintainance burden. Could you submit a patch to document this HTML exporter on Worg ? Then I will reapply your last three patches, once you resent them to me. Please also provide correct ChangeLogs. Thanks a lot! -- Bastien
>>>>> On Fri, 21 Oct 2011 19:23:04 +0200, Bastien <bzg@altern.org> said: >> Glad to see someone tinkering with it! yay! B> Could you test Robert's patches against latest Org and report B> any problem? As the author of the generic exporter, you might B> spot problems more easily... I think they looked fine without intense study, and I trust him to fix bugs that come his way :-) Anyway, I really like the idea of an exporter test regression suite. Now.... we just need to make that happen! -- Wes Hardaker My Pictures: http://capturedonearth.com/ My Thoughts: http://pontifications.hardakers.net/
On 10/24/11 Oct 24 -9:44 AM, Wes Hardaker wrote:
>>>>>> On Fri, 21 Oct 2011 19:23:04 +0200, Bastien <bzg@altern.org> said:
>
>>> Glad to see someone tinkering with it! yay!
>
> B> Could you test Robert's patches against latest Org and report
> B> any problem? As the author of the generic exporter, you might
> B> spot problems more easily...
>
> I think they looked fine without intense study, and I trust him to fix
> bugs that come his way :-)
>
> Anyway, I really like the idea of an exporter test regression suite.
> Now.... we just need to make that happen!
The only challenge I see is the matcher. That is, I can create a test
document, based on Jambunathan's, but I don't know the best way to write
the tests. I suppose some form of regular expression is The Right Thing.
There must be a better solution, though --- I figure someone must have a
good way to match text files against expectations. I just don't know
what that way is.
cheers,
r