emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ditaa and dot blocks with docbook export
@ 2009-05-08 15:01 Dale Smith
  2009-05-10  7:13 ` Baoqiu Cui
  0 siblings, 1 reply; 2+ messages in thread
From: Dale Smith @ 2009-05-08 15:01 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-support-for-docbook-export-for-dot-and-ditaa-blo.patch --]
[-- Type: text/x-patch, Size: 1396 bytes --]

> From 0c534df7af71e0a742a7123a14e0293da9f0e4c6 Mon Sep 17 00:00:00 2001
From: Dale Smith <dales@flexo.cle.vtiinstruments.lcl>
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


[-- Attachment #3: Type: text/plain, Size: 913 bytes --]



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

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: ditaa and dot blocks with docbook export
  2009-05-08 15:01 ditaa and dot blocks with docbook export Dale Smith
@ 2009-05-10  7:13 ` Baoqiu Cui
  0 siblings, 0 replies; 2+ messages in thread
From: Baoqiu Cui @ 2009-05-10  7:13 UTC (permalink / raw)
  To: emacs-orgmode

Hi Dale,

Dale Smith <dsmith@vtiinstruments.com> writes:

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

Thanks for making this work for DocBook exporter.  I have not tried
ditaa, but I am glad to know that everything works with DocBook with
your simple patch.

Can ditaa generate SVG images from ASCII arts?  I'll be more interested
if ditaa can generate SVN format, however it seems that it only supports
bitmap images.

I did a quick search and found that there is another project called
aafigure that can produce SVG images from ASCII arts:

   http://docutils.sourceforge.net/sandbox/cliechti/aafigure/

Does anyone know any other better tools for generating SVG images?

Thanks,
Baoqiu

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-10  7:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-08 15:01 ditaa and dot blocks with docbook export Dale Smith
2009-05-10  7:13 ` Baoqiu Cui

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