* [PATCH 1/5] bind org-export-current-backend in generic exporter.
2011-10-21 16:13 Patches for org-generic-export Robert P. Goldman
@ 2011-10-21 16:13 ` Robert P. Goldman
2011-10-22 9:38 ` [Accepted] [O, " Bastien Guerry
2011-10-22 9:40 ` [PATCH " Bastien
2011-10-21 16:13 ` [PATCH 2/5] Added trac-wiki and tikiwiki export settings Robert P. Goldman
` (4 subsequent siblings)
5 siblings, 2 replies; 18+ messages in thread
From: Robert P. Goldman @ 2011-10-21 16:13 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Robert P. Goldman
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
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [Accepted] [O, 1/5] bind org-export-current-backend in generic exporter.
2011-10-21 16:13 ` [PATCH 1/5] bind org-export-current-backend in generic exporter Robert P. Goldman
@ 2011-10-22 9:38 ` Bastien Guerry
2011-10-22 9:40 ` [PATCH " Bastien
1 sibling, 0 replies; 18+ messages in thread
From: Bastien Guerry @ 2011-10-22 9:38 UTC (permalink / raw)
To: emacs-orgmode
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
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 1/5] bind org-export-current-backend in generic exporter.
2011-10-21 16:13 ` [PATCH 1/5] bind org-export-current-backend in generic exporter Robert P. Goldman
2011-10-22 9:38 ` [Accepted] [O, " Bastien Guerry
@ 2011-10-22 9:40 ` Bastien
1 sibling, 0 replies; 18+ messages in thread
From: Bastien @ 2011-10-22 9:40 UTC (permalink / raw)
To: Robert P. Goldman; +Cc: emacs-orgmode
"Robert P. Goldman" <rpgoldman@real-time.com> writes:
> This is needed for org-export-preprocess-string to function correctly.
Applied, thanks.
--
Bastien
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH 2/5] Added trac-wiki and tikiwiki export settings.
2011-10-21 16:13 Patches for org-generic-export Robert P. Goldman
2011-10-21 16:13 ` [PATCH 1/5] bind org-export-current-backend in generic exporter Robert P. Goldman
@ 2011-10-21 16:13 ` Robert P. Goldman
2011-10-22 9:39 ` [Accepted] [O, " Bastien Guerry
2011-10-22 9:40 ` [PATCH " Bastien
2011-10-21 16:13 ` [PATCH 3/5] Kill the HTML exporter Robert P. Goldman
` (3 subsequent siblings)
5 siblings, 2 replies; 18+ messages in thread
From: Robert P. Goldman @ 2011-10-21 16:13 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Robert P. Goldman
---
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
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [Accepted] [O, 2/5] Added trac-wiki and tikiwiki export settings.
2011-10-21 16:13 ` [PATCH 2/5] Added trac-wiki and tikiwiki export settings Robert P. Goldman
@ 2011-10-22 9:39 ` Bastien Guerry
2011-10-22 9:40 ` [PATCH " Bastien
1 sibling, 0 replies; 18+ messages in thread
From: Bastien Guerry @ 2011-10-22 9:39 UTC (permalink / raw)
To: emacs-orgmode
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"
> )
>
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [PATCH 2/5] Added trac-wiki and tikiwiki export settings.
2011-10-21 16:13 ` [PATCH 2/5] Added trac-wiki and tikiwiki export settings Robert P. Goldman
2011-10-22 9:39 ` [Accepted] [O, " Bastien Guerry
@ 2011-10-22 9:40 ` Bastien
1 sibling, 0 replies; 18+ messages in thread
From: Bastien @ 2011-10-22 9:40 UTC (permalink / raw)
To: Robert P. Goldman; +Cc: emacs-orgmode
"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
^ permalink raw reply [flat|nested] 18+ messages in thread
* [PATCH 3/5] Kill the HTML exporter.
2011-10-21 16:13 Patches for org-generic-export Robert P. Goldman
2011-10-21 16:13 ` [PATCH 1/5] bind org-export-current-backend in generic exporter Robert P. Goldman
2011-10-21 16:13 ` [PATCH 2/5] Added trac-wiki and tikiwiki export settings Robert P. Goldman
@ 2011-10-21 16:13 ` Robert P. Goldman
2011-10-21 16:13 ` [PATCH 4/5] Fixed section-header-prefix for trac wiki Robert P. Goldman
` (2 subsequent siblings)
5 siblings, 0 replies; 18+ messages in thread
From: Robert P. Goldman @ 2011-10-21 16:13 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Robert P. Goldman
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
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 4/5] Fixed section-header-prefix for trac wiki.
2011-10-21 16:13 Patches for org-generic-export Robert P. Goldman
` (2 preceding siblings ...)
2011-10-21 16:13 ` [PATCH 3/5] Kill the HTML exporter Robert P. Goldman
@ 2011-10-21 16:13 ` Robert P. Goldman
2011-10-21 16:13 ` [PATCH 5/5] Fix header prefixes " Robert P. Goldman
2011-10-21 17:06 ` OPatches for org-generic-export Wes Hardaker
5 siblings, 0 replies; 18+ messages in thread
From: Robert P. Goldman @ 2011-10-21 16:13 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Robert P. Goldman
---
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
^ permalink raw reply related [flat|nested] 18+ messages in thread
* [PATCH 5/5] Fix header prefixes for trac wiki.
2011-10-21 16:13 Patches for org-generic-export Robert P. Goldman
` (3 preceding siblings ...)
2011-10-21 16:13 ` [PATCH 4/5] Fixed section-header-prefix for trac wiki Robert P. Goldman
@ 2011-10-21 16:13 ` Robert P. Goldman
2011-10-21 17:06 ` OPatches for org-generic-export Wes Hardaker
5 siblings, 0 replies; 18+ messages in thread
From: Robert P. Goldman @ 2011-10-21 16:13 UTC (permalink / raw)
To: emacs-orgmode; +Cc: Robert P. Goldman
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
^ permalink raw reply related [flat|nested] 18+ messages in thread
* Re: OPatches for org-generic-export
2011-10-21 16:13 Patches for org-generic-export Robert P. Goldman
` (4 preceding siblings ...)
2011-10-21 16:13 ` [PATCH 5/5] Fix header prefixes " Robert P. Goldman
@ 2011-10-21 17:06 ` Wes Hardaker
2011-10-21 17:23 ` Bastien
2011-10-21 17:29 ` Robert Goldman
5 siblings, 2 replies; 18+ messages in thread
From: Wes Hardaker @ 2011-10-21 17:06 UTC (permalink / raw)
To: Robert P. Goldman; +Cc: emacs-orgmode
>>>>> 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/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: OPatches for org-generic-export
2011-10-21 17:06 ` OPatches for org-generic-export Wes Hardaker
@ 2011-10-21 17:23 ` Bastien
2011-10-24 14:44 ` Wes Hardaker
2011-10-21 17:29 ` Robert Goldman
1 sibling, 1 reply; 18+ messages in thread
From: Bastien @ 2011-10-21 17:23 UTC (permalink / raw)
To: Wes Hardaker; +Cc: Robert P. Goldman, emacs-orgmode
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
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: OPatches for org-generic-export
2011-10-21 17:23 ` Bastien
@ 2011-10-24 14:44 ` Wes Hardaker
2011-10-24 15:06 ` Robert Goldman
0 siblings, 1 reply; 18+ messages in thread
From: Wes Hardaker @ 2011-10-24 14:44 UTC (permalink / raw)
To: Bastien; +Cc: Robert P. Goldman, emacs-orgmode
>>>>> 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/
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: OPatches for org-generic-export
2011-10-24 14:44 ` Wes Hardaker
@ 2011-10-24 15:06 ` Robert Goldman
0 siblings, 0 replies; 18+ messages in thread
From: Robert Goldman @ 2011-10-24 15:06 UTC (permalink / raw)
To: Wes Hardaker; +Cc: Bastien, emacs-orgmode
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
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: OPatches for org-generic-export
2011-10-21 17:06 ` OPatches for org-generic-export Wes Hardaker
2011-10-21 17:23 ` Bastien
@ 2011-10-21 17:29 ` Robert Goldman
2011-10-21 17:34 ` Jambunathan K
2011-10-22 9:54 ` Bastien
1 sibling, 2 replies; 18+ messages in thread
From: Robert Goldman @ 2011-10-21 17:29 UTC (permalink / raw)
To: Wes Hardaker; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 18+ messages in thread