From mboxrd@z Thu Jan 1 00:00:00 1970
From: "Robert P. Goldman"
Subject: [PATCH 2/5] Added trac-wiki and tikiwiki export settings.
Date: Fri, 21 Oct 2011 11:13:26 -0500
Message-ID: <1319213609-40770-3-git-send-email-rpgoldman@real-time.com>
References: <1319213609-40770-1-git-send-email-rpgoldman@real-time.com>
Return-path:
Received: from eggs.gnu.org ([140.186.70.92]:33110)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1RHHuR-000239-VK
for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 12:25:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1RHHuQ-0007Aj-8D
for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 12:25:27 -0400
Received: from enchanter.real-time.com ([63.170.91.11]:1027)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1RHHuP-00078d-RO
for emacs-orgmode@gnu.org; Fri, 21 Oct 2011 12:25:26 -0400
In-Reply-To: <1319213609-40770-1-git-send-email-rpgoldman@real-time.com>
List-Id: "General discussions about Org-mode."
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: emacs-orgmode@gnu.org
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 "\n"
:body-section-suffix "\n"
-; :body-section-prefix ("\n" "\n" "\n")
-; :body-section-suffix ("\n" "\n" "\n")
+ ; :body-section-prefix ("\n" "\n" "\n")
+ ; :body-section-suffix ("\n" "\n" "\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 "\n"
-; :body-text-suffix "\n"
+ ; :body-text-prefix "\n"
+ ; :body-text-suffix "\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 "\n"
:body-section-suffix "\n"
-; :body-section-prefix ("\n" "\n" "\n")
-; :body-section-suffix ("\n" "\n" "\n")
+ ; :body-section-prefix ("\n" "\n" "\n")
+ ; :body-section-suffix ("\n" "\n" "\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 "
\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 "%s\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