Re: [Orgmode] Re: [babel] support plantuml
Thanks for pointing this out, I've just applied this fix. -- Eric Michael Gauland writes: > I've run into a minor problem using this under Microsoft Windows. One of my > machines puts a space in the temporary folder path, which causes the > redirection > to fail. I've fixed it locally by applying shell-quote-argument to in-file > and > out-file in org-bable-execute:plantuml. > > --Mike > > > > ___ > Emacs-orgmode mailing list > Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
I've run into a minor problem using this under Microsoft Windows. One of my machines puts a space in the temporary folder path, which causes the redirection to fail. I've fixed it locally by applying shell-quote-argument to in-file and out-file in org-bable-execute:plantuml. --Mike ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
"Eric Schulte" writes: > zwz writes: > >> "Eric Schulte" writes: >> >>> Hi, >>> >>> I agree plantuml certainly makes sense as a new code block type. I'd >>> like to include your ob-plantuml.el file into Org-mode/Babel, would > you >>> be willing to complete the FSF assignment process for contributing to >>> Org-mode as described at http://orgmode.org/worg/org-contribute.php? >>> >>> Thanks! -- Eric >>> >> Yes, I am glad to. >> And I just fill the form and send it. >> > > Great! > > Please do send in the form and then keep me and Carsten posted of the > progress of your FSF assignment so that we can add you to the Org-mode > contributors list when it's complete. > > I've just added ob-plantuml.el to Org-mode and pushed it up to the git > repository. It's now part of `org-babel-load-languages' so it can be > activated just like any other language, the only other configuration > required is to set the value of `org-plantuml-jar-path' to point to the > plantuml.jar file. > > I just tried this out myself and it works wonderfully. > > Thanks! -- Eric > Thank you, Eric. Org-babel is great. I use it a lot. And I am happy to give something back. :) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [babel] support plantuml
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/08/10 19:34, Eric Schulte wrote: > Rainer M Krug writes: > >> plantuml looks great - and it could save me quite a bit of work! >> >> Could you announce on the list as soon as it is uploaded to git so that >> I could try it? >> > > This is now in the Org repository. For setup and usage information see > http://eschulte.github.com/babel-dev/DONE-integrate-plantuml-support.html Thanks a lot - I'll try it out. Rainer > > Best -- Eric > >> >> Cheers, >> >> Rainer >> >> >> On 26/08/10 16:26, zwz wrote: >>> >>> "Eric Schulte" writes: >>> Hi, I agree plantuml certainly makes sense as a new code block type. I'd like to include your ob-plantuml.el file into Org-mode/Babel, would you be willing to complete the FSF assignment process for contributing to Org-mode as described at http://orgmode.org/worg/org-contribute.php? Thanks! -- Eric >>> Yes, I am glad to. >>> And I just fill the form and send it. >>> >>> >>> ___ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx3dqsACgkQoYgNqgF2egpppQCeJiUnrv8OQTWuglVVO3uzhaxK GVMAoIZX3VR3YFks2UqiBdSeumc1NdLZ =N6Tu -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [babel] support plantuml
Rainer M Krug writes: > plantuml looks great - and it could save me quite a bit of work! > > Could you announce on the list as soon as it is uploaded to git so that > I could try it? > This is now in the Org repository. For setup and usage information see http://eschulte.github.com/babel-dev/DONE-integrate-plantuml-support.html Best -- Eric > > Cheers, > > Rainer > > > On 26/08/10 16:26, zwz wrote: >> >> "Eric Schulte" writes: >> >>> Hi, >>> >>> I agree plantuml certainly makes sense as a new code block type. I'd >>> like to include your ob-plantuml.el file into Org-mode/Babel, would you >>> be willing to complete the FSF assignment process for contributing to >>> Org-mode as described at http://orgmode.org/worg/org-contribute.php? >>> >>> Thanks! -- Eric >>> >> Yes, I am glad to. >> And I just fill the form and send it. >> >> >> ___ >> Emacs-orgmode mailing list >> Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [babel] support plantuml
zwz writes: > "Eric Schulte" writes: > >> Hi, >> >> I agree plantuml certainly makes sense as a new code block type. I'd >> like to include your ob-plantuml.el file into Org-mode/Babel, would you >> be willing to complete the FSF assignment process for contributing to >> Org-mode as described at http://orgmode.org/worg/org-contribute.php? >> >> Thanks! -- Eric >> > Yes, I am glad to. > And I just fill the form and send it. > Great! Please do send in the form and then keep me and Carsten posted of the progress of your FSF assignment so that we can add you to the Org-mode contributors list when it's complete. I've just added ob-plantuml.el to Org-mode and pushed it up to the git repository. It's now part of `org-babel-load-languages' so it can be activated just like any other language, the only other configuration required is to set the value of `org-plantuml-jar-path' to point to the plantuml.jar file. I just tried this out myself and it works wonderfully. Thanks! -- Eric > > > ___ > Emacs-orgmode mailing list > Please 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 Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [babel] support plantuml
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 plantuml looks great - and it could save me quite a bit of work! Could you announce on the list as soon as it is uploaded to git so that I could try it? Cheers, Rainer On 26/08/10 16:26, zwz wrote: > > "Eric Schulte" writes: > >> Hi, >> >> I agree plantuml certainly makes sense as a new code block type. I'd >> like to include your ob-plantuml.el file into Org-mode/Babel, would you >> be willing to complete the FSF assignment process for contributing to >> Org-mode as described at http://orgmode.org/worg/org-contribute.php? >> >> Thanks! -- Eric >> > Yes, I am glad to. > And I just fill the form and send it. > > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel:+33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkx2gZIACgkQoYgNqgF2egpMlACfT/Fyjdp96sAZQm/2Dpy3UWuD kWMAni75HMFarehwpyQ1YOEjrbK2oso5 =5sCz -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
"Eric Schulte" writes: > Hi, > > I agree plantuml certainly makes sense as a new code block type. I'd > like to include your ob-plantuml.el file into Org-mode/Babel, would you > be willing to complete the FSF assignment process for contributing to > Org-mode as described at http://orgmode.org/worg/org-contribute.php? > > Thanks! -- Eric > Yes, I am glad to. And I just fill the form and send it. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
Mike Gauland writes: > Mike Gauland gmail.com> writes: > >> I can get an image if I evaluate the block manually (e.g., via 'C-c > C-c' with >> the cursor on the BEGIN block), but when I export the file the image > is >> invalid. > > I figured it out. I was getting extra carriage returns in the file. I've > fixed > them by setting "coding-system-for-write" to 'no-conversion within the > (let). > > --Mike > I also encountered the same problem. But it seems not work perfectly by letting "coding-system-for-write" be 'no-conversion. For example: In my "test.org" * test #+BEGIN_SRC plantuml :file test.png Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response #+END_SRC #+BEGIN_SRC plantuml :file test2.png Alice2 -> Bob: Authentication Request Bob --> Alice: Authentication Response #+END_SRC C-c C-c on the second src block does not create a right image. So here is a new version of "ob-plantuml.el", which utilizes the io redirection in shell directly. Hope that it addresses the problem. ob-plantuml.el Description: application/emacs-lisp ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
Mike Gauland gmail.com> writes: > I can get an image if I evaluate the block manually (e.g., via 'C-c C-c' with > the cursor on the BEGIN block), but when I export the file the image is > invalid. I figured it out. I was getting extra carriage returns in the file. I've fixed them by setting "coding-system-for-write" to 'no-conversion within the (let). --Mike ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [babel] support plantuml
This looks very useful, but I'm having trouble getting it to work. Do you have an example? I tried this: #+BEGIN_SRC plantuml :file uml.png Alice -> Bob: Authentication Request Bob --> Alice: Authentication Response Alice -> Bob: Another authentication Request Alice <-- Bob: another authentication Response #+END_SRC If I also change ' enduml' to '@uml' in this line: (with-temp-file in-file (insert (concat "@startuml\n" body "\n enduml"))) I can get an image if I evaluate the block manually (e.g., via 'C-c C-c' with the cursor on the BEGIN block), but when I export the file the image is invalid. Any suggestions would be appreciated. Thanks, Mike ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode