lilypond-user
[Top][All Lists]
Advanced

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

How to include unicode chars in scheme strings


From: karl
Subject: How to include unicode chars in scheme strings
Date: Tue, 19 Jan 2016 14:27:08 +0100 (CET)

http://www.lilypond.org/doc/v2.18/Documentation/notation/special-characters#ascii-aliases

say I can do:

\paper {
  #(include-special-characters)

  #(add-text-replacements!
    '(("100" . "hundred")
      ("dpi" . "dots per inch")))
}
\markup "A 100 dpi."

Fine, it works.

///

But what if I would like to include some random unicode code point
into that scheme string, like:

  #(add-text-replacements!
    '(
      ("100" . "hundred")
      ("dpi" . "dots per inch")
      (":a" . "\u00E4" )
      (":A" . "\u00C4" )
      (":o" . "\u00F6" )
      (":O" . "\u00D6" )
    ))

then lilypond fails. How should it be done ?

Regards,
/Karl Hammar

 I got the guile string syntax from:
http://www.gnu.org/software/guile/manual/html_node/String-Syntax.html#String-Syntax

 I found the codes for åäö in:
http://www.unicode.org/charts/PDF/U0080.pdf

-----------------------------------------------------------------------
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]