]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/documentation-generate.scm (string-append): add version.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 18 Aug 2004 20:40:37 +0000 (20:40 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 18 Aug 2004 20:40:37 +0000 (20:40 +0000)
* scm/define-markup-commands.scm (box): add box-padding and
thickness props for the box command.

* Documentation/user/changing-defaults.itely (Text encoding):
elucidate use of \encoding for \header strings.

* lily/parser.yy (lyric_element): use \encoding for lyrics strings.

* lily/score.cc (LY_DEFINE): check if length of music > 0. Fixes:
staff-change.ly

ChangeLog
Documentation/user/changing-defaults.itely
lily/parser.yy
lily/score.cc
scm/define-grobs.scm
scm/define-markup-commands.scm
scm/documentation-generate.scm
scm/page-layout.scm
scripts/convert-ly.py

index 9e5b07758943f3a291be7046b02b3d3732ff59ff..2adf99ec09a66a0214dec2bc7b9504ce048ae346 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
 2004-08-18  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * scm/documentation-generate.scm (string-append): add version.
+
+       * scm/define-markup-commands.scm (box): add box-padding and
+       thickness props for the box command.
+       * Documentation/user/changing-defaults.itely (Text encoding):
+       elucidate use of \encoding for \header strings.
+
+       * lily/parser.yy (lyric_element): use \encoding for lyrics strings.
+
+       * lily/score.cc (LY_DEFINE): check if length of music > 0. Fixes:
+       staff-change.ly
+
        * lily/output-def.cc (assign_context_def): use set_variable().
 
        * lily/text-item.cc (interpret_string): accept string input
index 710a996f1c76a7b8decdec7223fed994bee8dead..907e3140cc2d0f3e9c4b067dcb9aeaee9bb5f266 100644 (file)
@@ -1794,7 +1794,8 @@ file can be set with @code{\encoding}.
 @end example
 
 This command may be placed anywhere in the input file. The current
-encoding is passed as an extra argument to @code{\markup} commands.
+encoding is passed as an extra argument to @code{\markup} commands,
+and is passed similarly to lyric syllables.
 
 If no @code{\encoding} has been specified, then the encoding is taken
 from the @code{\paper} block (or @code{\bookpaper}, if @code{\paper}
@@ -1807,6 +1808,24 @@ set to a string or symbol specifying  the encoding, e.g.
   } 
 @end verbatim
 
+Normal strings, are unaffected by @code{\encoding}. This means that
+the following will usually not produce ba@ss{}tuba in the title.
+
+@verbatim
+  \header {
+    title = "Grazing cow"
+    instrument = "Baßtuba"
+  }
+@end verbatim
+
+Rather, you should say
+@verbatim
+    instrument = \markup { Baßtuba }
+@end verbatim
+
+@noindent
+or set @code{inputencoding} in the @code{\bookpaper} block. 
+
 There is a special encoding, called @code{TeX}. This encoding does not
 reencode text for the font used. Rather, it tries to guess the width
 of @TeX{} commands, such as @code{\"}. Strings encoded with @code{TeX}
index 085aca71c6ad04756869bb68120a174ff635eb85..0d8f000b125f7f83cdcbfa415f0a055ce0877f9d 100644 (file)
@@ -2262,8 +2262,10 @@ simple_element:
 lyric_element:
        /* FIXME: lyric flavoured markup would be better */
        full_markup {
+               $$ = $1;
        }
        | LYRICS_STRING {
+               $$ = make_simple_markup (THIS->lexer_->encoding (), $1);
        }
        ;
 
index fa6c6fc3842aa6148b00c1e66c8f8c396d24ba26..99648187603784400fddac08ee4195dc63f3e2d1 100644 (file)
@@ -94,9 +94,13 @@ LY_DEFINE (ly_run_translator, "ly:run-translator",
   Output_def *odef = unsmob_output_def (output_def);
   Music *music = unsmob_music (mus);
 
-  if (!music)
-    return SCM_BOOL_F;
-
+  if (!music
+      || !music->get_length ().to_bool ())
+    {
+      warning (_ ("Need music in a score"));
+      return SCM_BOOL_F;
+    }
+  
   SCM_ASSERT_TYPE (music, mus, SCM_ARG1, __FUNCTION__, "Music");
   SCM_ASSERT_TYPE (odef, output_def, SCM_ARG2, __FUNCTION__, "Output definition");
   
index 26143927d4e4927793e592a091feba3a09640459..e6b2e00b41cd6f4912a9f3b2afaf8bfadb0031c4 100644 (file)
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
        (self-alignment-X . 0)
        (direction . 1)
-       (padding . 1.5)
-       (staff-padding . 1.5)
+       (padding . 0.2)
+       (staff-padding . 0.25)
        (meta . ((interfaces . (side-position-interface multi-measure-interface self-alignment-interface font-interface spanner-interface text-interface))))
        ))
  (NoteCollision
index a578c38b7b281f0ee9ff25a77c63c3b62067eac8..a89a968da969fe145061d930f03265a96e252006 100644 (file)
@@ -604,11 +604,13 @@ any sort of property supported by @internalsref{font-interface} and
 (def-markup-command larger (markup?)
   bigger-markup)
 
+
 (def-markup-command (box paper props arg) (markup?)
-  "Draw a box round @var{arg}"
-  
-  (let ((th 0.1)
-        (pad 0.2)
+  "Draw a box round @var{arg}.  Looks at @code{thickness} and
+@code{box-padding} to determine line thickness and padding around the
+markup."
+  (let ((th (chain-assoc-get props 'thickness  0.1))
+        (pad (chain-assoc-get props 'box-padding 0.2))
         (m (interpret-markup paper props arg)))
     (box-stencil m th pad)))
 
index ccaa6d00ef27014fc52037961dc5142859ddf708..efb76d62eddf54a0874fa3d637444978a234e45f 100644 (file)
 @end ignore
 
 
-") out-port)
+"
+
+  "This is the program reference for LilyPond version " (lilypond-version)
+
+  ) out-port)
 
 (define top-node
   (make <texi-node>
index 4afd58b713c98265f7a8a5516c9925aafcddb4d8..fd03aba91aa1c33834f3363d3bd18be23dcf7d37 100644 (file)
@@ -333,8 +333,7 @@ DONE."
     (ly:paper-system-number (car (node-lines node))))
 
   (let* ((best-break-node (walk-lines '() '() lines))
-        (break-nodes (get-path best-break-node '()))
-        )
+        (break-nodes (get-path best-break-node '())))
 
     (if (ly:get-option 'verbose)
        (begin
index 49a9985b9919c4f51bebf5e56bcb95c6b7649ce9..76e5d78b93098332f1a9a17916a83a7561f2f6db 100644 (file)
@@ -2144,6 +2144,15 @@ def conv (str):
 conversions.append (((2, 3, 10), conv,
                     '''\\addlyrics -> \\oldaddlyrics, \\newlyrics -> \\addlyrics'''))
 
+def conv (str):
+       str = re.sub (r'\\setMmRestFermata\s+(R[0-9.*/]*)',
+                     r'\1^\\fermataMarkup', str)
+       return str
+
+conversions.append (((2, 3, 11), conv,
+                    '''\\setMmRestFermata -> ^\\fermataMarkup'''))
+
+
 
 
 def conv_mode_experiment (str):