> I was playing around with drawing regular polygons, which led to
> creating a new markup command with several configurable options.
> (Some of these options are inherited via the built-in \polygon
> command.)
> 
> There might be a few things to tighten up, but I believe it is in a
> pretty workable state.  I wish optional parameters existed for
> markup commands.  If they did, then a user could just specify the
> number of sides and omit the size.  The default size would be
> something that matches the font height, so the shape would naturally
> fit in with the surrounding text.

Very nice!  The MusicXML standard supports an `enclosure-shape` attribute:

  
https://www.w3.org/2021/06/musicxml40/musicxml-reference/data-types/enclosure-shape/

It would be very helpful to have a function that makes the polygon
enclose a text string, similar to the `\box` markup command.

And I agree with Valentin that you should completely drop the size
argument, relying on the available markup scaling commands instead.


    Werner

Reply via email to