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, a
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 that
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 the
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 unn
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
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 spe
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,
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
?
--
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 binary