]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/define-markup-commands.scm (verbatim-file): new markup
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 26 Jan 2006 15:08:08 +0000 (15:08 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 26 Jan 2006 15:08:08 +0000 (15:08 +0000)
command \verbatim-file

* Documentation/topdocs/NEWS.tely: fixup URLs

* Documentation/topdocs/NEWS.tely (Top): document new features.

* input/regression/page-layout-manual-position.ly (Module): new
file.

ChangeLog
Documentation/topdocs/NEWS.tely
VERSION
input/regression/page-layout-manual-position.ly
input/regression/page-layout-twopass.ly
lily/main.cc
scm/define-markup-commands.scm
scm/layout-page-layout.scm
scm/lily.scm

index 30ac881cadc379825dcdfb26900c8d0741e15ca6..784a214849f985ac2c71ec5fc7468ea819d3b97b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-01-26  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+       * scm/define-markup-commands.scm (verbatim-file): new markup
+       command \verbatim-file
+
+       * Documentation/topdocs/NEWS.tely: fixup URLs
+
        * input/regression/alignment-vertical-manual-setting.ly (Module):
        new file.
 
index 4aa94dff731bbe52a2a607f335e04cc5b426bf71..0174d438d5d01d853b04e5746b4c5e3fdfce25f2 100644 (file)
@@ -4,10 +4,10 @@
 
 @ifhtml
 @macro inputfileref{DIR,NAME}
-@uref{../../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
+@uref{../../\DIR\/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
 @end macro
 @macro usermanref{NAME}
-@inforef{\NAME\,,../../user/lilypond/lilypond}@c
+@inforef{\NAME\,,../user/lilypond/lilypond}@c
 @end macro
 @end ifhtml
 
@@ -48,10 +48,12 @@ the @uref{../,LilyPond Documentation}
 @itemize @bullet
 @item Alignments of staves may be tuned per system.   
 @lilypond[]
+#(set-global-staff-size 13)
+
 \relative c'' \new StaffGroup <<
-      \new Staff { c1 c }
-      \new Staff { c c  }
-      \new Staff { 
+  \new Staff { c1 c }
+  \new Staff { c c  }
+  \new Staff { 
        \overrideProperty
        #"Score.NonMusicalPaperColumn"
        #'line-break-system-details
@@ -62,8 +64,8 @@ the @uref{../,LilyPond Documentation}
        #'line-break-system-details
        #'((alignment-offsets . (0 -15 -20)))
        c1 
-      }
-    >>
+  }
+>>
 @end lilypond
 
 This feature was sponsored by Trevor Bača.
@@ -104,7 +106,7 @@ This feature was sponsored by Trevor Bača and Nicolas Sceaux.
 @item A linebreaking configuration can now be saved as a @file{.ly}
 file automatically. This allows vertical alignments to be stretched to
 fit pages in a second formatting run. See
-@inputfileref{input/regression/,page-layout-twopass.ly} for an
+@inputfileref{input/regression,page-layout-twopass.ly} for an
 example.
 
 This feature was sponsored by Trevor Bača and Nicolas Sceaux.
diff --git a/VERSION b/VERSION
index 4453cfda2d74c44dfda462c6bc99d732a01a4f1d..cdc66fdd01c302e864094b30052ba20cd1d579bc 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,6 +1,6 @@
 PACKAGE_NAME=LilyPond
 MAJOR_VERSION=2
 MINOR_VERSION=7
-PATCH_LEVEL=28
+PATCH_LEVEL=29
 MY_PATCH_LEVEL=
 
index b593774acebcbc288d41eff0519aeadae9b0b729..d9a98f3449edf2ec690490c8561cd27d676f81d3 100644 (file)
@@ -8,6 +8,7 @@ systems may be placed absolutely on the printable area of the page."
 
 }
 
+\version "2.7.29"
 
 #(set-default-paper-size "a6" 'portrait)
 
index f0f094dff8aba030e0240b31e991fa1c39806611..a8a662934916128727eaa28d0bd6eaa05fbd08f1 100644 (file)
@@ -3,6 +3,7 @@
   texidoc = "Page breaking details can be stored for later reference." 
 }
 
+\version "2.7.29"
 
 \paper  {
   #(define write-page-layout #t)
@@ -26,5 +27,12 @@ bla = \new Staff {
 tweakFileName = #(format "~a-page-layout.ly" (ly:parser-output-name parser))
 
 #(newline)
-#(ly:progress "Including file: ~a" tweakFileName)
-\include \tweakFileName
+#(ly:progress "Including file: '~a'" tweakFileName)
+
+
+\markup {
+  \column {
+    \line { contents of \typewriter tweakFileName: }
+    \smaller \verbatim-file #tweakFileName
+  }
+}
index 73218de4b331c47822db7448bb1f7b9264e7895c..15a7d6f74249fdb76fed733245ecb8665a17cf59 100644 (file)
@@ -559,6 +559,9 @@ parse_argv (int argc, char **argv)
          break;
        case 's':
          be_safe_global = true;
+         init_scheme_variables
+           += "(cons \'safe #t)\n";
+
          break;
        case 'p':
          make_preview = true;
index 7e405f0f19ccf13313777427c8ded5ae92a51561..0f5392c850fc087135169cd1e3c67b6305c0f9bb 100644 (file)
@@ -746,6 +746,25 @@ any sort of property supported by @internalsref{font-interface} and
 "
   (interpret-markup layout (cons (list new-prop) props) arg))
 
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; files
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(def-markup-command (verbatim-file layout props name) (string?)
+  "Read the contents of a file, and include verbatimly"
+
+  (interpret-markup
+   layout props
+   (if  (ly:get-option 'safe)
+       "Cannot read file in Safe mode"
+       (let*
+           ((str (ly:gulp-file name))
+            (lines (string-split str #\n)))
+
+         (make-typewriter-markup
+          (make-column-markup lines)))
+       )))
+
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; fonts.
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
index 69e7c747d959b8ab30af2dae1eae4226be0bd8c0..7137f47de69e33487a543ee16380ad3e543398c8 100644 (file)
        (dump-tweaks out-port (reverse val) (ly:make-moment 0 1))
         (display "}" out-port))
        tweaks)
+     (close-port out-port)
      ))
 
   (define (handle-page page)
index 2689bbcb85fbeae0c508635079ae58715c3841be..85c2f07dd7b0a56dea795b15cdabd0d6e0c8ff1e 100644 (file)
@@ -31,6 +31,7 @@ similar to chord syntax")
              (gui #f "running from gui; redirect stderr to log file")
              (delete-intermediate-files #f
                                         "delete unusable PostScript files")
+             (safe #f "Run safely")
              (verbose ,(ly:command-line-verbose?) "value for the --verbose flag")
              (ttf-verbosity 0
                           "how much verbosity for TTF font embedding?")