<div dir="ltr">Also, I put this library together a little while ago, as a part of WebPd : <div><br></div><div><a href="https://github.com/sebpiq/pd-fileutils">https://github.com/sebpiq/pd-fileutils</a><br></div><div><br></div>
<div style>It should work out of the box, converting pd patch to SVG</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/5 philippe boisnard <span dir="ltr"><<a href="mailto:philemon1@mac.com" target="_blank">philemon1@mac.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
an example to create html/svg from pd<br>
<br>
<br><br>
<br>
cheers<br>
<br>
p<br>
Le 5 mai 2013 à 10:53, Jonathan Wilkes a écrit :<br>
<br>
> Used can2svg from Mats Bengtsson and got a nice result. You can open it in a browser, zoom it, select text. It's about 3x larger than pd file. Probably wouldn't be too difficult to parse and turn most of the pddplinks into real links.<br>
><br>
> What happened to pdpedia? If it's still around maybe I can script this to do all the pd-ext help files and make a nice online resource. It'd probably be more powerful to parse pd files directly to svg but that's a bigger project.<br>
><br>
><br>
> -Jonathan<br>
><br>
><br>
><br>
> ----- Original Message -----<br>
>> From: Jonathan Wilkes <<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>><br>
>> To: PD List <<a href="mailto:pd-list@iem.at">pd-list@iem.at</a>><br>
>> Cc:<br>
>> Sent: Friday, May 3, 2013 1:40 PM<br>
>> Subject: [PD] pd -> svg<br>
>><br>
>> A few points:<br>
>><br>
>> * you can open svg in a browser<br>
>> * you can _zoom_ svg in a browser for decent results (it's a vector drawing)<br>
>> * in safari you can select text in an svg (but not Firefox because of a bug,<br>
>> although you can stil <ctrl-c> it)<br>
>> * much (but not all) of tk canvas has corresponding drawing instructions in<br>
>> svg. unless i'm missing something the subset of tk canvas commands used by<br>
>> Pd all have corresponding instructions in svg<br>
>><br>
>> Here's what I want to do (in Debian Wheezy):<br>
>> 1) Open pd-extended<br>
>> 2) Create new patch<br>
>> 3) Create [f]<br>
>> 4) Right click to open up float-help.pd (PDDP revised version)<br>
>> 5) Click print and save to <a href="http://test.ps" target="_blank">test.ps</a><br>
>> 6) in cli type:<br>
>> pstoedit -f plot-svg <a href="http://test.ps" target="_blank">test.ps</a> test.svg<br>
>><br>
>> But I get this error:<br>
>><br>
>> **** Warning: glyf overlaps cmap, truncating.<br>
>><br>
>> Anyone know what this means? It ends up cropping the top and bottom of the<br>
>> patch. Google search for the error doesn't help much.<br>
>><br>
>> In the future it'd probably be better to parse a *.pd file directly to<br>
>> convert to svg, but if I can convert a ps to svg like this I think I can script<br>
>> it and get some nice looking online searchable documentation with very little<br>
>> work. :)<br>
>><br>
>> -Jonathan<br>
>><br>
>><br>
>> _______________________________________________<br>
>> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
>> UNSUBSCRIBE and account-management -><br>
>> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
> <float-help.svg>_______________________________________________<br>
> <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
<br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br></div>