* lily/parser.yy (bass_number): allow strings for bassfigure too.
* scm/bass-figure.scm (make-bass-figure-markup): add
alignBassFigureAccidentals property.
2003-07-17 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ * scm/define-music-properties.scm (figure): use string for 'figure
+
+ * lily/parser.yy (bass_number): allow strings for bassfigure too.
+
+ * input/regression/ : add raggedright = ##t where applicable.
+
* scm/bass-figure.scm (make-bass-figure-markup): add
alignBassFigureAccidentals property.
@menu
* Combining music into compound expressions::
* Adding articulation marks to notes ::
-* More basic rhythms::
+* Basic rhythmical commands::
* Commenting input files::
@end menu
\musicglyph #"accidentals--1"
\combine "X" "+"
\combine "o" "/"
-
+% \char-number #"abc1234abc"
\box \column << { "string 1" } { "string 2" } >>
"$\\emptyset$"
\italic Norsk
#include <ctype.h>
#include <stdlib.h>
+
+
#include "translator-def.hh"
#include "lily-guile.hh"
#include "misc.hh"
%token FIGURE_SPACE
%type <i> exclamations questions dots optional_rest
-%type <i> bass_number bass_mod
-%type <scm> br_bass_figure bass_figure figure_list figure_spec
+%type <i> bass_mod
+%type <scm> bass_number br_bass_figure bass_figure figure_list figure_spec
%token <i> DIGIT
%token <scm> NOTENAME_PITCH
%token <scm> TONICNAME_PITCH
BASS FIGURES
*****************************************************************/
bass_number:
- DIGIT
- | UNSIGNED
+ DIGIT {
+ $$ = scm_number_to_string (gh_int2scm ($1), gh_int2scm (10));
+ }
+ | UNSIGNED {
+ $$ = scm_number_to_string (gh_int2scm ($1), gh_int2scm (10));
+ }
+ | STRING { $$ = $1 }
;
bass_mod:
Music *bfr = MY_MAKE_MUSIC("BassFigureEvent");
$$ = bfr->self_scm();
- bfr->set_mus_property ("figure", gh_int2scm ($1));
+ bfr->set_mus_property ("figure", $1);
scm_gc_unprotect_object ($$);
}
(acc (ly:get-mus-property fig-music 'alteration))
(acc-markup #f)
(fig-markup
- (if (number? fig)
- (make-number-markup (number->string fig))
+ (if (string? fig)
+ (make-simple-markup fig)
(make-simple-markup (if align-accs " " ""))
)))
-
+
(if (number? acc)
(make-line-markup (list fig-markup
(alteration->text-accidental-markup acc)))
translation property")
(music-property-description 'what string? "What to change for auto-change. FIXME, naming")
-(music-property-description 'figure number? "number for figured bass")
+(music-property-description 'figure string? "a `figure' (which may be
+a string) for figured bass")
(music-property-description 'alteration number? "alteration for figured bass")
(music-property-description 'bracket-start boolean? "start a bracket
here. TODO: use span requests?")
(bracketify-molecule m Y th (* 2.5 th) th)
))
-
;; todo: fix negative space
(define (hspace-markup grob props . rest)
"Syntax: \\hspace NUMBER."
;; size
(cons smaller-markup (list markup?))
(cons bigger-markup (list markup?))
-
+; (cons char-number-markup (list string?))
+
;;
(cons sub-markup (list markup?))
(cons normal-size-sub-markup (list markup?))