]> git.donarmstrong.com Git - lilypond.git/commitdiff
release commit release/2.3.3
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 31 May 2004 16:02:36 +0000 (16:02 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 31 May 2004 16:02:36 +0000 (16:02 +0000)
ChangeLog
Documentation/topdocs/NEWS.texi
Documentation/user/notation.itely
VERSION
input/regression/span-bar-break.ly
lily/paper-line.cc
scm/framework-ps.scm
scm/framework-tex.scm
scripts/lilypond-book.py
stepmake/stepmake/generic-vars.make

index 795bde67699e18acc06be239a8f541c3f2e20ebb..e0c26f5b3a0f3667f9f89bfad5bbed9013b03339 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-05-31  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * stepmake/stepmake/generic-vars.make: unset LANG.
+
        * input/regression/tuplet-nest.ly: bugfix.
 
        * lily/tie-performer.cc (stop_translation_timestep): reset
index a79c2919062f84be1d61c237b937e9ec8909fbe1..25143e2ee12826e9d95d502484c8720eec0511be 100644 (file)
@@ -48,7 +48,7 @@ produces a rendered markup of the music.  An example is in
 @item LilyPond expressions can be embedded into Scheme. The syntax for
 this is @code{#@{ ... #@}}. Within such a block, Scheme forms can be
 introduced using a @code{$} character (@code{$$} results in a single
-`$' character).  These forms are then printed in the pattern.
+`$' character).  These forms are then inserted in the pattern.
 
 @example
 #(define (textoffset dx dy)
@@ -74,7 +74,7 @@ result is that
 @{ a b c @}
 @end example
 
-is the same as
+is interpreted as
 
 @example
 \header @{ title = "The Title" @}
@@ -85,21 +85,11 @@ is the same as
 @}    
 @end example
 
-Actually, a toplevel music list is now handled quite flexibly by
-@code{default-toplevel-music-handler}.  Similarly, a @code{\score}
-block at toplevel is handled by @code{default-toplevel-score-handler}
-and a @code{book} at toplevel is handled by
-@code{default-toplevel-book-handler}.  The default behavior of these
-handlers produces the results described above.
-
-@ignore
-
-@c FIXME: un-geekify
-These default handlers have the following effect.  A Music list at
-toplevel is encapsulated in a @code{score} block, and a @code{score}
-block at toplevel is encapsulated in a @code{book} block.  A
-@code{book} block at toplevel generates printed output.
-@end ignore
+This is handled by the function defined in
+@code{toplevel-music-handler}.  Similarly, @code{\score} and
+@code{\book} are handled by @code{toplevel-score-handler} and a
+@code{toplevel-book-handler}.  By changing these variables, different
+results can be obtained.
 
 
 @item Start pitch for @code{relative} music is optional for music lists.
@@ -141,24 +131,26 @@ package installed to function properly.
 @code{\encoding}. The strings for markup texts are translated
 automatically.
 
-@item The toplevel block @code{book} introduces page layout.
-A @code{book} groups @code{score} blocks into one page layout entity.
-Page layout consists of markup titles, headers and footers, and page
-breaking.  Two page breaking algorithms are available, the classic
-ragged pages (the default), and optimal page breaking
+@item The toplevel block @code{\book} introduces page layout.
+A @code{\book} groups @code{\score} blocks into one page layout
+entity. For example, two scores are combined in one book with   
 
 @example
-\paper @{
-    %% Select page breaking function.
-    %% #(define page-breaking ly:ragged-page-breaks)
-    #(define page-breaking ly:optimal-page-breaks)
-@}
 \book @{
      \score @{ ... @}
      \score @{ ... @}
 @}
 @end example
 
+Titling and page breaks are handled by LilyPond.  For automatic page
+breaking, two algorithms are available, the classic ragged pages (the
+default), and optimal page breaking.  
+Page  breaks may be inserted manually with
+@example
+  \pageBreak
+@end example
+
+@item
 The @code{lilypond} program does not generate La@TeX{} titles or page
 layout.  If you need La@TeX{} titles, you can use the
 @code{lilypond-book} program.
index 74eec643a8c5e2a8ad486d7a49d924caedd58dbc..d819668cbda53e98029ba328fef5f25381651af5 100644 (file)
@@ -3540,6 +3540,8 @@ linked. This can be achieved either by using @code{\lyricsto} or by
 setting corresponding names for both contexts. The latter is explained
 in @ref{More stanzas}.
 
+@c TODO: document \new Staff << Voice \lyricsto >> bug
+
 @node More stanzas
 @subsection More stanzas
 
diff --git a/VERSION b/VERSION
index 42fd49acf4d7ba6860f26eea79f645f12684c02e..09ea3c7f9efd655964e600b61de44683f1223868 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,6 +1,6 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=2
 MINOR_VERSION=3
-PATCH_LEVEL=2
-MY_PATCH_LEVEL=hwn1
+PATCH_LEVEL=3
+MY_PATCH_LEVEL=
 
index 479429dfa7ab08eaef892dabed6388801d5c9ddc..ac7a50d37ff921ede8982250232128fc6276156f 100644 (file)
@@ -1,13 +1,15 @@
-\version "2.2.0"
+\version "2.3.2"
 
-\header { texidoc = "At the beginning of a system,
-the @code{|:} repeat barline is drawn between the staves,
-but the @code{:|} is not."
-" }
+\header {
+
+    texidoc = "At the beginning of a system, the @code{|:} repeat
+barline is drawn between the staves, but the @code{:|} is not."
+
+      }
 
 \score {
 \notes \new PianoStaff <<
-    \context Staff=up   {
+ \new PianoStaff <<
+    \context Staff = up {
        \bar "|:" r1
        \bar ":|" \break r1
     }
index 945435365ec9f19fac24c425dbe47f9ac9c1f6d3..a38c2a82416f5bf0a08edf4aede708474b50a640 100644 (file)
 #include "string.hh"
 #include "virtual-methods.hh"
 
+#include "ly-smobs.icc"
+
+IMPLEMENT_SMOBS (Paper_line);
+IMPLEMENT_TYPE_P (Paper_line, "ly:paper-line?");
+IMPLEMENT_DEFAULT_EQUAL_P (Paper_line);
+
+
 #define TITLE_PENALTY -1
 
+
 Paper_line::Paper_line (Offset o, SCM stencils, int penalty, bool is_title)
 {
   is_title_ = is_title;
@@ -40,11 +48,6 @@ Paper_line::~Paper_line ()
 {
 }
 
-#include "ly-smobs.icc"
-IMPLEMENT_SMOBS (Paper_line);
-IMPLEMENT_TYPE_P (Paper_line, "ly:paper-line?");
-IMPLEMENT_DEFAULT_EQUAL_P (Paper_line);
-
 SCM
 Paper_line::mark_smob (SCM smob)
 {
index 49f382b227f857a5b40541f44d8afd1b09c594b2..7afea692236a45046d8a30f17b6feb9e9d0f6f79 100644 (file)
@@ -22,8 +22,7 @@
              (lambda (x)
                (ly:kpathsea-gulp-file (string-append x ".pfa")))
              
-             (filter string? font-names)))
-       )
+             (filter string? font-names))) )
 
     (string-join pfas "\n")))
 
     (output-variables bookpaper)
     (ly:gulp-file "music-drawing-routines.ps")
     (ly:gulp-file "lilyponddefs.ps")
