Although that one does not work out perfectly, as the tied-lyrics logic will 
only be applied if the text is a basic string. What would be necessary is a 
way to specify string-transformers for a grobs default properties, which would 
require something like

https://gitlab.com/lilypond/lilypond/-/issues/6725

(we can do this on a global level, but not on a grob level).

Am Mittwoch, 3. Juli 2024, 14:47:09 MESZ schrieb Valentin Petzel:
> Also for Lyrics you can then do
> 
> \score {
>   \new Lyrics \with {
>     \override LyricText.before-line-breaking =
>     #(lambda (grob)
>        (ly:grob-set-property! grob 'text (htmldecode (ly:grob-property grob
> 'text))))
>   } \lyricmode {
>     Thìs ïs â téşt
>   }
> }
> 
> Cheers,
> Valentin
> 
> Am Mittwoch, 3. Juli 2024, 14:31:28 MESZ schrieb Valentin Petzel:
> > Hello,
> > 
> > I’ve taken some time to create a function for decoding html-style
> > entities.
> > So instead of entering
> > 
> > \markup { á è ç â ... }
> > 
> > you can do
> > 
> > \markup\htmldecode { á è ç â ... }
> > 
> > or
> > 
> > \markup\htmldecode { "á" "è" "ç" "â" ... }
> > 
> > or
> > 
> > \markup\htmldecode { &:xE1; &:xE8; &:xE7; &:xE2; ... }
> > 
> > (I’ve added the option of using a : to specify unicode number as the
> > default # has a special meaning in Lilypond and will thus require
> > quotes.)
> > 
> > The file is quite large because it contains a mapping of entity-strings to
> > unicode entities. But simply include the file and use \htmldecode where
> > ever you need.
> > 
> > Cheers,
> > Valentin
> > 
> > Am Mittwoch, 3. Juli 2024, 11:14:52 MESZ schrieb Jean Abou Samra:
> > > Le mercredi 03 juillet 2024 à 08:26 +0100, Raphael Mankin a écrit :
> > > > Thank you. The obvious is what generally escapes one. But character
> > > > picking is a PITA. I shall have to add a French keyboard to my
> > > > layouts.
> > > > AZERTY :-(
> > > 
> > > Have you tried a Compose key?
> > > 
> > > At least under a GNOME Linux desktop, this is very easy to enable:
> > > open Settings app, select the "Keyboard" tab and click "Compose key"
> > > (under "Special Character Entry"). You can configure a key of your
> > > keyboard to be a "Compose key" which makes it insert various special
> > > characters when you type this key followed by one of many predefined
> > > sequences. For example:
> > > 
> > > Compose ' e → é
> > > Compose ` a → à
> > > Compose " i → ï
> > > Compose > a → â
> > > Compose , c → ç
> > > 
> > > This is incredibly convenient to type all sorts of unusual characters
> > > without changing your keyboard layout (for another example, I typed
> > > the arrows above with "Compose - >").

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to