From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dale Smith Subject: ditaa and dot blocks with docbook export Date: Fri, 08 May 2009 11:01:26 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M2Z6n-0000c1-Fq for emacs-orgmode@gnu.org; Fri, 08 May 2009 19:04:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M2Z6i-0000XM-Kb for emacs-orgmode@gnu.org; Fri, 08 May 2009 19:04:00 -0400 Received: from [199.232.76.173] (port=34226 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M2Z6i-0000XD-Fp for emacs-orgmode@gnu.org; Fri, 08 May 2009 19:03:56 -0400 Received: from [66.178.229.162] (port=24314 helo=flexo.vxitech.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M2Z6h-00008u-UY for emacs-orgmode@gnu.org; Fri, 08 May 2009 19:03:56 -0400 Received: from flexo.cle.vtiinstruments.lcl (localhost.localdomain [127.0.0.1]) by flexo.vxitech.com (8.13.1/8.13.1) with ESMTP id n48MIlV1015167 for ; Fri, 8 May 2009 18:18:48 -0400 Received: (from dales@localhost) by flexo.cle.vtiinstruments.lcl (8.13.1/8.13.1/Submit) id n48MIlcC015166 for emacs-orgmode@gnu.org; Fri, 8 May 2009 18:18:47 -0400 Resent-To: emacs-orgmode@gnu.org Resent-Message-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org --=-=-= So I was looking at http://doc.norang.ca/org-mode.html and saw the integration with ditaa, and wondered how hard that would be to get workign with the docbook exporter. Oh! There is a dot block in there too! Cool. Hmm. Lets try adding "docbookp". Boy was *that* easy! Works great. Thanks Baoqiu Cui. -Dale --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-Add-support-for-docbook-export-for-dot-and-ditaa-blo.patch > From 0c534df7af71e0a742a7123a14e0293da9f0e4c6 Mon Sep 17 00:00:00 2001 From: Dale Smith Date: Fri, 8 May 2009 10:54:49 -0400 Subject: [PATCH] Add support for docbook export for dot and ditaa blocks. --- contrib/lisp/org-exp-blocks.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/org-exp-blocks.el b/contrib/lisp/org-exp-blocks.el index 5803458..bbecd18 100644 --- a/contrib/lisp/org-exp-blocks.el +++ b/contrib/lisp/org-exp-blocks.el @@ -187,7 +187,7 @@ passed to the ditaa utility as command line arguments." (org-split-string body "\n") "\n"))) (cond - ((or htmlp latexp) + ((or htmlp latexp docbookp) (with-temp-file data-file (insert body)) (message (concat "java -jar " org-ditaa-jar-path " " args " " data-file " " out-file)) (shell-command (concat "java -jar " org-ditaa-jar-path " " args " " data-file " " out-file)) @@ -222,7 +222,7 @@ digraph data_relationships { (args (if (cdr headers) (mapconcat 'identity (cdr headers) " "))) (data-file (make-temp-file "org-ditaa"))) (cond - ((or htmlp latexp) + ((or htmlp latexp docbookp) (with-temp-file data-file (insert body)) (message (concat "dot " data-file " " args " -o " out-file)) (shell-command (concat "dot " data-file " " args " -o " out-file)) -- 1.6.0.3 --=-=-= -- Dale P. Smith dales@vtiinstruments.com 216-447-4059 x2018 216-447-8951 FAX (Company mandated disclaimer follows...) The information in this e-mail and any attachments is intended solely for use by the recipient(s) to whom this e-mail is addressed and may contain confidential and/or privileged information which is exempt from disclosure. If you are not an intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that you have received this e-mail and any attachments in error and that dissemination, distribution, review or copying of this e-mail and its attachments is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all electronic and paper copies of this e-mail as well as any attachments. Thank you. http://www.vtiinstruments.com/images/vtiemaillogo.gif --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--