[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SVG in \markup Block?

From: Arle Lommel
Subject: SVG in \markup Block?
Date: Sun, 19 Jan 2020 20:41:04 -0500

I’ve got some SVG images I would like to embed in \markup blocks. I’ve been 
searching the documentation and the archives for information on how to do this, 
but without success. If it’s been discussed before, the results are getting 
lost in all of the discussion about SVG output, so I’m not finding them (and 
the search interface doesn’t easily allow complex searches).

In a nutshell, I’d like to do one of the following:

1. Use an SVG description of a shape directly in a \markup block. (I want 
something entirely portable within a single Lilypond file, rather than 
referencing external files, hence the desire to have it directly in the \markup 

2. Convert the SVG description to appropriate native Lilypond drawing commands. 
(I’m guessing this is entirely trivial for someone who knows what to do, but I 

I have no preference for which one I use, as long as I don’t have to set and 
mess with numbers by trial and error to get the right shape.

Does anyone know of anything online about how to do this?


P.S., for a concrete example of the kind of thing I want to do, I’d like to 
convert an SVG string such as this:

<path class="st0" d="M2.94,8.32L0,0h1.38L3.1,5.36L4.56,0h0.68L2.94,8.32z”/>

(This basically draws a “V”, but not all of them are this simple.)

And be able to create a \markup object so I could apply this as a custom 
articulation to a note.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]