public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* plantuml in emacs org-mode - Help!
@ 2019-01-27 18:09 Rob Torop
  2019-01-27 21:49 ` Ken Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Rob Torop @ 2019-01-27 18:09 UTC (permalink / raw)
  To: cygwin

I can't get embedded plantuml to work, and I'm *sure* it's a windows path
kind of problem because I get

     *Could not find plantuml.jar at c:\cygwin64\home\  ....* *(see below
for path)*

I can see where this arises in the source, and I'm sure I just need to
change a few variables to have it work.  If you know how to do it, please
let me know! What's odd is that the source seems to check the validity of
the jar path only if system-type is not cygwin :-(

Specifically, I want to have something like


*#+begin_src plantuml :file blah.png *
*a->b*
*#+end_src*

and then export to html using C-c  C-e h h (or show inline with C-c C-c)

In my .emacs, I  added *(plantuml . t)* to my list of babel languages to
load, and I've got

*(setq  org-plantuml-jar-path
"c:\\cygwin64\\home\\myid\lib\\plantuml.1.2018.8.jar")*

since when using cygwin, the jar is at ~/lib/plantuml.1.2018.8.jar

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: plantuml in emacs org-mode - Help!
  2019-01-27 18:09 plantuml in emacs org-mode - Help! Rob Torop
@ 2019-01-27 21:49 ` Ken Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Ken Brown @ 2019-01-27 21:49 UTC (permalink / raw)
  To: cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1715 bytes --]

On 1/27/2019 1:08 PM, Rob Torop wrote:
> I can't get embedded plantuml to work, and I'm *sure* it's a windows path
> kind of problem because I get
> 
>       *Could not find plantuml.jar at c:\cygwin64\home\  ....* *(see below
> for path)*
> 
> I can see where this arises in the source, and I'm sure I just need to
> change a few variables to have it work.  If you know how to do it, please
> let me know! What's odd is that the source seems to check the validity of
> the jar path only if system-type is not cygwin :-(
> 
> Specifically, I want to have something like
> 
> 
> *#+begin_src plantuml :file blah.png *
> *a->b*
> *#+end_src*
> 
> and then export to html using C-c  C-e h h (or show inline with C-c C-c)
> 
> In my .emacs, I  added *(plantuml . t)* to my list of babel languages to
> load, and I've got
> 
> *(setq  org-plantuml-jar-path
> "c:\\cygwin64\\home\\myid\lib\\plantuml.1.2018.8.jar")*
> 
> since when using cygwin, the jar is at ~/lib/plantuml.1.2018.8.jar

I think you'd be better off using a Posix path for org-plantuml-jar-path so that 
(file-exists-p org-plantuml-jar-path) will find the file.  Then, since java is a 
Windows program, you'd have to patch the elisp sources to convert the Posix path 
to a Windows path (via 'cygpath -w') in the call to java.

I can probably do this at some point and send the patch upstream, but I'm busy 
with other things at the moment and won't be able to get to it for a while.

Ken
\x03B‹KCB”\x1c›Ø›\x19[H\x1c™\^[ܝ\x1cΈ\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÜ\x1c›Ø›\x19[\Ëš\x1d^[[\x03B‘TNˆ\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ˜\KÃB‘^[ØÝ[Y[\x18]\x1a[ÛŽˆ\b\b\b\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÙ^[ØÜËš\x1d^[[\x03B•[œÝXœØÜšX™H\x1a[™›Îˆ\b\b\b\b\b\x1a\x1d\x1d\x1c\x0e‹ËØÞYÝÚ[‹˜ÛÛKÛ[\vÈÝ[œÝXœØÜšX™K\Ú[\^[\x19CBƒB

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

end of thread, other threads:[~2019-01-27 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-27 18:09 plantuml in emacs org-mode - Help! Rob Torop
2019-01-27 21:49 ` Ken Brown

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