[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Eric Schulte [EMAIL PROTECTED] writes: 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. snip #+begin_ditaa blue.png -r -S +-+ | cBLU| | | |++ ||cPNK| ||| +++ #+end_ditaa Hi Eric, Just out of curiosity is there a reason you chose to use lowercase for #+begin_ and #+end_ tags? I think the org-mode tags are all uppercase only and it feels a little strange having to remember which ones are supposed to be upper/lower case when playing with this utility. Great job by the way - I think this ditaa export is really cool! Regards, Bernt ___ 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
Re: [Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
On Nov 14, 2008, at 3:54 PM, Bernt Hansen wrote: Eric Schulte [EMAIL PROTECTED] writes: 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. snip #+begin_ditaa blue.png -r -S +-+ | cBLU| | | |++ ||cPNK| ||| +++ #+end_ditaa Hi Eric, Just out of curiosity is there a reason you chose to use lowercase for #+begin_ and #+end_ tags? I think the org-mode tags are all uppercase only and it feels a little strange having to remember which ones are supposed to be upper/lower case when playing with this utility. I would like blocks to be defined so that you can use both upper and lower case, and I hope that most of Org works like this (please report this as a bug if is case dependent under some circumstances). - Carsten ___ 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
Re: [Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Carsten Dominik [EMAIL PROTECTED] writes: I would like blocks to be defined so that you can use both upper and lower case, and I hope that most of Org works like this (please report this as a bug if is case dependent under some circumstances). :) I've only every used all uppercase for org blocks since that is all I have ever seen in the examples. I never actually tried lowercase org blocks until now -- and the one I tried (BEGIN_EXAMPLE) didn't care about case so that works fine. Thanks! Bernt ___ 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
[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Eric Schulte schulte.eric at gmail.com writes: 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. If you want to grab the org-exp-block.el file from http://github.com/eschulte/org-contrib/tree/master/org-exp-blocks.el you can use it to export ditaa blocks to images when exporting an org file to html. There are instruction in the top of the elisp file, mainly you just need to load the file, and set `ditaa-jar-path' to the path to ditaa.jar on your system. Thanks, that was almost exactly what I wanted, I'm trying to make three changes though: * First I want to keep the ASCII-image in the original file for easy updating * Second, and as a result of the above, I don't automatically include a link to the file. I know what's being called so that's no big deal to manually add * Third (and here I've not yet succeded) I want to inhibit org-mode from exporting the now still lingering ASCII-image. I've tried using comment blocks, but it does not work. I've just realized that I don't have the latest org-mode installed, so I'll try again. My current (non-working) block now looks like this: [[file:blue.png]] #+BEGIN_COMMENT #+begin_ditaa blue.png -r -S +-+ | cBLU| | | |++ ||cPNK| ||| +++ #+end_ditaa #+END_COMMENT Hope this is helpful. It sure is! Thanks! /Mac ___ 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
Re: [Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
On Nov 12, 2008, at 9:14 AM, Mac wrote: Eric Schulte schulte.eric at gmail.com writes: 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. If you want to grab the org-exp-block.el file from http://github.com/eschulte/org-contrib/tree/master/org-exp-blocks.el you can use it to export ditaa blocks to images when exporting an org file to html. There are instruction in the top of the elisp file, mainly you just need to load the file, and set `ditaa-jar-path' to the path to ditaa.jar on your system. Thanks, that was almost exactly what I wanted, I'm trying to make three changes though: * First I want to keep the ASCII-image in the original file for easy updating * Second, and as a result of the above, I don't automatically include a link to the file. I know what's being called so that's no big deal to manually add * Third (and here I've not yet succeded) I want to inhibit org-mode from exporting the now still lingering ASCII-image. Hi Mac, I don't think I understand. When I load Eric's code, the ASCII image is not exported. The png file is created on the fly and then *replaces* the ASCII drawing in HTML document - works beautifully for me. In fact so beautifully that I am asking the author of ditaa if we can keep a copy in the contrib directory, so that all of this will work out of the box.. - Carsten I've tried using comment blocks, but it does not work. I've just realized that I don't have the latest org-mode installed, so I'll try again. My current (non-working) block now looks like this: [[file:blue.png]] #+BEGIN_COMMENT #+begin_ditaa blue.png -r -S +-+ | cBLU| | | |++ ||cPNK| ||| +++ #+end_ditaa #+END_COMMENT Hope this is helpful. It sure is! Thanks! /Mac ___ 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 ___ 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
[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Carsten Dominik dominik at science.uva.nl writes: 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 syntax highlighting, you can use C-c ' to edit them. All you would need to do is to strip the initial colon and space when extracting the image for export. I like that suggestion! (I'm already using the colon in my files even though I currently get a dotted line at the left hand side ;-) /mac ___ 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
[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Carsten Dominik dominik at science.uva.nl writes: Hi Mac, I don't think I understand. When I load Eric's code, the ASCII image is not exported. The png file is created on the fly and then *replaces* the ASCII drawing in HTML document - works beautifully for me. H, I just installed the latest org-mode and restarted emacs and now it works for me as well... So, I don't know what i did to it before, but it works now! I'm happy! Thanks. /mac ___ 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
[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Mac xmfrw8002 at sneakemail.com writes: * First I want to keep the ASCII-image in the original file for easy updating * Second, and as a result of the above, I don't automatically include a link to the file. I know what's being called so that's no big deal to manually add * Third (and here I've not yet succeded) I want to inhibit org-mode from exporting the now still lingering ASCII-image. I've just found a workaround for the third item, placing it in a subtree and tag the subtree for export exclusion. [[file:blue.png]] ** image :noexport: #+begin_ditaa blue.png -r -S +-+ | cBLU| | | |++ ||cPNK| ||| +++ #+end_ditaa /mac ___ 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
[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Not all of them but it will (or should) adjust whatever belongs to the package you are switching. Some of those links (for me) are from a different java package. On my system I can configure java javac javadoc javah separately but some of those only have one alternative (so you can't change it) It's still better than manipulating the links by hand (I think) since you're less likely to point at incorrect packages. -Bernt Sebastian Rose [EMAIL PROTECTED] writes: Hi Bernt, will # update-alternatives --config java adjust all those links? sh$ ls -1 /etc/alternatives/java* /etc/alternatives/java /etc/alternatives/javac /etc/alternatives/javac.1.gz /etc/alternatives/javadoc /etc/alternatives/javadoc.1.gz /etc/alternatives/javah /etc/alternatives/javah.1.gz /etc/alternatives/javap /etc/alternatives/javap.1.gz /etc/alternatives/java-rmi.cgi /etc/alternatives/java_vm /etc/alternatives/javaws /etc/alternatives/javaws.1.gz Anyway, thanks for the tip. It easier than editing those links by hand and shows all the alternatives present on the system. Sebastian Bernt Hansen [EMAIL PROTECTED] writes: Sebastian Rose [EMAIL PROTECTED] writes: 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 sh$ ln -s /usr/lib/jvm/java-6-sun/bin/javac javac This is a better way to update the alternatives # update-alternatives --config java and you pick from the provided alternatives. It updates multiple links as required. -Bernt -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de ___ 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
[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Hi Bernt, will # update-alternatives --config java adjust all those links? sh$ ls -1 /etc/alternatives/java* /etc/alternatives/java /etc/alternatives/javac /etc/alternatives/javac.1.gz /etc/alternatives/javadoc /etc/alternatives/javadoc.1.gz /etc/alternatives/javah /etc/alternatives/javah.1.gz /etc/alternatives/javap /etc/alternatives/javap.1.gz /etc/alternatives/java-rmi.cgi /etc/alternatives/java_vm /etc/alternatives/javaws /etc/alternatives/javaws.1.gz Anyway, thanks for the tip. It easier than editing those links by hand and shows all the alternatives present on the system. Sebastian Bernt Hansen [EMAIL PROTECTED] writes: Sebastian Rose [EMAIL PROTECTED] writes: 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 sh$ ln -s /usr/lib/jvm/java-6-sun/bin/javac javac This is a better way to update the alternatives # update-alternatives --config java and you pick from the provided alternatives. It updates multiple links as required. -Bernt -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de ___ 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
[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Hi Bernt, I'll follow your advice for all future changes to my alternative system here. `C-c r' did it's job already :-) Thanks, Sebastian Bernt Hansen [EMAIL PROTECTED] writes: Not all of them but it will (or should) adjust whatever belongs to the package you are switching. Some of those links (for me) are from a different java package. On my system I can configure java javac javadoc javah separately but some of those only have one alternative (so you can't change it) It's still better than manipulating the links by hand (I think) since you're less likely to point at incorrect packages. -Bernt Sebastian Rose [EMAIL PROTECTED] writes: Hi Bernt, will # update-alternatives --config java adjust all those links? sh$ ls -1 /etc/alternatives/java* /etc/alternatives/java /etc/alternatives/javac /etc/alternatives/javac.1.gz /etc/alternatives/javadoc /etc/alternatives/javadoc.1.gz /etc/alternatives/javah /etc/alternatives/javah.1.gz /etc/alternatives/javap /etc/alternatives/javap.1.gz /etc/alternatives/java-rmi.cgi /etc/alternatives/java_vm /etc/alternatives/javaws /etc/alternatives/javaws.1.gz Anyway, thanks for the tip. It easier than editing those links by hand and shows all the alternatives present on the system. Sebastian Bernt Hansen [EMAIL PROTECTED] writes: Sebastian Rose [EMAIL PROTECTED] writes: 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 sh$ ln -s /usr/lib/jvm/java-6-sun/bin/javac javac This is a better way to update the alternatives # update-alternatives --config java and you pick from the provided alternatives. It updates multiple links as required. -Bernt -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de -- Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover Tel.: +49 (0)511 - 36 58 472 Fax: +49 (0)1805 - 233633 - 11044 mobil: +49 (0)173 - 83 93 417 Email: s.rose emma-stil de, sebastian_rose gmx de Http: www.emma-stil.de ___ 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
[Orgmode] Re: Export ascii-images using ditaa when targeting HTML?
Sebastian Rose [EMAIL PROTECTED] writes: 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 sh$ ln -s /usr/lib/jvm/java-6-sun/bin/javac javac This is a better way to update the alternatives # update-alternatives --config java and you pick from the provided alternatives. It updates multiple links as required. -Bernt ___ 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