From: Jan Nieuwenhuizen Date: Wed, 10 Mar 2004 08:18:51 +0000 (+0000) Subject: (do_file): Bugfix: texinfo paper X-Git-Tag: release/2.1.30~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1e9b18e75fd10a2d7e60fd3a6c84571bc0fc9277;p=lilypond.git (do_file): Bugfix: texinfo paper settings. (Lilypond_snippet.is_outdated): Also check for PNG file. Workaround for interrupted (web) builds. --- diff --git a/ChangeLog b/ChangeLog index a47a52b1bb..e74f323e7e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2004-03-10 Jan Nieuwenhuizen + + * scripts/lilypond-book.py (do_file): Bugfix: texinfo paper + settings. + (Lilypond_snippet.is_outdated): Also check for PNG file. + Workaround for interrupted (web) builds. + + * lily/paper-book.cc (get_pages): Bugfix: set dimensions for titles. + + * ps/lilyponddefs.ps: Use only very small top-marging. + (init-paper): Also pop page size string. + (start-page, stop-page): New function. + + * scm/output-ps.scm (header-end): Remove stray exec commands. + 2004-03-10 Han-Wen Nienhuys * lily/score.cc (default_rendering): clean protection. diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index a0cd79855a..e9ed11648e 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -271,11 +271,13 @@ FRAGMENT_LY = r'''\score{ }''' FULL_LY = '%(code)s' -texi_linewidths = { 'afourpaper': '160 \\mm', - 'afourwide': '6.5\\in', - 'afourlatex': '150 \\mm', - 'smallbook': '5 \\in' , - 'letterpaper': '6\\in'} +texinfo_linewidths = { + '@afourpaper': '160 \\mm', + '@afourwide': '6.5 \\in', + '@afourlatex': '150 \\mm', + '@smallbook': '5 \\in' , + '@letterpaper': '6\\in', + } def classic_lilypond_book_compatibility (o): if o == 'singleline': @@ -484,8 +486,12 @@ class Lilypond_snippet (Snippet): def is_outdated (self): base = self.basename () + ## FIXME: adding PNG to is_outdated test fixes + ## interrupted (web) builds. + ## should only do this if PNG is actually target if os.path.exists (base + '.ly') \ and os.path.exists (base + '.tex') \ + and os.path.exists (base + '.png') \ and (use_hash_p \ or self.ly () == open (base + '.ly').read ()): # TODO: something smart with target formats @@ -828,9 +834,12 @@ def do_file (input_filename): default_ly_options[LINEWIDTH] = '''%.0f\\pt''' \ % textwidth elif format == TEXINFO: - for (k, v) in texi_linewidths.items (): - s = chunks[0].replacement_text () - if re.search (k, s): + for (k, v) in texinfo_linewidths.items (): + # FIXME: @paper is usually not in chunk #0: + # \input texinfo @c -*-texinfo-*- + # bluntly search first K of source + # s = chunks[0].replacement_text () + if re.search (k, source[:1024]): default_ly_options[LINEWIDTH] = v break