Re: Output PDF to stdout

2024-01-21 Thread Valentin Petzel
> using lilypond > -. Is it possible for lilypond to output PDF to the stdout? > > My motivation behind using lilypond in a pipeline is to speed up PDF > generation by avoiding storing intermediary files on disk. The pipeline I'd > like to implement is > cat source.ly | lintLy

Re: Output PDF to stdout

2024-01-13 Thread Hans Aikema
On 13 Jan 2024, at 02:05, Curt McDowell wrote:Have you actually tried this? LilyPond appends ".pdf" to the output filename (and ".midi"). If you try to make the fifo ending in ".pdf", you find lilypond removes the fifo before writing a new file. For the same reasons, the output file cannot be

Re: Output PDF to stdout

2024-01-12 Thread Curt McDowell
Have you actually tried this? LilyPond appends ".pdf" to the output filename (and ".midi"). If you try to make the fifo ending in ".pdf", you find lilypond removes the fifo before writing a new file. For the same reasons, the output file cannot be /dev/stdout. Maybe you could write something

Re: Output PDF to stdout

2024-01-07 Thread Raphael Mankin
On 05/01/2024 03:46, David Wright wrote: On Thu 04 Jan 2024 at 23:34:28 (+0100), Volodymyr Prokopyuk wrote: I know that lilypond can receive a source.ly file from the stdin by using lilypond -. Is it possible for lilypond to output PDF to the stdout? My motivation behind using lilypond

Re: Output PDF to stdout

2024-01-05 Thread Volodymyr Prokopyuk
Thank you very much for your thoughts! I expected that the PDF output to stdout would be difficult to implement due to multiple Lilypond backends, and, probably, is not a real bottleneck in PDF generation. It is nice to know that intermediary files are already handled by a FS cache, and can

Re: Output PDF to stdout

2024-01-04 Thread David Wright
On Thu 04 Jan 2024 at 23:34:28 (+0100), Volodymyr Prokopyuk wrote: > > I know that lilypond can receive a source.ly file from the stdin by > using lilypond > -. Is it possible for lilypond to output PDF to the stdout? > > My motivation behind using lilypond in a pipeline

Re: Output PDF to stdout

2024-01-04 Thread mskala
On Fri, 5 Jan 2024, Dr. Arne Babenhauserheide wrote: > > intermediate "files" will be written to and read from the buffer cache at > > RAM speed and only later go to the disk in the background. > > That depends on the file system and its synchronization model. I once > sped up a script to control

Re: Output PDF to stdout

2024-01-04 Thread Dr. Arne Babenhauserheide
msk...@ansuz.sooke.bc.ca writes: > On Thu, 4 Jan 2024, Volodymyr Prokopyuk wrote: > >> My motivation behind using lilypond in a pipeline is to speed up PDF >> generation by avoiding storing intermediary files on disk. The pipeline I'd > > Is that issue real? In Linux and most other operating

Re: Output PDF to stdout

2024-01-04 Thread Jean Abou Samra
This doesn't exist, sorry. It wouldn't be *that* straightforward to implement, because there are multiple code paths for output (GhostScript via API, GhostScript via subprocess, SVG backend and Cairo). I'm not even sure that direct PDF output in GhostScript's PS → PDF conversion is not going

Re: Output PDF to stdout

2024-01-04 Thread mskala
On Thu, 4 Jan 2024, Volodymyr Prokopyuk wrote: > My motivation behind using lilypond in a pipeline is to speed up PDF > generation by avoiding storing intermediary files on disk. The pipeline I'd Is that issue real? In Linux and most other operating systems, intermediate "files" will be written

Output PDF to stdout

2024-01-04 Thread Volodymyr Prokopyuk
Hi, I know that lilypond can receive a source.ly file from the stdin by using lilypond -. Is it possible for lilypond to output PDF to the stdout? My motivation behind using lilypond in a pipeline is to speed up PDF generation by avoiding storing intermediary files on disk. The pipeline I'd like