Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Carsten Dominik
On Nov 12, 2008, at 2:54 PM, Sebastian Rose wrote: Hi Eric, this is - hey - WOWEE, GREAT! But I ran into to problems: * Background color The background of the resulting images is black, and I don't know how to change that. Black lines on black background... I tried with leading

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Sebastian Rose
Hi Eric, this is - hey - WOWEE, GREAT! But I ran into to problems: * Background color The background of the resulting images is black, and I don't know how to change that. Black lines on black background... I tried with leading colons and without. ditaa has no option to adjust

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Sebastian Rose
Carsten Dominik [EMAIL PROTECTED] writes: ditaa has no option to adjust the background color, but if I use ditaa from the commandline, the background color is white. For what it is worth, I have no problems with the background, it is white all right. Maybe it is transparent? No, it is

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Sebastian Rose
OK, fixed. I did NOT have to adjust all the /etc/alternatives/java* stuff. Just java and javac have been changed on some updating or installation of packages depending on the free java stuff. sh$ cd /etc/alternatives/ sh$ rm java sh$ ln -s /usr/lib/jvm/java-6-sun/bin/java java sh$ rm javac

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Eric Schulte
Sebastian Rose [EMAIL PROTECTED] writes: Carsten Dominik [EMAIL PROTECTED] writes: ditaa has no option to adjust the background color, but if I use ditaa from the commandline, the background color is white. For what it is worth, I have no problems with the background, it is white all

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Sebastian Rose
Hi Eric, I used no options at all for testing. Now it works here (see my previous mail). The only problem left is now the copy problem if I change something. Seems that this happens somewhere else. I.e., not in org-exp-blocks.el, but rather in one of those: sh$ grep -Fr copy-file

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Eric Schulte
Sebastian Rose [EMAIL PROTECTED] writes: Hi Eric, I used no options at all for testing. Now it works here (see my previous mail). The only problem left is now the copy problem if I change something. Hi Sebastian, I think this is related to the -o option of the ditaa utility. Try

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Sebastian Rose
Hi Eric, sorry for being unclear. I use the -o option. The image is always created correctly. But it seems that the exporter (org-publish-attachment) refuses to overwrite existing files. Regards, Sebastian Eric Schulte [EMAIL PROTECTED] writes: Sebastian Rose [EMAIL PROTECTED] writes:

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Eric Schulte
Sebastian Rose [EMAIL PROTECTED] writes: Hi Eric, sorry for being unclear. I use the -o option. The image is always created correctly. But it seems that the exporter (org-publish-attachment) refuses to overwrite existing files. Hi Sebastian, I see now. It looks like

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Eric Schulte
I added support for the dot graphing utility (see http://www.graphviz.org/). The updated code with examples is in the github repo. Eric Schulte [EMAIL PROTECTED] writes: Hi Mac, That's an interesting utility. I have been working on an org-mode add-on for the specialized processing of

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-12 Thread Carsten Dominik
Wow, this patch is important enough for an emergency release, 6.12b. Up on the git repo now. Thanks - Carsten On Nov 12, 2008, at 9:47 PM, Eric Schulte wrote: Sebastian Rose [EMAIL PROTECTED] writes: Hi Eric, sorry for being unclear. I use the -o option. The image is always created

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-11 Thread Eric Schulte
Hi Mac, That's an interesting utility. I have been working on an org-mode add-on for the specialized processing of #+begin_* blocks. Since this is very similar to the need you expressed below, I implemented ditaa processing as one of the examples in the initial implementation of this add-on.

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-11 Thread Eric Schulte
Hi Mac, That's an interesting utility. I have been working on an org-mode add-on for the specialized processing of #+begin_* blocks. Since this is very similar to the need you expressed below, I implemented ditaa processing as one of the examples in the initial implementation of this add-on.

Re: [Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-11 Thread Carsten Dominik
Hi Eric, may I suggest the following change? If you allow the format in the block to be like this: #+begin_ditaa blue.png -r -S : +-+ : | cBLU| : | | : |++ : ||cPNK| : ||| : +++ #+end_ditaa then the ascii images will not be attacked by Org

[Orgmode] Export ascii-images using ditaa when targeting HTML?

2008-11-06 Thread Mac
I would like to convert my ASCII-images inside my document.org before exporting the document to HTML. I've found this converter, ditaa, which is a java program that takes an ASCII text file and creates a png file (http://ditaa.sourceforge.net/). I intend to find my ASCII figure, save it as a