[Top][All Lists]

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

Re: insertion of UTF-8 characters

From: Trevor Daniels
Subject: Re: insertion of UTF-8 characters
Date: Tue, 14 Oct 2008 09:32:20 +0100


It has to be within a \markup and not in quotes.  And xc2a9 should be 00a9.


   c'4^\markup { #(ly:export (ly:wide-char->utf-8 #x00a9)) }

or just

   \markup { "Copyright 2008" #(ly:export (ly:wide-char->utf-8 #x00a9)) }

outside the score block to place it in text, or for the copyright line, try

   copyright = \markup { #(ly:export (ly:wide-char->utf-8 #x00a9)) "2008" }


----- Original Message ----- From: "Tom Cloyd" <address@hidden>
To: "Lilypond" <address@hidden>
Sent: Tuesday, October 14, 2008 2:08 AM
Subject: insertion of UTF-8 characters

The documentation [/Lilypond notation reference.pdf/, “3.3.3 Text encoding”, pdf p. 318.] states that UTF-8 coding is used in Ly and that UTF-8 hex codes can be inserted into text. An example is given, and I show it here using the code of interest to me - that for the Copyright sign:

#(ly:export (ly:wide-char->utf-8 #xc2a9))|

|This example has no context, and when I put it in one I cannot get it to work. I suggest that the documentation be modified to give one. Meanwhile, I need a solution to the problem of how to insert a Copyright sign into the copyright line. Here's what I tried:

\header {...
copyright = "#(ly:export (ly:wide-char->utf-8 #xc2a9)) 2008"

It produced this in the PDF output:

#(ly:export (ly:wide-char->utf-8 #xc2a9)) 2008

Placing the UTF code export line outside of the quotes wouldn't even compile.

Can anyone suggest how to do this?





Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< address@hidden >> (email)
<< >> (website) << >> (mental health weblog)

lilypond-user mailing list

reply via email to

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