lilypond-user
[Top][All Lists]
Advanced

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

Re: Swedish letters in Lilypond lyrics?


From: karl
Subject: Re: Swedish letters in Lilypond lyrics?
Date: Tue, 19 Jan 2016 22:13:30 +0100 (CET)

David Kastrup:
> address@hidden writes:
> > David Kastrup:
> >> address@hidden writes:
> > ...
> >> > BTW, does someone know why add-text-replacements in attached file 
> >> > doesn't work ?
> >> >  I got the syntax from:
> >> > http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax
> >> That's the Guile-2.0 manual.  LilyPond uses 1.8 at the moment.
> > Hmm, so basically it can't be done.
> Nonsense.  You just need to use octal escapes for the actual UTF-8 byte
> sequences.  And you'll probably need to revisit that input once
> Guile-2.0 actually gets used: I don't think there is an obvious
> "portable" way to do it.

So, if neither of the ;-commented out lines below work, what do I do?

\paper {
  #(include-special-characters)

  #(add-text-replacements!
    '(
      ("100" . "hundred")
      ("dpi" . "dots per inch")
      ;(":a" . "\u00E4" )
      ;(":b" . "\x00\xE4" )
      ;(":c" . (list->string (\x00 \xE4)) )
      ;(":d" . $ \markup \char ##x00E4 $ )
    ))
}

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





reply via email to

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