...and can't seem to get much output. If I use the sample file from the docs:
<code>
.PS
box "START"; arrow; circle dashed filled; arrow
circle diam 2 thickness 3 "This is a" "big, thick" "circle" dashed; up
arrow from top of last circle; ellipse "loopback" dashed
arrow dotted from left of last ellipse to top of last box
arc cw radius 1/2 from top of last ellipse; arrow
box "END"
.PE
</code>
and run
pic2plot -T GIF tmp.pic
or
pic2plot -T SVG tmp.pic
I get no error, no output, nothing. The command
pic2plot -T ps tmp.pic
will produce output, however.
Any help appreciated!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Under Windows the output of pic2plot appears empty. Why?
On Windows platforms note that the current version of pic2plot appears to be very picky about carriage return (CR - \r) characters (by default, CR is part of the platform's end of line sequence) appearing in its input file. Therefore, you will probably want to instruct your editor to create Unix-style files, or filter the files to remove the carriage return characters. The following Perl invocation is such a filter:
perl -p -e "BEGIN {binmode(STDOUT);} s/\r//"
You can remove the CR characters in-place by running:
In addition, pic2plot appears to require that the last input file be properly terminated (with a newline). Apparently, some Windows editors may leave the last line unterminated, so if your editor is in this category it may be safer to add a blank line in the end.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. Just installed plotutils for windows via installer at
http://gnuwin32.sourceforge.net/downlinks/plotutils.php
...and can't seem to get much output. If I use the sample file from the docs:
<code>
.PS
box "START"; arrow; circle dashed filled; arrow
circle diam 2 thickness 3 "This is a" "big, thick" "circle" dashed; up
arrow from top of last circle; ellipse "loopback" dashed
arrow dotted from left of last ellipse to top of last box
arc cw radius 1/2 from top of last ellipse; arrow
box "END"
.PE
</code>
and run
pic2plot -T GIF tmp.pic
or
pic2plot -T SVG tmp.pic
I get no error, no output, nothing. The command
pic2plot -T ps tmp.pic
will produce output, however.
Any help appreciated!
from http://www.spinellis.gr/sw/umlgraph/doc/faq.html#winpic
Under Windows the output of pic2plot appears empty. Why?
On Windows platforms note that the current version of pic2plot appears to be very picky about carriage return (CR - \r) characters (by default, CR is part of the platform's end of line sequence) appearing in its input file. Therefore, you will probably want to instruct your editor to create Unix-style files, or filter the files to remove the carriage return characters. The following Perl invocation is such a filter:
perl -p -e "BEGIN {binmode(STDOUT);} s/\r//"
You can remove the CR characters in-place by running:
perl -pi.bak -e "BEGIN {binmode(STDOUT);} s/\r//" FILENAME.pic
In addition, pic2plot appears to require that the last input file be properly terminated (with a newline). Apparently, some Windows editors may leave the last line unterminated, so if your editor is in this category it may be safer to add a blank line in the end.
you can also try using vim. when editing files.. using the command "set ff=unix"