(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.
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.
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);
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))
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);
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);
(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)))
(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))
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))