Re: Piping contents of SVG directly to stdout

2022-07-19 Thread David Wright
On Mon 18 Jul 2022 at 21:35:11 (+0200), Silvain Dupertuis wrote: > Le 18.07.22 à 20:33, David Wright a écrit : > > On Mon 18 Jul 2022 at 11:28:26 (-0500), DoubleFelix wrote: > > > Actually this is exactly what I'm trying to do. My current setup uses a > > > python library called svgpathtools to ge

Re: Piping contents of SVG directly to stdout

2022-07-19 Thread DoubleFelix
Ohhh, I missed the part about Cairo not working for cross-compilation yet. My bad. On Tue, Jul 19, 2022 at 8:51 AM Jean Abou Samra wrote: > Le 19/07/2022 à 15:43, DoubleFelix a écrit : > > > > Have you installed the necessary packages as explained in > > > https://lilypond.org/doc/v2.23/Docu

Re: Piping contents of SVG directly to stdout

2022-07-19 Thread Jean Abou Samra
Le 19/07/2022 à 15:43, DoubleFelix a écrit : Have you installed the necessary packages as explained in https://lilypond.org/doc/v2.23/Documentation/contributor/requirements-for-compiling-lilypond#ubuntu Ah, I had to install a C compiler. I just found instructions for how to do that o

Re: Piping contents of SVG directly to stdout

2022-07-19 Thread DoubleFelix
> > Have you installed the necessary packages as explained in > > https://lilypond.org/doc/v2.23/Documentation/contributor/requirements-for-compiling-lilypond#ubuntu > Ah, I had to install a C compiler. I just found instructions for how to do that on SO. So now I have make install ran, so how can

Re: Piping contents of SVG directly to stdout

2022-07-19 Thread Jean Abou Samra
Le 18/07/2022 à 20:54, William a écrit : Thanks for this, David. As unfortunately my method (set \header{tagline=##f} and run lilypond -dbackend=eps —png file.ly) doesn’t work for SVGs. I haven't completely understood the discussion, but it sounds like you just want to use lilypond --svg -d

Re: Piping contents of SVG directly to stdout

2022-07-19 Thread Jean Abou Samra
Le 19/07/2022 à 04:59, DoubleFelix a écrit : So I have my Ubuntu VM setup and per the link from Jean, I've ran autogen, but when I try to do "../configure --enable-cairo-backend", it says "configure: error: no acceptable C compiler found in $PATH". How should I fix this? Have you installed t

Re: Piping contents of SVG directly to stdout

2022-07-18 Thread DoubleFelix
So I have my Ubuntu VM setup and per the link from Jean, I've ran autogen, but when I try to do "../configure --enable-cairo-backend", it says "configure: error: no acceptable C compiler found in $PATH". How should I fix this? On Mon, Jul 18, 2022 at 2:57 PM Silvain Dupertuis < silvain-dupert...@b

Re: Piping contents of SVG directly to stdout

2022-07-18 Thread Silvain Dupertuis
It'll be interesting to be able to ouput SVG directly to get snippet which can be integrated into other documents. Actually, one can get SVG files using Inkscape : import the PDF file (using PopplerCairo orption),  edit at will, select parts, crop, etc. and save as SVG. This is what I did for

Re: Piping contents of SVG directly to stdout

2022-07-18 Thread DoubleFelix
My gosh it's that simple. I feel laughably stupid right now. On Mon, Jul 18, 2022 at 1:33 PM David Wright wrote: > On Mon 18 Jul 2022 at 11:28:26 (-0500), DoubleFelix wrote: > > > > > Felix, I’m curious what you mean by cropping the file. Sounds to me > like > > > you are trying to just write a

Re: Piping contents of SVG directly to stdout

2022-07-18 Thread William
Thanks for this, David. As unfortunately my method (set \header{tagline=##f} and run lilypond -dbackend=eps —png file.ly) doesn’t work for SVGs. -William Sent from my iPhone > On Jul 18, 2022, at 14:36, David Wright wrote: > > On Mon 18 Jul 2022 at 11:28:26 (-0500), DoubleFelix wrote: >> >

Re: Piping contents of SVG directly to stdout

2022-07-18 Thread David Wright
On Mon 18 Jul 2022 at 11:28:26 (-0500), DoubleFelix wrote: > > > Felix, I’m curious what you mean by cropping the file. Sounds to me like > > you are trying to just write a small snippet of music, maybe a few > > measures, and not have the output flooded by whitespace all around the size > > of an

Re: Piping contents of SVG directly to stdout

2022-07-18 Thread DoubleFelix
To William: > Felix, I’m curious what you mean by cropping the file. Sounds to me like > you are trying to just write a small snippet of music, maybe a few > measures, and not have the output flooded by whitespace all around the size > of an A4 paper? This is also similar to what I was using lilyp

Re: Piping contents of SVG directly to stdout

2022-07-17 Thread Henning Hraban Ramm
Am 18.07.22 um 06:39 schrieb William: Felix, I’m curious what you mean by cropping the file. Sounds to me like you are trying to just write a small snippet of music, maybe a few measures, and not have the output flooded by whitespace all around the size of an A4 paper? This is also similar to w

Re: Piping contents of SVG directly to stdout

2022-07-17 Thread Andrew Bernard
File IO _expensive_ in 2022? What do you mean exactly? What sort of computer and disks are you referring to? Surely lilypond processing completely dominates any IO it does? Andrew On 16/07/2022 5:15 am, DoubleFelix wrote: Hello, I'm using lilypond to programmatically generate sheet music. I

Re: Piping contents of SVG directly to stdout

2022-07-17 Thread William
Hope you won’t mind me hopping in here a little late because this sounds similar to a project that I was using lilypond for. My workaround is, as you know, spinning up a temporary directory for the output and all the extra eps files, run lilypond, read the output file into program memory, delete

Re: Piping contents of SVG directly to stdout

2022-07-17 Thread Andrew Bernard
I'd avoid WSL like the plague. It's still half hearted, terribly slow with various filesystems and offers no advantages that I have seen so far over simply putting in Virtualbox and running full blown Linux of your choice. This is not merely my own opinion - there are dozens of websites mention

Re: Piping contents of SVG directly to stdout

2022-07-17 Thread DoubleFelix
Sorry. I think this should reply to all now. As for the example I sent, that's the barebones type. The ones I need to generate dynamically will have random notes and key signatures and what not. I'll try WSL though. I didn't even think of using that. I'll give it a go and respond here if something

Re: Piping contents of SVG directly to stdout

2022-07-17 Thread Jean Abou Samra
Again, please keep the list in the recipients. In your mail client, click "Reply to all", not "Reply". Le 17/07/2022 à 23:19, DoubleFelix a écrit : Oh I see. I looked at compiling LilyPond, but I'm windows and it seems like a pain (I have to set up some VM for a custom OS is what I got from th

Re: Piping contents of SVG directly to stdout

2022-07-17 Thread Jean Abou Samra
Hi, Please keep the list posted, which allows everyone to comment and benefit from the answers. Le 17/07/2022 à 22:11, DoubleFelix a écrit : Oh I see. Thank you! While we're here, do you have any tips for speeding up lilypond generation times? If you're using the SVG backend, it is likely t

Re: Piping contents of SVG directly to stdout

2022-07-17 Thread Jean Abou Samra
Le 15/07/2022 à 21:15, DoubleFelix a écrit : Hello, I'm using lilypond to programmatically generate sheet music. I already have a system in place to crop the SVGs, but now I need to load them in my software. I could use the default behavior of letting lilypond write to some file, and then rea