* [babel] support plantuml
@ 2010-08-25 14:42 zwz
2010-08-25 18:25 ` Eric Schulte
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: zwz @ 2010-08-25 14:42 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 728 bytes --]
I came across Ian Yang's [[http://www.emacswiki.org/emacs/org-export-blocks-format-plantuml.el][org-export-blocks-format-plantuml]] a few days ago, which brought me in front of the
great software [[http://plantuml.sourceforge.net/][Plantuml]]. It is an open-source tool in java that allows to quickly write:
- sequence diagram,
- use case diagram,
- class diagram,
- activity diagram,
- component diagram,
- state diagram
- object diagram
using a simple and intuitive language.
Although Ian Yang's code has incorporated plantuml in org-mode by =#+BEGIN_UML= and =#+END_UML=, I think it
should be a good idea to introduce the plantuml as a new language into org-babel.
Here is the "ob-plantuml.el":
[-- Attachment #2: ob-plantuml.el --]
[-- Type: application/emacs-lisp, Size: 1887 bytes --]
[-- Attachment #3: Type: text/plain, Size: 259 bytes --]
I am not sure if it is qualified to be part of org-babel, so I just put
it here first.
In addition, I also wrote a new major mode “plantuml-mode.el” which
provides preliminary font-lock function for plantuml scripts, see http://zhangweize.wordpress.com/.
[-- Attachment #4: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [babel] support plantuml
2010-08-25 14:42 [babel] support plantuml zwz
@ 2010-08-25 18:25 ` Eric Schulte
2010-08-26 14:26 ` zwz
2010-08-26 1:44 ` Mike Gauland
2010-08-29 23:02 ` Michael Gauland
2 siblings, 1 reply; 13+ messages in thread
From: Eric Schulte @ 2010-08-25 18:25 UTC (permalink / raw)
To: zwz; +Cc: emacs-orgmode
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
zwz <zhangweize@gmail.com> writes:
> I came across Ian Yang's [[http://www.emacswiki.org/emacs/org-export-blocks-format-plantuml.el][org-export-blocks-format-plantuml]] a few days ago, which brought me in front of the
> great software [[http://plantuml.sourceforge.net/][Plantuml]]. It is an open-source tool in java that allows to quickly write:
> - sequence diagram,
> - use case diagram,
> - class diagram,
> - activity diagram,
> - component diagram,
> - state diagram
> - object diagram
>
> using a simple and intuitive language.
>
> Although Ian Yang's code has incorporated plantuml in org-mode by =#+BEGIN_UML= and =#+END_UML=, I think it
> should be a good idea to introduce the plantuml as a new language into org-babel.
>
> Here is the "ob-plantuml.el":
>
>
> I am not sure if it is qualified to be part of org-babel, so I just put
> it here first.
>
> In addition, I also wrote a new major mode “plantuml-mode.el” which
> provides preliminary font-lock function for plantuml scripts, see http://zhangweize.wordpress.com/.
> _______________________________________________
> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [babel] support plantuml
2010-08-25 18:25 ` Eric Schulte
@ 2010-08-26 14:26 ` zwz
2010-08-26 15:00 ` Rainer M Krug
2010-08-26 15:39 ` Eric Schulte
0 siblings, 2 replies; 13+ messages in thread
From: zwz @ 2010-08-26 14:26 UTC (permalink / raw)
To: emacs-orgmode
"Eric Schulte" <schulte.eric@gmail.com> 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.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: [babel] support plantuml
2010-08-26 14:26 ` zwz
@ 2010-08-26 15:00 ` Rainer M Krug
2010-08-26 17:34 ` Eric Schulte
2010-08-26 15:39 ` Eric Schulte
1 sibling, 1 reply; 13+ messages in thread
From: Rainer M Krug @ 2010-08-26 15:00 UTC (permalink / raw)
To: emacs-orgmode, Eric Schulte
-----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" <schulte.eric@gmail.com> 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: Rainer@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-----
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: [babel] support plantuml
2010-08-26 15:00 ` Rainer M Krug
@ 2010-08-26 17:34 ` Eric Schulte
2010-08-27 8:26 ` Rainer M Krug
0 siblings, 1 reply; 13+ messages in thread
From: Eric Schulte @ 2010-08-26 17:34 UTC (permalink / raw)
To: R.M.Krug; +Cc: emacs-orgmode
Rainer M Krug <r.m.krug@gmail.com> 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" <schulte.eric@gmail.com> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: [babel] support plantuml
2010-08-26 17:34 ` Eric Schulte
@ 2010-08-27 8:26 ` Rainer M Krug
0 siblings, 0 replies; 13+ messages in thread
From: Rainer M Krug @ 2010-08-27 8:26 UTC (permalink / raw)
To: Eric Schulte; +Cc: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 26/08/10 19:34, Eric Schulte wrote:
> Rainer M Krug <r.m.krug@gmail.com> 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" <schulte.eric@gmail.com> 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: Rainer@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-----
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re: [babel] support plantuml
2010-08-26 14:26 ` zwz
2010-08-26 15:00 ` Rainer M Krug
@ 2010-08-26 15:39 ` Eric Schulte
2010-08-27 11:33 ` zwz
1 sibling, 1 reply; 13+ messages in thread
From: Eric Schulte @ 2010-08-26 15:39 UTC (permalink / raw)
To: zwz; +Cc: emacs-orgmode
zwz <zhangweize@gmail.com> writes:
> "Eric Schulte" <schulte.eric@gmail.com> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [babel] support plantuml
2010-08-26 15:39 ` Eric Schulte
@ 2010-08-27 11:33 ` zwz
0 siblings, 0 replies; 13+ messages in thread
From: zwz @ 2010-08-27 11:33 UTC (permalink / raw)
To: emacs-orgmode
"Eric Schulte" <schulte.eric@gmail.com> writes:
> zwz <zhangweize@gmail.com> writes:
>
>> "Eric Schulte" <schulte.eric@gmail.com> 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. :)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [babel] support plantuml
2010-08-25 14:42 [babel] support plantuml zwz
2010-08-25 18:25 ` Eric Schulte
@ 2010-08-26 1:44 ` Mike Gauland
2010-08-26 2:47 ` Mike Gauland
2010-08-29 23:02 ` Michael Gauland
2 siblings, 1 reply; 13+ messages in thread
From: Mike Gauland @ 2010-08-26 1:44 UTC (permalink / raw)
To: emacs-orgmode
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 '<at> enduml' to '@uml' in this line:
(with-temp-file in-file (insert (concat "@startuml\n" body "\n <at> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [babel] support plantuml
2010-08-26 1:44 ` Mike Gauland
@ 2010-08-26 2:47 ` Mike Gauland
2010-08-26 14:23 ` zwz
0 siblings, 1 reply; 13+ messages in thread
From: Mike Gauland @ 2010-08-26 2:47 UTC (permalink / raw)
To: emacs-orgmode
Mike Gauland <mikelygee <at> 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [babel] support plantuml
2010-08-25 14:42 [babel] support plantuml zwz
2010-08-25 18:25 ` Eric Schulte
2010-08-26 1:44 ` Mike Gauland
@ 2010-08-29 23:02 ` Michael Gauland
2010-08-30 1:34 ` Eric Schulte
2 siblings, 1 reply; 13+ messages in thread
From: Michael Gauland @ 2010-08-29 23:02 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2010-08-30 1:34 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25 14:42 [babel] support plantuml zwz
2010-08-25 18:25 ` Eric Schulte
2010-08-26 14:26 ` zwz
2010-08-26 15:00 ` Rainer M Krug
2010-08-26 17:34 ` Eric Schulte
2010-08-27 8:26 ` Rainer M Krug
2010-08-26 15:39 ` Eric Schulte
2010-08-27 11:33 ` zwz
2010-08-26 1:44 ` Mike Gauland
2010-08-26 2:47 ` Mike Gauland
2010-08-26 14:23 ` zwz
2010-08-29 23:02 ` Michael Gauland
2010-08-30 1:34 ` Eric Schulte
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).