[Top][All Lists]

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

Re: insertion of UTF-8 characters

From: Tom Cloyd
Subject: Re: insertion of UTF-8 characters
Date: Tue, 14 Oct 2008 14:51:19 -0700
User-agent: Thunderbird (X11/20080925)

Good lord above, yes! THIS is immediately understandable if one has experience with a multitude of other programming languages, whereas that other approach is exasperating nonsense.

Thanks, fellows, for chasing this one to ground.


Trevor Daniels wrote:

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

Hi Trevor,

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

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

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.



lilypond-user mailing list


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

reply via email to

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