]> git.donarmstrong.com Git - lilypond.git/commitdiff
(system): remove errorlog files.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 28 Aug 2003 19:12:44 +0000 (19:12 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 28 Aug 2003 19:12:44 +0000 (19:12 +0000)
13 files changed:
ChangeLog
Documentation/topdocs/NEWS.texi
Documentation/user/tutorial.itely
VERSION
lily/include/molecule.hh
lily/molecule-scheme.cc
lily/molecule.cc
lily/my-lily-lexer.cc
lily/parser.yy
ly/grace-init.ly
python/lilylib.py
scm/new-markup.scm
scripts/convert-ly.py

index 73a7f56395b5c54e5361740afd59874e623b0027..592137546a1440c3d37c7cb11f4ff3fb98ff28ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-08-28  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
+
+       * python/lilylib.py (system): remove errorlog files.
+       
 2003-08-28  Heikki Junes  <hjunes@cc.hut.fi>
 
        * lilypond.words: add \new and new graces. Add dynamics to menus
@@ -6,6 +10,16 @@
 
 2003-08-28  Han-Wen Nienhuys  <hanwen@cs.uu.nl>
 
+       * lily/molecule.cc (align_to): idem.
+
+       * lily/molecule-scheme.cc: ly_align_to_x takes continuous dir argument.
+       
+
+       * ly/grace-init.ly (stopAcciaccaturaMusic): correct misspelling of
+       accacciatura everywhere.
+
+       * VERSION (PACKAGE_NAME): released 1.9.2
+
        * GNUmakefile.in (EXTRA_DIST_FILES): dist lilypond.vim too.
 
        * scm/document-markup.scm (markup-doc-node): sort markup function
index 0afa422dfb9e226352a506519c68a2a25fe1ad11..60672b3f0f8867f731d606266932768c1169a15e 100644 (file)
@@ -8,6 +8,8 @@
 @chapter New features in 1.9 since 1.8
 
 @itemize
+@item
+Markup text (ie. general text formatting) may now be used for lyrics too. 
 
 @item
 Two new commands for grace notes have been added, @code{\accacciatura}
@@ -18,7 +20,7 @@ and @code{\appoggiatura},
   \accacciatura g8 f4
 @end example
 
-Both reflect the traditional meanings of accacciatura and appogiatura,
+Both reflect the traditional meanings of acciaccatura and appogiatura,
 and both insert insert a slur from the first grace note to the main
 note.
 
index 3208a77635f08884bc529694ed082381b2b797a7..c7eb23342440bbd9ce09171b0176be43d8461522 100644 (file)
@@ -1199,8 +1199,8 @@ example,
 
 When the file is processed by @code{ly2dvi}, the title and composer
 specified are printed above the music. The `tagline' is a short line
-printed at bottom of the last page, which normally says ``Lily was
-here, version @dots{}''. In the example above, it is replaced by the
+printed at bottom of the last page, which normally says ``Engraved
+by LilyPond, version @dots{}''. In the example above, it is replaced by the
 line ``small is beautiful''.
 
 Normally, the @code{\header} is put at the top of the file. However,
diff --git a/VERSION b/VERSION
index 41e5a00ffe19097383d08915c9d0c1c74a449e95..f62e416fdfe00cbf4d54921320b43937c6e27ae9 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,7 +1,7 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=1
 MINOR_VERSION=9
-PATCH_LEVEL=2
+PATCH_LEVEL=3
 MY_PATCH_LEVEL=
 
 # Use the above to send patches: MY_PATCH_LEVEL is always empty for a
index 7b514e46f5922497fc287281fc28680b23069fc7..eedacf62a9fd1c9f01de291b6f171b6b306059cb 100644 (file)
@@ -62,16 +62,7 @@ public:
                    Real minimum);
   void add_molecule (Molecule const &m);
   void translate (Offset);
-  
-  /**
-     align D direction in axis A.
-
-     If D == CENTER, then move the dimension (A).center () to (0,0)
-
-     Else, move so dimension (A)[D] == 0.0
-     
-   */
-  void align_to (Axis a, Direction d);
+  void align_to (Axis a, Real x);
   void translate_axis (Real,Axis);
   
   Interval extent (Axis) const;
index 1bef34afedc501c468df32b180f21bfe4f0a08b9..b81c4f717d6264d15887abfdc28a5090f68e5b1c 100644 (file)
@@ -211,13 +211,17 @@ LY_DEFINE(ly_fontify_atom,"ly:fontify-atom", 2, 0, 0,
   return fontify_atom (unsmob_metrics (met), f);
 }
 LY_DEFINE(ly_align_to_x,"ly:molecule-align-to!", 3, 0, 0,  (SCM mol, SCM axis, SCM dir),
-         "Align @var{mol} using its own extents.")
+
+         "Align @var{mol} using its own extents. @var{dir} is a number -1, 1 are "
+         " left and right respectively. Other values are interpolated (so 0 means "
+         " the center. ")
 {
   SCM_ASSERT_TYPE(unsmob_molecule (mol), mol, SCM_ARG1, __FUNCTION__, "molecule");
   SCM_ASSERT_TYPE(ly_axis_p (axis), axis, SCM_ARG2, __FUNCTION__, "axis");
-  SCM_ASSERT_TYPE(ly_dir_p (dir), dir, SCM_ARG3, __FUNCTION__, "dir");
+  SCM_ASSERT_TYPE(gh_number_p (dir), dir, SCM_ARG3, __FUNCTION__, "number");
 
-  unsmob_molecule (mol)->align_to ((Axis)gh_scm2int (axis), Direction (gh_scm2int (dir)));
+  unsmob_molecule (mol)->align_to ((Axis)gh_scm2int (axis),
+                                  gh_scm2double (dir));
 
   return SCM_UNDEFINED;
 }
index af60d58ab4ccf50948e39be0bd9ba0dfee17fbdc..e05e6432638557525241858b14bb5ad08f9e7d78 100644 (file)
@@ -105,14 +105,13 @@ Molecule::set_empty (bool e)
 
 
 void
-Molecule::align_to (Axis a, Direction d)
+Molecule::align_to (Axis a, Real x)
 {
   if (empty_b())
     return ;
 
   Interval i (extent (a));
-  Real r = (d == CENTER) ? i.center () : i[d];
-  translate_axis (-r, a);
+  translate_axis (-i.linear_combination (x), a);
 }
 
 /*
index b3445a8a840df845466c0634c216bfc24061e8f8..1e63016cbf5a7642eb8f2cbfb84bfabed61281d1 100644 (file)
@@ -26,7 +26,7 @@
 
 
 static Keyword_ent the_key_tab[]={
-  {"accacciatura", ACCACCIATURA},
+  {"acciaccatura", ACCIACATURA},
   {"accepts", ACCEPTS},
   {"addlyrics", ADDLYRICS},
   {"alias", ALIAS},
index 5a7119fba26fd378019a80220280adea2a6fca8f..87cb02513086e3fc5a249697f332a1042333cbfa 100644 (file)
@@ -244,7 +244,7 @@ yylex (YYSTYPE *s,  void * v)
 %token FIGURES FIGURE_OPEN FIGURE_CLOSE
 %token FIGURE_BRACKET_CLOSE FIGURE_BRACKET_OPEN
 %token GRACE 
-%token ACCACCIATURA
+%token ACCIACATURA
 %token APPOGGIATURA 
 %token GROBDESCRIPTIONS
 %token HEADER
@@ -905,7 +905,7 @@ Simple_music:
 
 grace_head:
        GRACE  { $$ = scm_makfrom0str ("Grace"); } 
-       | ACCACCIATURA { $$ = scm_makfrom0str ("Accacciatura"); }
+       | ACCIACATURA { $$ = scm_makfrom0str ("Acciaccatura"); }
        | APPOGGIATURA { $$ = scm_makfrom0str ("Appoggiatura"); }
        ;
        
index 3c052b8bfd8660f162140315328a7dbeb6cac748..d9e433fc13034748036ee43fffc3aff45cbe031d 100644 (file)
@@ -20,13 +20,13 @@ stopAppoggiaturaMusic = \notes {
     s1*0)
 }
 
-startAccacciaturaMusic = \notes {
+startAcciaccaturaMusic = \notes {
     \context Voice \applycontext #set-start-grace-properties
     s1*0(
     \property Voice.Stem \override #'stroke-style = #"grace"
 }
 
-stopAccacciaturaMusic = \notes {
+stopAcciaccaturaMusic = \notes {
     \property Voice.Stem \revert #'stroke-style
     \context Voice \applycontext #set-stop-grace-properties
     s1*0)
index abb604baf57ae821be068decc523ad8934b9b5bc..e221817bd12b9791d1301548fa87f62311787379 100644 (file)
@@ -260,6 +260,7 @@ def read_pipe (cmd, mode = 'r'):
        signal = 0x0f & status
        exit_status = status >> 8
 
+       print 'errorlog', error_log_file 
        if status:
                error (_ ("`%s\' failed (%d)") % (cmd, exit_status))
                
@@ -279,7 +280,9 @@ def read_pipe (cmd, mode = 'r'):
                progress ('\n')
 
        if error_log_file:
+               print 'unlinking errorlog', error_log_file 
                os.unlink (error_log_file)
+       print 'reachin end', error_log_file 
                
        return output
 
@@ -293,7 +296,8 @@ RETURN VALUE
 Exit status of CMD '''
 
        name = command_name (cmd)
-
+       error_log_file = ''
+       
        if __main__.verbose_p:
                progress_p = 1
                progress (_ ("Invoking `%s\'") % cmd)
@@ -302,10 +306,11 @@ Exit status of CMD '''
 
        redirect = ''
        if not progress_p:
-               redirect = ' 1>/dev/null 2>' + error_log (name)
+               error_log_file = error_log (name)
+               redirect = ' 1>/dev/null 2>' + error_log_file
        elif __main__.pseudo_filter_p:
                redirect = ' 1>/dev/null'
-                       
+
        status = os.system (cmd + redirect)
        signal = 0x0f & status
        exit_status = status >> 8
@@ -322,11 +327,15 @@ Exit status of CMD '''
                                warning (msg + ' ' + _ ("(ignored)"))
                else:
                        error (msg)
-                       if not progress_p:
+                       if not progress_p and error_log_file:
                                error (_ ("The error log is as follows:"))
-                               sys.stderr.write (open (error_log (name)).read ())
+                               sys.stderr.write (error_log_file).read ()
+                       if error_log_file:
+                               os.unlink (error_log_file)
                        exit (status)
 
+       if error_log_file:
+               os.unlink (error_log_file)
        progress ('\n')
        return status
 
index 9d3b1c000cb094265c8dcca698e1d7ca97118fd5..e59c4bcc709a8a2f7f96a9afd80f4ef1a35a73a4 100644 (file)
@@ -170,6 +170,23 @@ for the reader.
      mols)
     ))
 
+(define-public (right-align-markup grob props . rest)
+  (let* ((m (interpret-markup grob props (car rest))))
+    (ly:molecule-align-to! m X RIGHT)
+    m))
+
+(define-public (halign-markup grob props . rest)
+  "Set horizontal alignment. Syntax: haling A MARKUP. A=-1 is LEFT,
+A=1 is right, values in between vary alignment accordingly."
+  (let* ((m (interpret-markup grob props (cadr rest))))
+    (ly:molecule-align-to! m X (car rest))
+    m))
+
+(define-public (left-align-markup grob props . rest)
+  (let* ((m (interpret-markup grob props (car rest))))
+    (ly:molecule-align-to! m X RIGHT)
+    m))
+
 (define-public (musicglyph-markup grob props . rest)
   (ly:find-glyph-by-name
    (ly:get-font grob (cons '((font-family . music)) props))
@@ -342,6 +359,8 @@ Syntax: \\fraction MARKUP1 MARKUP2."
   )
 
 (define-public (hbracket-markup grob props . rest)
+  "Horizontal brackets around its single argument. Syntax \\hbracket MARKUP."  
+  
   (let*
       (
        (th 0.1) ;; todo: take from GROB.
@@ -352,6 +371,7 @@ Syntax: \\fraction MARKUP1 MARKUP2."
 ))
 
 (define-public (bracket-markup grob props . rest)
+  "Vertical brackets around its single argument. Syntax \\bracket MARKUP."  
   (let*
       (
        (th 0.1) ;; todo: take from GROB.
@@ -581,6 +601,10 @@ Syntax: \\fraction MARKUP1 MARKUP2."
    (cons center-markup (list markup-list?))
    (cons line-markup  (list markup-list?))
 
+   (cons right-align-markup (list markup?))
+   (cons left-align-markup (list markup?))   
+   (cons halign-markup (list number? markup?))
+   
    (cons combine-markup (list markup? markup?))
    (cons simple-markup (list string?))
    (cons musicglyph-markup (list scheme?))
index f138c70a47402359b43a9ebc09ca978672a1f6eb..2f14ad226d277779143f76b22d13502271169bb1 100644 (file)
@@ -1440,6 +1440,14 @@ if 1:
        
        conversions.append (((1,9,2), conv, """\newcontext -> \new"""))
 
+if 1:
+       def conv (str):
+               str = re.sub ('accacciatura',
+                             'acciaccatura', str)
+               return str
+       
+       conversions.append (((1,9,3), conv, """\acciaccatura misspelling"""))
+
 ################################
 #      END OF CONVERSIONS      
 ################################