----- Original Message ----- From: "Johan Vromans" <jvrom...@squirrel.nl>
To: <lilypond-user@gnu.org>
Sent: Wednesday, May 11, 2016 11:19 AM
Subject: Re: Using strings and other types to return markup


On Wed, 11 May 2016 09:31:28 +0000 (UTC)
Phil Holmes <m...@philholmes.net> wrote:

I want to create a function in scheme that will take a string argument
something like "san~t" and return a markup which will place the tilde
above the n.

Why not just write saƱt ? Lilypond understands unicode.


1.  I didn't know that character existed.
2. It's a bit more complicated, though. 16th century printers have a habit of eliding an n from a word and instead putting what looks like (but might not be) a tiny tilde above the previous letter to show this. So I want the tilde to be (a) much smaller than the letter, and (b) to be able to be placed over any other letter. I would assume your solution would answer (b) (if I had a list of unicode characters with tildes over them to hand) but probably not (a). It would, however, have saved me about 5 hours of tinkering with scheme :-o

\markup { "sant ->" \concat { &s; \combine a \translate #'(0.2 . 1.1) \fontsize #-6 ~ t } }


--
Phil Holmes

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to