Re: Error in Extending Lilypond example

2023-02-01 Thread Jean Abou Samra
On 01/02/2023 18:05, Saul Tobin wrote:
> Oh wow really? It's the best/only documentation for several things that 
> aren't really covered in the official Extending docs. Maybe it should become 
> official? Or at least easier to find.I didn't know it existed until you 
> posted to the list about translations – it doesn't come up on Google search 
> results for Lilypond questions, at least for me.


It was my original intent to eventually make it official, but
I gave up at some point (cf. my email about translations). For
one thing, it'd be a lot of work (converting to a different markup
language and different conventions), and for another, it uses
tooling for writing, translating and publishing that really
simplify things for me and translators compared to the current
workflow in the official documentation, which reduced my motivation
for working on integrating it.

It has been listed on https://lilypond.org/manuals.html for
some time though. It is relatively recent if you count that
it remained a work in progress for quite some time, I hope
Google and the like will start picking it up.

Best,
Jean



OpenPGP_signature
Description: OpenPGP digital signature


Re: Error in Extending Lilypond example

2023-02-01 Thread Saul Tobin
Oh wow really? It's the best/only documentation for several things that
aren't really covered in the official Extending docs. Maybe it should
become official? Or at least easier to find. I didn't know it existed until
you posted to the list about translations – it doesn't come up on Google
search results for Lilypond questions, at least for me.

On Wed, Feb 1, 2023 at 2:12 AM Jean Abou Samra  wrote:

> Saul,
>
>
> Le 1 févr. 2023 à 04:16, Saul Tobin  a écrit :
>
> The fourth example engraver here:
>
> https://extending-lilypond.readthedocs.io/en/latest/extending/translation.html#fourth-engraver-example
>
> Running this code in 2.24 crashes on initializing the engraver with In
> procedure ly:spanner-set-bound!: Wrong type argument in position 3
> (expecting Item): ().
>
>
>
> Thanks for the report. I suppose you did not realize that this “Extending
> LilyPond” resource is not part of the official documentation, it’s
> something I wrote up and maintain externally (unlike the official Extending
> Manual, which lives at
> https://lilypond.org/doc/v2.24/Documentation/extending/index.html). Thus,
> any feedback you have should be sent to me privately, not to the bug list.
>
> Best,
> Jean
>
>
>


Re: Error in Extending Lilypond example

2023-02-01 Thread Jean Abou Samra
On 01/02/2023 11:12, Jean Abou Samra wrote:
> Saul,
> 
> 
>> Le 1 févr. 2023 à 04:16, Saul Tobin  a écrit :
>>
>> The fourth example engraver here:
>> https://extending-lilypond.readthedocs.io/en/latest/extending/translation.html#fourth-engraver-example
>>
>> Running this code in 2.24 crashes on initializing the engraver with In
>> procedure ly:spanner-set-bound!: Wrong type argument in position 3
>> (expecting Item): ().
> 
> 
> Thanks for the report. I suppose you did not realize that this “Extending 
> LilyPond” resource is not part of the official documentation, it’s something 
> I wrote up and maintain externally (unlike the official Extending Manual, 
> which lives at 
> https://lilypond.org/doc/v2.24/Documentation/extending/index.html 
> ). Thus, 
> any feedback you have should be sent to me privately, not to the bug list.



Should be fixed now.



OpenPGP_signature
Description: OpenPGP digital signature


Re: Error in Extending Lilypond example

2023-02-01 Thread Jean Abou Samra


> Le 1 févr. 2023 à 11:23, Thomas Morley  a écrit :
> 
> Am Mi., 1. Feb. 2023 um 04:16 Uhr schrieb Saul Tobin
> :
>> 
>> The fourth example engraver here:
>> https://extending-lilypond.readthedocs.io/en/latest/extending/translation.html#fourth-engraver-example
>> 
>> Running this code in 2.24 crashes on initializing the engraver with In
>> procedure ly:spanner-set-bound!: Wrong type argument in position 3
>> (expecting Item): ().
> 
> Fwiw, looks like (ly:context-property ctx 'currentCommandColumn) is
> not longer available in the initialize-step of an engraver.
> Not the time to bisect when and why this happened,

It’s this: 
https://gitlab.com/lilypond/lilypond/-/commit/7a09ffee2c69ab9617289afd21dae1b9198a9fee

Perfectly intentional.

Also, reading it in initialize was a bad idea in 2.22 in the first place. That 
creates a dependency on the order in which engravers are \consists-ed between 
your engraver and Paper_column_engraver. I’ll fix it by doing it in the first 
run of process-music. It should have been like that in the first place.



Re: Error in Extending Lilypond example

2023-02-01 Thread Thomas Morley
Am Mi., 1. Feb. 2023 um 04:16 Uhr schrieb Saul Tobin
:
>
> The fourth example engraver here:
> https://extending-lilypond.readthedocs.io/en/latest/extending/translation.html#fourth-engraver-example
>
> Running this code in 2.24 crashes on initializing the engraver with In
> procedure ly:spanner-set-bound!: Wrong type argument in position 3
> (expecting Item): ().

Fwiw, looks like (ly:context-property ctx 'currentCommandColumn) is
not longer available in the initialize-step of an engraver.
Not the time to bisect when and why this happened,
Here a stripped down code-example:

\version "2.24.0"

\new Voice
  \with {
\consists
#(lambda (ctx)
  (make-engraver
((initialize this-engraver)
  (newline)(display (ly:context-property ctx 'currentCommandColumn)
  }
  { b1 }

Cheers,
  Harm



Re: Error in Extending Lilypond example

2023-02-01 Thread Jean Abou Samra
Saul,


> Le 1 févr. 2023 à 04:16, Saul Tobin  a écrit :
> 
> The fourth example engraver here:
> https://extending-lilypond.readthedocs.io/en/latest/extending/translation.html#fourth-engraver-example
> 
> Running this code in 2.24 crashes on initializing the engraver with In
> procedure ly:spanner-set-bound!: Wrong type argument in position 3
> (expecting Item): ().


Thanks for the report. I suppose you did not realize that this “Extending 
LilyPond” resource is not part of the official documentation, it’s something I 
wrote up and maintain externally (unlike the official Extending Manual, which 
lives at https://lilypond.org/doc/v2.24/Documentation/extending/index.html). 
Thus, any feedback you have should be sent to me privately, not to the bug list.

Best,
Jean