]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scm/output-ps.scm (define-fonts): Do not crash when encoding==#f
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 10 Apr 2004 01:50:27 +0000 (01:50 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 10 Apr 2004 01:50:27 +0000 (01:50 +0000)
(ugh?).

* scm/output-tex.scm (output-scopes): Check if variable is bound.

* scm/define-markup-commands.scm (fill-line): Use
make-simple-markup (WAS: unexisting make-word-markup).

* lily/text-item.cc (interpret_markup): Bugfix, transpose
ENCODING, MARKUP parameters for interpret_string.

* lily/include/book.hh:
* lily/book.cc: New file.

ChangeLog
lily/book.cc
lily/text-item.cc
scm/define-markup-commands.scm
scm/output-ps.scm
scm/output-tex.scm

index 862940022cf4946da5b761246febdafce690500f..877805868a7508ca249fb306996f9461c2b823c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 2004-04-10  Jan Nieuwenhuizen  <janneke@gnu.org>
 
+       * scm/output-ps.scm (define-fonts): Do not crash when encoding==#f
+       (ugh?).
+
+       * scm/output-tex.scm (output-scopes): Check if variable is bound.
+
+       * scm/define-markup-commands.scm (fill-line): Use
+       make-simple-markup (WAS: unexisting make-word-markup).
+
+       * lily/text-item.cc (interpret_markup): Bugfix, transpose
+       ENCODING, MARKUP parameters for interpret_string.
+
        * lily/input-file-results.cc (do_one_file): Remove Paper_book hack.
 
        * lily/score.cc (book_rendering): New method.
index f539374cbf006f19d5a71be22d16af4ca81e50d7..c6a4ddd5241a2b78e775a315e3cb8a1c1bb9b4c3 100644 (file)
@@ -89,7 +89,8 @@ Book::process (String outname, Music_output_def *default_def, SCM header)
            paper_book->papers_.push (paper);
          paper_book->scores_.push (systems);
          paper_book->global_headers_.push (global_input_file->header_);
-         paper_book->headers_.push (scores_[i]->header_);
+         //paper_book->headers_.push (scores_[i]->header_);
+         paper_book->headers_.push (header);
        }
     }
   paper_book->output (outname);
index 3241dca091237481d03786fa8e548de6e67f798c..8964c525e105ae75bee55439a85f8d489f4552cf 100644 (file)
@@ -29,6 +29,7 @@ Text_item::interpret_string (SCM paper, SCM props, SCM encoding, SCM markup)
   
   String str = ly_scm2string (markup);
   Font_metric *fm = select_encoded_font (pap, props, encoding);
+
   SCM lst = SCM_EOL;      
   Box b;
   if (Modified_font_metric* mf = dynamic_cast<Modified_font_metric*> (fm))
@@ -54,9 +55,7 @@ SCM
 Text_item::interpret_markup (SCM paper, SCM props, SCM markup)
 {
   if (is_string (markup))
-    {
-      return interpret_string (paper, props, markup, SCM_EOL);
-    }
+    return interpret_string (paper, props, SCM_EOL, markup);
   else if (is_pair (markup))
     {
       SCM func = ly_car (markup);
@@ -73,7 +72,7 @@ MAKE_SCHEME_CALLBACK (Text_item,print,1);
 SCM
 Text_item::print (SCM grob)
 {
-  Grob * me = unsmob_grob (grob);
+  Grob *me = unsmob_grob (grob);
   
   SCM t = me->get_property ("text");
   SCM chain = Font_interface::text_font_alist_chain (me);
index 0e049f7ce8905e7a1153f48ad66896b7f77d2771..913772b64537a18c1a9214e4f8e46d6a4fe9dd3a 100644 (file)
@@ -51,9 +51,9 @@
                           (if (= word-count 1) 2 (- word-count 1)))))
        (line-stencils (if (= word-count 1)
                           (map (lambda (x) (interpret-markup paper props x))
-                               (list (make-word-markup "")
+                               (list (make-simple-markup "")
                                      (car markups)
-                                     (make-word-markup "")))
+                                     (make-simple-markup "")))
                                stencils)))
     (stack-stencil-line fill-space line-stencils)))
   
index a49156c011ebd017138968e54db0bfd33a1f5624..ca38171f5b0c5306082acb79abf2af23fa1c2ae8 100644 (file)
                               (assoc-get 'input-name
                                          (ly:font-encoding-alist x)))
                             font-list))
-        (encodings (uniq-list (sort-list encoding-list string<?))))
+        ;;(encodings (uniq-list (sort-list encoding-list string<?))))
+        (encodings (uniq-list (sort-list
+                               ;; FIXME: UGR
+                               (filter (lambda (x) (string? x)) encoding-list)
+                               string<?))))
     
     (string-append
      (apply string-append (map font-load-encoding encodings))
index 42fab6aeaecd8ce42826aab3d95eb2d4b1200eee..6c529914c4440cbecf7bcc889df9179dec5e7f3b 100644 (file)
      string-append
      (module-map
      (lambda (sym var)
-       (let ((val (variable-ref var))
-            ;;(val (if (variable-bound? var) (variable-ref var) '""))
+       (let (;;(val (variable-ref var))
+            (val (if (variable-bound? var) (variable-ref var) '""))
             (tex-key (symbol->string sym)))
         
         (if (and (memq sym fields) (string? val))