]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.89
authorfred <fred>
Tue, 26 Mar 2002 23:56:00 +0000 (23:56 +0000)
committerfred <fred>
Tue, 26 Mar 2002 23:56:00 +0000 (23:56 +0000)
CHANGES
lily/mark-engraver.cc
lily/rest-collision.cc
lily/staff-symbol-referencer.cc
lily/tuplet-spanner.cc
lily/volta-spanner.cc
scripts/mudela-book.py

diff --git a/CHANGES b/CHANGES
index 0ceb0ebc13aad2631815e559b657f25749fd725a..95feb900290ee8f343e21593ad3029f8d5325c36 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,58 @@
-1.3.87.hwn1
+1.3.89
+======
+
+* Some fixes to Coriolan.
+
+* Fixed some stupid core dumps processing Coriolan.
+
+* Fixed several problems with part-combiner's part-switching.
+
+* Fixes for ASCII output.
+
+* Added feature to part combiner that should allow part-switching only
+  for entire measures.  Currently, it is controlled by a new 
+  property changeMoments (A . B):
+    - only switch when !(A mod now),
+    - decide whether to switch based on music during time period B.
+
+* Made bugfix: Sequential_iterator::get_music (M): mustn't return music 
+  later than M.
+
+* Added skip (M) to some iterators.
+
+* maintain minimum-length by shifting for hyphens at start of
+line. (patch courtesy Christophe Rhodes)
+
+* mudela-book fixes (courtesy Tom Cato Amundsen): documentation
+update, LaTeX example, landscape support.
+
+1.3.88.hwn2
 ===========
 
+* Added elt properties for Tie:
+  - details
+  - x-gap
+  - staffline-clearance
+
+* Added elt properties for Slur
+  - y-free
+  - details
+
+* Removed C++ support for barNumberScriptPadding, now in
+generic-property.scm (but they're deprecated anyway)
+
+* Changed threshold in Align_interface to be in staffspace 
+
+* changed minVerticalAlign and maxVerticalAlign to be in staffspace.
+A better way: do \push #'threshold = #(cons A B ).  (WARNING:
+INCOMPATIBLE CHANGE)
+
+* moved translator definitions out of \paper { }, only instantiate in
+\paper.
+
+1.3.88
+======
+
 * Sequential_iterator::get_music (), part combiner now works.
 
 * Changed paper variables into elt properties:
@@ -10,7 +62,7 @@
   - beam-flag-width-function to Beam.
 
   Grace_align_item:
-  -  horizontal-space: spacing of is configurable
+  -  horizontal-space: spacing of grace notes is configurable
 
   Volta_spanner: 
   - height
@@ -34,6 +86,8 @@
 
 * added input/test/bagpipe.ly
 
+
+
 1.3.87
 ======
 
index 9ada64765fad07f3d154e6c986bc7e5f4e5d92bc..d58823470f1acc59adf3bb5948a3a553b42e8302 100644 (file)
@@ -127,7 +127,7 @@ Mark_engraver::create_items (Request *rq)
     {
       text_p_
        ->set_elt_property ("padding",
-                           gh_double2scm(paper_l ()->get_var ("interline")));
+                           gh_double2scm(paper_l ()->get_var ("staffspace")));
     }
 
   
index f5605bc6677ba0d4d119dc3447f99a8ca1b852ac..952bded8fa92f265fb3cb262ab8cbac411bfdfc7 100644 (file)
@@ -172,7 +172,7 @@ Rest_collision::do_shift (Score_element *me, SCM elts)
        return SCM_UNSPECIFIED;
       
       // staff ref'd?
