Re: Put the property of a grob in the output-attributes list

2019-12-24 Thread Stefano Troncaro
Hi Paolo, I've worked a bit on the token function and I think it's considerably improved. In the event->grob and event->output-attribute-list functions you can set what properties you want for what grob/event, making it easier to expand the funcion as needed instead of having to manually write

Re: Put the property of a grob in the output-attributes list

2019-12-23 Thread Paolo Prete
Hi Stefano, 1) I need to store in the output-attributes the "direction" of the TextScript (it says if the object is above or below the staff) I can obtain this info with map-some-music() [ by looking at (ly:music-property evt 'direction) ]. But in this way I need to set the direction in the

Re: Put the property of a grob in the output-attributes list

2019-12-22 Thread Stefano Troncaro
Hi Paolo, I'm glad you found it useful! Could you give me an example of what you want to do with TextScripts? Besides giving them an id, what properties do you need stored in the svg output attributes? El dom., 22 dic. 2019 a las 14:04, Paolo Prete () escribió: > Thank you again Stefano. This

Re: Put the property of a grob in the output-attributes list

2019-12-22 Thread Paolo Prete
Thank you again Stefano. This helps again and you will see how good it will fit in the library I'm coding. However, I can't make it work for a TextScript (either before the notevent or before the markup token). I tried also map-some-music(), but it doesn't fix it. \version "2.19.83" token =

Re: Put the property of a grob in the output-attributes list

2019-12-22 Thread Stefano Troncaro
Hi Paolo, The main problem here is that \tweak can only modify the object that is next to it, so you can tweak a NoteHead to modify an automatic beam, but to modify a beam that is created manually because of a [ in the input you need to place the tweak before the [. See: %

Put the property of a grob in the output-attributes list

2019-12-22 Thread Paolo Prete
Hello all. the following function (thanks to Stefano!) inserts the beam-thickness property of a Beam in the list of output-attributes of the corresponding SVG item. It does its job if I place the function soon before a beam symbol "[". But it doesn't work (no errors, but the output-attributes