* lily/translator-def.cc: rename Translator_def to Context_def.
2004-01-11 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/bar-line.cc (compound_barline): add bartype : (dotted).
+
* lily/translator-def.cc: rename Translator_def to Context_def.
* Documentation/user/internals.itely (Lexical details): clarify
\bar ".|" c
\bar ".|." c
\bar "|" c
+\bar ":" c
}
\paper{raggedright = ##t}
}
-
Molecule thin = simple_barline (me, hair, h);
Molecule thick = simple_barline (me, fatline, h);
- Molecule colon;
Molecule dot = Font_interface::get_default_font (me)->find_by_name ("dots-dot");
Real dist = ( Staff_symbol_referencer::line_count (me) & 1 ? 1 :
(staff_space<2 ? 2 : .5) ) * staff_space;
- dot.translate_axis(dist/2,Y_AXIS);
- colon.add_molecule(dot);
- dot.translate_axis(-dist,Y_AXIS);
+ Molecule colon (dot);
+ colon.translate_axis(dist,Y_AXIS);
colon.add_molecule(dot);
+ colon.translate_axis(-dist/2,Y_AXIS);
Molecule m;
m.add_at_edge (X_AXIS, RIGHT, thin, 0, 0);
m.add_at_edge (X_AXIS, RIGHT, thin, thinkern, 0);
}
-
+ else if (str == ":")
+ {
+ int c = (Staff_symbol_referencer::line_count (me));
+
+ for (int i = 0 ; i < c - 1; i++)
+ {
+ Real y = (- (c-1.0) / 2 + 0.5 + i * staff_space);
+ Molecule d (dot);
+
+ d. translate_axis (y,Y_AXIS);
+ m.add_molecule (d);
+ }
+ }
return m;
}
translator_spec_body:
/**/ {
- $$ = Translator_def::make_scm ();
+ $$ = Context_def::make_scm ();
unsmob_context_def ($$)->set_spot (THIS->here_input ());
}
| TRANSLATOR_IDENTIFIER {
unsmob_context_def ($$)->set_spot (THIS->here_input ());
}
| translator_spec_body GROBDESCRIPTIONS embedded_scm {
- Translator_def*td = unsmob_context_def($$);
+ Context_def*td = unsmob_context_def($$);
for (SCM p = $3; gh_pair_p (p); p = ly_cdr (p)) {
SCM tag = gh_caar (p);
tg->definition_ = self_scm ();
SCM trans_names = get_translator_names (ops);
- tg->simple_trans_list_ = names_to_translators (trans_names);
+ tg->simple_trans_list_ = names_to_translators (trans_names, tg);
return tg;
}
Translator_group::get_simple_trans_list ()
{
return simple_trans_list_;
+
+}
+
+
#if 0
+SCM
+Translator_group::get_simple_trans_list ()
+{
if (simple_trans_list_ != SCM_BOOL_F)
return simple_trans_list_;
static_each (simple_trans_list_, &Translator::initialize);
return simple_trans_list_;
-#endif
}
+#endif
("||" . ("||" . ()))
(".|." . (".|." . ()))
("" . ("" . ""))
+ (":" . (":" . ""))
("empty" . (() . ()))
("brace" . (() . "brace"))
("bracket" . (() . "bracket"))