-      Real staff_space = me->paper_l()->get_var ("interline");
+      Real staff_space = me->paper_l()->get_var ("staffspace");
 
        /* FIXME
          staff_space =  rcol->rests[0]->staff_space ();
index 85b52f5aabc69a605ee96a33f28e9dea22aad621..b4a2351ea3348aa9a3e69596f87f607b468bf1ec 100644 (file)
@@ -53,7 +53,7 @@ Staff_symbol_referencer::staff_space (Score_element*me)
   if (st)
     return Staff_symbol::staff_space (st);
   else if (me->pscore_l_ && me->paper_l ())
-    return me->paper_l ()->get_var ("interline");
+    return me->paper_l ()->get_var ("staffspace");
  
   return 0.0;
 }
index f154c010e54e613903877c2fcf7792940a3cd871..34ed2efd0a2caa4c0cd06c08f57fa41133877e95 100644 (file)
@@ -69,7 +69,7 @@ Tuplet_spanner::brew_molecule (SCM smob)
       Real ncw = column_arr.top ()->extent(X_AXIS).length ();
       Real w = dynamic_cast<Spanner*>(me)->spanner_length () + ncw;
 
-      Real staff_space = me->paper_l ()->get_var ("interline");
+      Real staff_space = me->paper_l ()->get_var ("staffspace");
       Direction dir = Directional_element_interface::get (me);
       Real dy = gh_scm2double (me->get_elt_property ("delta-y"));
       SCM number = me->get_elt_property ("text");
index e244e6ad7ca7f9259b99715e37591d32760f4588..1ce8128d9deac1de3198314a34e33befddb22e49 100644 (file)
@@ -63,7 +63,7 @@ Volta_spanner::brew_molecule (SCM smob)
     no_vertical_end = false;
 #endif
 
-  Real staff_space = me->paper_l ()->get_var ("interline");
+  Real staff_space = me->paper_l ()->get_var ("staffspace");
   Real staff_thick = me->paper_l ()->get_var ("stafflinethickness");  
   Real half_space = staff_space / 2;
   Real left = dynamic_cast<Spanner*>(me)->get_broken_left_end_align ();
index c60924d43498712dafdab9014699494091f3aae1..85a055d175c360e0ba5a78821ab9eaa2303d529b 100644 (file)
@@ -1,7 +1,13 @@
 #!@PYTHON@
 # vim: set noexpandtab:
-# TODO: Figure out clean set of options.
-# add support for .lilyrc
+# TODO:
+# * Figure out clean set of options.
+# * add support for .lilyrc
+# * %\def\preMudelaExample should be ignored by mudela-book because
+#   it is commented out
+# * if you run mudela-book once with --no-pictures, and then again
+#   without the option, then the pngs will not be created. You have
+#   to delete the generated .ly files and  rerun mudela-book.
 
 import os
 import stat
@@ -15,7 +21,7 @@ import __main__
 
 program_version = '@TOPLEVEL_VERSION@'
 if program_version == '@' + 'TOPLEVEL_VERSION' + '@':
-       program_version = '1.3.69-very-unstable'        
+       program_version = '1.3.85'      
 
 include_path = [os.getcwd()]
 
@@ -36,18 +42,22 @@ default_text_fontsize = 12
 # indices are no. of columns, papersize,  fontsize
 # Why can't this be calculated?
 latex_linewidths = {
- 1: {'a4':{10: 345, 11: 360, 12: 390},
-        'a5':{10: 276, 11: 276, 12: 276},
-        'b5':{10: 345, 11: 356, 12: 356},
-        'letter':{10: 345, 11: 360, 12: 390},
-        'legal': {10: 345, 11: 360, 12: 390},
-        'executive':{10: 345, 11: 360, 12: 379}},
- 2: {'a4':{10: 167, 11: 175, 12: 190},
-        'a5':{10: 133, 11: 133, 12: 133},
-        'b5':{10: 167, 11: 173, 12: 173},
-        'letter':{10: 167, 11: 175, 12: 190},
-        'legal':{10: 167, 11: 175, 12: 190},
-        'executive':{10: 167, 11: 175, 12: 184}}}
+ 1: {  'a4':{10: 345, 11: 360, 12: 390},
+       'a4-landscape': {10: 598, 11: 596, 12:592},
+       'a5':{10: 276, 11: 276, 12: 276},
+       'b5':{10: 345, 11: 356, 12: 356},
+       'letter':{10: 345, 11: 360, 12: 390},
+       'letter-landscape':{10: 598, 11: 596, 12:596},
+       'legal': {10: 345, 11: 360, 12: 390},
+       'executive':{10: 345, 11: 360, 12: 379}},
+ 2: {  'a4':{10: 167, 11: 175, 12: 190},
+       'a4-landscape': {10: 291, 11: 291, 12: 291},
+       'a5':{10: 133, 11: 133, 12: 133},
+       'b5':{10: 167, 11: 173, 12: 173},
+       'letter':{10: 167, 11: 175, 12: 190},
+       'letter-landscape':{10: 270, 11: 267, 12: 269},
+       'legal':{10: 167, 11: 175, 12: 190},
+       'executive':{10: 167, 11: 175, 12: 184}}}
 
 texi_linewidths = {
        'a4': {12: 455},
@@ -152,23 +162,27 @@ re_dict = {
                 
                  'option-sep' : ', *',
                  'header': r"""\\documentclass(\[.*?\])?""",
+                 #              ^(?m)[^%]* is here so we can comment it out
+                 'landscape': r"^(?m)[^%]*\\usepackage{landscape}",
                  'preamble-end': '\\\\begin{document}',
                  'verbatim': r"""(?s)(?P<code>\\begin{verbatim}.*?\\end{verbatim})""",
                  'verb': r"""(?P<code>\\verb(?P<del>.).*?(?P=del))""",
                  'mudela-file': r'\\mudelafile(\[(?P<options>.*?)\])?\{(?P<filename>.+)}',
-                 'mudela' : '(?m)\\\\mudela(\[(?P<options>.*?)\])?{(?P<code>.*?)}',
+                 'mudela' : '(?m)^[^%]*?\\\\mudela(\[(?P<options>.*?)\])?{(?P<code>.*?)}',
                  #'mudela-block': r"""(?m)^[^%]*?\\begin(\[(?P<options>.*?)\])?{mudela}(?P<code>.*?)\\end{mudela}""",
                  'mudela-block': r"""(?s)\\begin(\[(?P<options>.*?)\])?{mudela}(?P<code>.*?)\\end{mudela}""",
                  'def-post-re': r"""\\def\\postMudelaExample""",
                  'def-pre-re': r"""\\def\\preMudelaExample""",           
                  'intertext': r',?\s*intertext=\".*?\"',
-                 'ignore': r"(?m)(?P<code>%.*?^)",
+                 #'ignore': r"(?m)(?P<code>%.*?^)",
+                 'ignore': r"(?m)(?P<code>^%.*)$",
                  'numcols': r"(?P<code>\\(?P<num>one|two)column)",
                  },
        
        'texi': {
                 'include':  '@mbinclude[ \n\t]+(?P<filename>[^\t \n]*)',
                 'input': no_match,
+                'landscape': no_match,
                 'header': no_match,
                 'preamble-end': no_match,
                 'verbatim': r"""(?s)(?P<code>@example\s.*?@end example\s)""",
@@ -235,12 +249,16 @@ def compose_full_body (body, opts):
        else:
                paper = 'letter' # yes, latex use letter as default, at least
                                 # my tetex distro
+               if 'landscape' in opts:
+                   paper = paper + '-' + 'landscape'
        music_size = default_music_fontsize
        latex_size = default_text_fontsize
        for o in opts:
                m = re.search ('^(.*)paper$', o)
                if m:
                        paper = m.group (1)
+                       if 'landscape' in opts:
+                               paper = paper + '-' + 'landscape'
                
                if g_force_mudela_fontsize:
                        music_size = g_force_mudela_fontsize
@@ -300,6 +318,9 @@ def scan_preamble (str):
                        options = ['a4widepaper']
                elif string.find(str[:x], "@smallbook") != -1:
                        options = ['smallbookpaper']
+       m = get_re ('landscape').search(str)
+       if m:
+           options.append('landscape')
        m = get_re ('header').search( str)
        # should extract paper & fontsz.
        if m and m.group (1):
@@ -473,6 +494,7 @@ def schedule_mudela_block (chunk, extra_opts):
        TODO has format [basename, extension, extension, ... ]
        
        """
+       #print "-schedule_mudela_block", extra_opts
        if len(chunk) == 3:
                (type, body, opts) = chunk
                complete_body = None
@@ -571,7 +593,9 @@ def compile_all_files (chunks):
                        if e == 'eps':
                                eps.append (base)
                        elif e == 'tex':
-                               tex.append (base + '.ly')
+                               #ugh
+                               if base + '.ly' not in tex:
+                                       tex.append (base + '.ly')
                        elif e == 'png' and g_do_pictures:
                                png.append (base)
        d = os.getcwd()
@@ -719,8 +743,8 @@ def do_file(input_filename):
        chunks = chop_chunks(chunks, 'mudela', make_mudela)
        chunks = chop_chunks(chunks, 'mudela-file', make_mudela_file)
        chunks = chop_chunks(chunks, 'mudela-block', make_mudela_block)
-       #for c in chunks: print c, "\n"
        chunks = chop_chunks(chunks, 'ignore', do_ignore)
+       #for c in chunks: print "c:", c
        chunks = chop_chunks(chunks, 'numcols', do_columns)
        global_options = scan_preamble(chunks[0][1])
        chunks = process_mudela_blocks(my_outname, chunks, global_options)