lilypond-user
[Top][All Lists]
Advanced

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

Re: \n in strings causes errors


From: Mats Bengtsson
Subject: Re: \n in strings causes errors
Date: Fri, 16 Feb 2007 09:26:45 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20061206)

Try something along the lines of
copyright = \markup { \teeny \override #'(baseline-skip . 0.5) \center-align
       {  "Copyright © 1994 Michael David Crawford"
"This work is licensed under the Creative Commons Attribution-Share Alike 2.5 License."
   "To view a copy of this license, visit"
   "http://creativecommons.org/licenses/by-sa/2.5/";
   "or send a letter to"
"Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA." } }

and adjust the value after baseline-skip.

  /Mats

Michael David Crawford wrote:
Hi,

I'm using Lilypond 2.11.18-1 on Mac OS X Intel 10.4.8.

If I have the following:

\header {
    copyright = "A\nB"
}

I get the following error message, even though the Lilypond doc says strings may include newlines as \n:

programming error: FT_Get_Glyph_Name () error: invalid argument
continuing, cross fingers
programming error: Glyph has no name, but font supports glyph naming.
Skipping glyph U+1000000A, file /Applications/Lilypond/LilyPond.app/Contents/Resources/share/lilypond/current/fonts/otf//CenturySchL-Roma.otf
continuing, cross fingers

Newline is a non-printable character, so I guess the font left out its name.

What I'm really trying to do is have a multiline, single-spaced copyright message, so I can spell out the Creative Commons license as it's recommended to be printed:

    copyright = \markup { \teeny \center-align
        {  "Copyright © 1994 Michael David Crawford"
"This work is licensed under the Creative Commons Attribution-Share Alike 2.5 License."
    "To view a copy of this license, visit"
    "http://creativecommons.org/licenses/by-sa/2.5/";
    "or send a letter to"
"Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA." } }

\center-align double-spaces the lines of text, so the above takes up a lot of space. I haven't found a way yet to single-space it.

Thanks for your help,

Michael David Crawford
address@hidden
http://www.geometricvisions.com/


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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