[PD-dev] formatting HTML doc in Pd distro?

Christof Ressi christof.ressi at gmx.at
Mon Jul 1 13:27:19 CEST 2019


> There are a number of drawbacks with that

I already feared that...

> is to use some Tcl/Tk functionality

seems like you can save a Tcl/Tk canvas in various formats:

https://wiki.tcl-lang.org/page/Exporting+a+canvas+to+other+formats
https://wiki.tcl-lang.org/page/canvas#0360548f7e52d1d73a26464df08c34beabfea972b80fd57555ca4ca6a79ff106
https://wiki.tcl-lang.org/page/Canvas+to+SVG

Christof

> Gesendet: Montag, 01. Juli 2019 um 12:53 Uhr
> Von: "Giulio Moro" <giuliomoro at yahoo.it>
> An: pd-dev <pd-dev at lists.iem.at>, "Christof Ressi" <christof.ressi at gmx.at>
> Betreff: Re: [PD-dev] formatting HTML doc in Pd distro?
>
> > IIRC, there is some plugin which converts Pd patches to SVG graphics, so that could be one way to go. 
> 
> You may be talking of pd-fileutils?  https://github.com/sebpiq/pd-fileutils/
> 
> There are a number of drawbacks with that:
> - you cannot view subpatches (which are very often used in help patches), or use GOP
> - the number of inlets/outlets displayed is based uniquely on the number of connected patch cords, and does not necessarily reflects the characteristics of the objects
> - some of the core GUI objects are not supported (and clearly none of the GUI externals)
> 
> Because of the way the Pd GUI works, most of these issues would be exactly the same with any other rendering engine that does not fully re-implement Pd's backend. The only way I can think of to batch generate raster (or perhaps even vectorial?) renders of a Pd patch is to use some Tcl/Tk functionality (but I know nothing about Tcl/Tk), or perhaps use Purr-data as a rendering engine, which may be easier to tame and make scriptable.
> 
> 
> On Monday, 1 July 2019, 10:37:47 BST, Christof Ressi <christof.ressi at gmx.at> wrote: 
> 
> 
> One the one hand I agree with IOhannes that it's good to have the sources, on the other hand I also agree with Lucas that HTML suits itself very well for documentation. As he said, things like formulas can be included as images - which can be shipped as pre-built artifacts, or built from source, or both.
> 
> I would even go a bit further and say that it would be great if *all* Pd documentation was also available in HTML so it can be viewed in the browser and put on the homepage. IIRC, there is some plugin which converts Pd patches to SVG graphics, so that could be one way to go. 
> 
> In Supercollider, for example, all documentation is HTML, so you can read everything online: http://doc.sccode.org/. They also have their own small markup language for easy generation of class documentation. This is maybe not so relevant for Pd, as help files are just patches, but we could think about adding meta information to help files (e.g. short description, creation arguments, inlets, outlets), so we can autogenerate a short HTML reference/summary. Just thinking out loud. I have to say I really appreciate the documentation style of Supercollider and I think Pd could adapt some ideas.
> 
> Christof
> 
> > Gesendet: Montag, 01. Juli 2019 um 10:46 Uhr
> > Von: "IOhannes m zmoelnig" <zmoelnig at iem.at>
> > An: pd-dev at lists.iem.at
> > Betreff: Re: [PD-dev] formatting HTML doc in Pd distro?
> >
> > On 01.07.19 04:13, Lucas Cordiviola wrote:
> > > On 6/30/2019 10:41 PM, Miller Puckette wrote:
> > > 
> > >> The gotcha is that I can't find a way to typeset equations in native HTML...
> > > 
> > > How about making the rendered image (of the math equation) with 
> > > https://www.codecogs.com/latex/eqneditor.php and include the image in 
> > > the HTML doc. (isn't this is what Latex do when it generates an HTML 
> > > output ?)
> > 
> > no, LaTeX doesn't rely on a 3rd party service eating all your data in
> > order to create nifty images.
> > 
> > i *strongly* suggest to
> > - have **all** the sources (for *anything* generated, including images)
> > in the git-repository
> > - allow to build all artifacts automatically¹ (via the build-system)
> > 
> > i'd prefer if the repository *only* contained the sources (and no
> > artifacts), but understand that it is sometimes impractical.
> > 
> > 
> > fgmasdr
> > IOhannes
> > 
> > 
> > ¹ unless *you* volunteer to become a build-bot waiting to upload LaTeX
> > sources to whatever webservice to create images in a timely manner.
> > 
> > _______________________________________________
> > Pd-dev mailing list
> > Pd-dev at lists.iem.at
> > https://lists.puredata.info/listinfo/pd-dev
> 
> >
> 
> 
> 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
>





More information about the Pd-dev mailing list