Re: Reading files as byte array

2021-09-05 Thread Jonas Hahnfeld via Discussions on LilyPond development
Am Sonntag, dem 05.09.2021 um 23:22 +0200 schrieb Valentin Petzel: > Hello Jonas. Ly:gulp-file handles Unicode, so probably no. But even though it > would be possible to work around this (for example by parsing each char and > counting the bits) this does seem like a very messy solution for me,

Re: Reading files as byte array

2021-09-05 Thread Lukas-Fabian Moser
Would it be considered okay if we included a scheme function to read a binary file to a byte array? GUILE already supports this out of the box. Have you seen https://www.gnu.org/software/guile/manual/html_node/Binary-I_002fO.html ? Yes, of course GUILE supports this. But the problem is

Re: Guile 2 (was: Cairo plans)

2021-09-05 Thread Jean Abou Samra
Le 05/09/2021 à 22:46, Jonas Hahnfeld via Discussions on LilyPond development a écrit : Hm, when Harm brought up this point in the previous thread in May, I did not understand this to be a critical showstopper for adoption of Guile 2.2 (is it?) or I would have prioritized this over working on

Re: Reading files as byte array

2021-09-05 Thread Valentin Petzel
Hello Jonas. Ly:gulp-file handles Unicode, so probably no. But even though it would be possible to work around this (for example by parsing each char and counting the bits) this does seem like a very messy solution for me, as it goes bit stream (file) → string → bit stream, with a completely

Re: Guile 2 (was: Cairo plans)

2021-09-05 Thread Jonas Hahnfeld via Discussions on LilyPond development
Am Montag, dem 30.08.2021 um 20:01 +0200 schrieb Jean Abou Samra: > > I would highly prefer to not mix switching the default backend with > > switching to Guile 2.2 that will already be disruptive enough (yes, > > it's going slower than I had hoped...). > > > At the moment, I have trouble seeing

Re: Reading files as byte array

2021-09-05 Thread Jonas Hahnfeld via Discussions on LilyPond development
Am Sonntag, dem 05.09.2021 um 10:23 +0200 schrieb Valentin Petzel: > Hello, > > Would it be considered okay if we included a scheme function to read a binary > file to a byte array? > > This would be useful for correct handling of eps-files (which currently does > not support the actual eps

Re: Reading files as byte array

2021-09-05 Thread Valentin Petzel
Yes, of course GUILE supports this. But the problem is that this does not go through Lilypond’s path handling. So I really do not think this would be a good thing to use (of course one can use that internally, but I’m talking about a Lilypond friendly interface). Am Sonntag, 5. September 2021,

Re: Reading files as byte array

2021-09-05 Thread Han-Wen Nienhuys
On Sun, Sep 5, 2021 at 3:10 PM Valentin Petzel wrote: > Would it be considered okay if we included a scheme function to read a binary > file to a byte array? GUILE already supports this out of the box. Have you seen https://www.gnu.org/software/guile/manual/html_node/Binary-I_002fO.html ? --

Reading files as byte array

2021-09-05 Thread Valentin Petzel
Hello, Would it be considered okay if we included a scheme function to read a binary file to a byte array? This would be useful for correct handling of eps-files (which currently does not support the actual eps specification). Basically an eps-file appears to be mixed content, with some

Re: Cairo plans

2021-09-05 Thread Masamichi Hosoda
> I analyzed more closely in the issue > https://gitlab.com/lilypond/lilypond/-/issues/6172 The garbling sample I have shown has two different issues. #6172 is one of them. I created #6173 for the other one. https://gitlab.com/lilypond/lilypond/-/issues/6173