CVSROOT:        /cvsroot/lilypond
Module name:    lilypond
Branch:         
Changes by:     Graham Percival <[EMAIL PROTECTED]>     05/08/25 06:11:49

Modified files:
        .              : ChangeLog 
        Documentation/user: programming-interface.itely 

Log message:
        Fix example using raised text.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/ChangeLog.diff?tr1=1.4078&tr2=1.4079&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lilypond/Documentation/user/programming-interface.itely.diff?tr1=1.42&tr2=1.43&r1=text&r2=text

Patches:
Index: lilypond/ChangeLog
diff -u lilypond/ChangeLog:1.4078 lilypond/ChangeLog:1.4079
--- lilypond/ChangeLog:1.4078   Thu Aug 25 02:10:43 2005
+++ lilypond/ChangeLog  Thu Aug 25 06:11:46 2005
@@ -3,6 +3,9 @@
        * Documentation/user/advanced-notation.itely: add info about
        raising text.
 
+       * Documentation/user/programming-interface.itely: fix example
+       involving raised text.
+
 2005-08-24  Han-Wen Nienhuys  <[EMAIL PROTECTED]>
 
        * lily/beam.cc (print): fix X start/end points of isolated
Index: lilypond/Documentation/user/programming-interface.itely
diff -u lilypond/Documentation/user/programming-interface.itely:1.42 
lilypond/Documentation/user/programming-interface.itely:1.43
--- lilypond/Documentation/user/programming-interface.itely:1.42        Wed Aug 
10 22:17:39 2005
+++ lilypond/Documentation/user/programming-interface.itely     Thu Aug 25 
06:11:49 2005
@@ -628,15 +628,15 @@
   "Print the character name in small caps, translated to the left and
   top.  Syntax: \\character #\"name\""
   (interpret-markup layout props 
-   (markup "" #:translate (cons -3 1) #:smallcaps name)))
+   (markup #:hspace 0 #:translate (cons -3 1) #:smallcaps name)))
 @end example
 
 There is one complication that needs explanation: texts above and below
 the staff are moved vertically to be at a certain distance (the
 @code{padding} property) from the staff and the notes.  To make sure
 that this mechanism does not annihilate the vertical effect of our
[EMAIL PROTECTED]:translate}, we add an empty string (@code{""}) before the
-translated text.  Now the @code{""} will be put above the notes, and the
[EMAIL PROTECTED]:translate}, we add an empty string (@code{#:hspace 0}) before 
the
+translated text.  Now the @code{#:hspace 0} will be put above the notes, and 
the
 @code{name} is moved in relation to that empty string.  The net effect is
 that the text is moved to the upper left.
 
@@ -665,7 +665,7 @@
   "Print the character name in small caps, translated to the left and
   top.  Syntax: \\character #\"name\""
   (interpret-markup layout props 
-   (markup "" #:translate (cons -3 1) #:smallcaps name)))
+   (markup #:hspace 0 #:translate (cons -3 1) #:smallcaps name)))
 
 {
   c''^\markup \character #"Cleopatra" c'' c'' c''


_______________________________________________
Lilypond-cvs mailing list
Lilypond-cvs@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-cvs

Reply via email to