David Kastrup:
> k...@aspodata.se writes:
> > David Kastrup:
> >> k...@aspodata.se 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



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

Reply via email to