Thank you, Valentin. It took me a couple hours to convert some
PostScript in one of my big projects to native \path commands, mainly
because the PostScript needed to draw outside the page margins, but I
got it done! I haven't tried it in SVG yet.

https://www.fishlet.com/wp-content/uploads/2018/09/LeCheminDeFer.pdf

Cheers,
Curt

On 2/3/24 16:18, Valentin Petzel wrote:
rather than postscript you should probably use the high level path command.
This will work with other outputs than just SVG.

So instead of

\markup\postscript #"0.17 setlinewidth -1.50 1.25 moveto 0 1.0 rlineto stroke"

do

\markup\path #0.17 #'((moveto -1.5 1.25) (rlineto 0 1))

Cheers,
Valentin

Reply via email to