+    (load-fonts bookpaper)
     (define-fonts bookpaper)
     ))
 
 
     (define (to-pt x)
       (inexact->exact (round (* scale x))))
+    
+    (define (bbox llx lly urx ury) 
+      (string-append
+       "%%BoundingBox: "
+       (ly:number->string (to-pt llx)) " "
+       (ly:number->string (to-pt lly)) " " 
+       (ly:number->string (to-pt urx)) " "
+       (ly:number->string (to-pt ury)) "\n"))
+
     (for-each (lambda (l)
                (set! x-ext (interval-union x-ext (cons 0.0 (ly:paper-line-extent l X))))
                )
                lines)
+
   (for-each
    (lambda (x)
      (ly:outputter-dump-string outputter x))
    (list
     "%!PS-Adobe-2.0 EPSF-2.0\n"
     "%%Creator: LilyPond \n"
-    "%%BoundingBox: "
-    (ly:number->string (to-pt (car x-ext))) " "
-    (ly:number->string (to-pt 0)) " " 
-    (ly:number->string (to-pt (cdr x-ext))) " "
-    (ly:number->string (to-pt total-y)) "\n"
+
+;;    (bbox (car x-ext) 0 (cdr x-ext) total-y)    ; doesn't work well
+
     "%%EndComments\n"
     (output-variables bookpaper)
     (ly:gulp-file "music-drawing-routines.ps")
index 69d4a99ada1bd3cb4c18872c8e25c8ef9f05ce23..f19d0f2d8361e3cc650edc10f1d586019f6431b0 100644 (file)
                     "{" (sanitize-tex-string str) "}%\n")))
 
 (define (header creator time-stamp bookpaper page-count classic?)
+  (let*
+      ((scale (ly:output-def-lookup bookpaper 'outputscale)))
+    
   (string-append
    "% Generated by " creator "\n"
    "% at " time-stamp "\n"
    (if classic?
        (tex-string-def "lilypond" 'classic "1")
        "")
-   ;; FIXME: duplicated in every backend
-   "\\def\\lilypondtagline{Engraved by LilyPond (version "
-   (lilypond-version)")}\n"
 
-   ;; FIXME
-   ;; this is -of course- severely broken, (--hwn)
    (tex-string-def  "lilypondpaper" 'linewidth
-                   (ly:number->string (/ 18 0.175))) ; 18 cm.
+                   (ly:number->string (* scale
+                                         (ly:output-def-lookup bookpaper 'linewidth))))
+
    (tex-string-def  "lilypondpaper" 'interscoreline
-                   (ly:number->string 0.0))
-   ))
+                   (ly:number->string
+                    (* scale
+                    (ly:output-def-lookup bookpaper 'interscoreline))))
+   )))
 
 (define (header-end)
   (string-append
index c22601f3815c23386dde82a5e5a41a69682c8a06..14f52b3d3cfc3dd0bb680444abcf04fe58b4ad2b 100644 (file)
@@ -795,11 +795,11 @@ def process_snippets (cmd, snippets):
 
        if format == HTML or format == TEXINFO:
                for i in names:
-                       if not os.path.exists (i + '.ps') and os.path.exists (i + '.tex'):
+                       if not os.path.exists (i + '.eps') and os.path.exists (i + '.tex'):
                                to_eps (i)
                                ly.make_ps_images (i + '.eps', resolution=110)
-                       elif os.path.exists (i + '.ps'):
-                               ly.make_ps_images (i + '.ps', resolution=110)
+#                      elif os.path.exists (i + '.ps'):
+#                              ly.make_ps_images (i + '.ps', resolution=110)
 
 
 LATEX_DOCUMENT = r'''
index e35a064f4370a70f933c2f01c6e31b993fae6612..f1e29c02d7bf4dafec7dbd441ea76afe27c52287 100644 (file)
@@ -73,6 +73,9 @@ TOPLEVEL_VERSION=$(TOPLEVEL_MAJOR_VERSION).$(TOPLEVEL_MINOR_VERSION).$(TOPLEVEL_
 endif
 
 
+# no local settings in the build process.
+LANG=
+export LANG
 
 # clean file lists:
 #