lilypond-user
[Top][All Lists]
Advanced

[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 22:32:25 +0100


Neil Puttock wrote Tuesday, October 14, 2008 9:33 PM

Hi Trevor,

2008/10/14 Trevor Daniels <address@hidden>:
Tom

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

Try

  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" }

For the docs examples, I think it would be better to replace the
Scheme hack with \char, which uses ly:wide-char->utf-8 internally.

c'4^\markup { \char ##xa9 }

Absolutely!  This -was- documented, I now realise, in App B.8.6, but
I hadn't met it before.  I'll change the new examples I added today to
use it, as you suggest.  And remove the Scheme hack.  Thanks.

Regards,
Neil

Trevor





reply via email to

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