before are also flattened, ie \line must be explicitely used.
* Documentation/user/changing-defaults.itely:
* Documentation/user/notation.itely:
* input/wilhelmus.ly:
* input/regression/instrument-name-markup.ly:
* input/regression/markup-score.ly:
* input/regression/new-markup-scheme.ly:
* input/regression/new-markup-syntax.ly:
* input/test/coriolan-margin.ly: use \line in markups where
appropriate
+2004-11-30 Nicolas Sceaux <nicolas.sceaux@free.fr>
+
+ * lily/parser.yy (markup): in markups, { .. } without command
+ before are also flattened, ie \line must be explicitely used.
+
+ * Documentation/user/changing-defaults.itely:
+ * Documentation/user/notation.itely:
+ * input/wilhelmus.ly:
+ * input/regression/instrument-name-markup.ly:
+ * input/regression/markup-score.ly:
+ * input/regression/new-markup-scheme.ly:
+ * input/regression/new-markup-syntax.ly:
+ * input/test/coriolan-margin.ly: use \line in markups where
+ appropriate
+
2004-11-28 Nicolas Sceaux <nicolas.sceaux@free.fr>
* scm/new-markup.scm (map-markup-command-list): helper function
@code{\center-align}, etc, are not grouped with @code{< ... >} anymore,
but with @code{@{ ... @}}, eg:
@example
-\markup \column @{ @{ first line @} @{ second line @} @}
+\markup \column @{
+ \line @{ first line @}
+ \line @{ second line @}
+@}
@end example
@item
In markup mode you can compose expressions, similar to mathematical
-expressions, XML documents, and music expressions. The braces group
-notes into horizontal lines. Other types of lists also exist: you can
-stack expressions grouped vertically with
-the command @code{\column}. Similarly, @code{\center-align} aligns
-texts by their center lines:
+expressions, XML documents, and music expressions. You can stack
+expressions grouped vertically with the command @code{\column}.
+Similarly, @code{\center-align} aligns texts by their center lines:
@lilypond[quote,verbatim,fragment,relative=1]
-c1^\markup { \column { a bbbb c } }
+c1^\markup { \column { a bbbb \line { c d } } }
c1^\markup { \center-align { a bbbb c } }
c1^\markup { \line { a b c } }
@end lilypond
@verbatim
\paper {
bookTitleMarkup = \markup {
- \fill-line <
+ \fill-line @{
\fromproperty #'header:title
\fromproperty #'header:composer
- >
+ @}
}
}
@end verbatim
@lilypond[quote,fragment,verbatim,raggedright]
\set Staff.instrument = \markup {
\column { "Clarinetti"
- { "in B" \smaller \flat } } }
+ \line { "in B" \smaller \flat } } }
c''1
@end lilypond
s^\markup {
\column {
"vaticana"
- { " " \musicglyph #"accidentals-vaticana-1"
- " " \musicglyph #"accidentals-vaticana0" }
+ \line { " " \musicglyph #"accidentals-vaticana-1"
+ " " \musicglyph #"accidentals-vaticana0" }
}
\column {
"medicaea"
- { " " \musicglyph #"accidentals-medicaea-1" }
+ \line { " " \musicglyph #"accidentals-medicaea-1" }
}
\column {
"hufnagel"
- { " " \musicglyph #"accidentals-hufnagel-1" }
+ \line { " " \musicglyph #"accidentals-hufnagel-1" }
}
\column {
"mensural"
- { " " \musicglyph #"accidentals-mensural-1"
- " " \musicglyph #"accidentals-mensural1" }
+ \line { " " \musicglyph #"accidentals-mensural-1"
+ " " \musicglyph #"accidentals-mensural1" }
}
}
}
\new Lyrics \lyricmode {
\markup { \column {
\typewriter "vaticana"
- { " " \musicglyph #"custodes-vaticana-u0" }
+ \line { " " \musicglyph #"custodes-vaticana-u0" }
} }
\markup { \column {
\typewriter "medicaea"
- { " " \musicglyph #"custodes-medicaea-u0" }
+ \line { " " \musicglyph #"custodes-medicaea-u0" }
}}
\markup { \column {
\typewriter "hufnagel"
- { " " \musicglyph #"custodes-hufnagel-u0" }
+ \line { " " \musicglyph #"custodes-hufnagel-u0" }
}}
\markup { \column {
\typewriter "mensural"
- { " " \musicglyph #"custodes-mensural-u0" }
+ \line { " " \musicglyph #"custodes-mensural-u0" }
}}
}
@end lilypond
\score {
\new Staff {
- \set Staff.instrument = \markup { \column { "Clarinetti" { "in B" \textFlat } } }
+ \set Staff.instrument = \markup { \column { "Clarinetti" \line { "in B" \textFlat } } }
\set Staff.instr = \markup { \smaller { "Cl(B" \textFlat ")" } }
{ c''1 \break c'' }
\header {
title = "Solo Cello Suites"
subtitle = "Suite IV"
- subsubtitle = \markup { \fill-line { { "Originalstimmung: " \tuning } } }
+ subsubtitle = \markup { "Originalstimmung:" \tuning }
}
\relative {
\musicglyph #"accidentals--1"
\combine "X" "+"
\combine "o" "/"
- \box \column { { "string 1" } { "string 2" } }
+ \box \column { \line { "string 1" } \line { "string 2" } }
"$\\emptyset$"
\italic Norsk
\super "2"
\combine "X" "+"
\combine "o" "/"
% \char-number #"abc1234abc"
- \box \column { { "string 1" } { "string 2" } }
+ \box \column { \line { "string 1" } \line { "string 2" } }
"$\\emptyset$"
\italic Norsk
\super "2"
}
clarinetti = \relative c' {
- \set Staff.instrument = \markup { \column { "Clarinetti" { "in B" \raisedFlat } } }
+ \set Staff.instrument = \markup { \column { "Clarinetti" \line { "in B" \raisedFlat } } }
\set Staff.instr = \markup { \smaller { "Cl(B" \raisedFlat ")" } }
c1 c
}
corni = \relative c' {
- \set Staff.instrument = \markup { \column { "Corni" { "in E" \raisedFlat } } }
+ \set Staff.instrument = \markup { \column { "Corni" \line { "in E" \raisedFlat } } }
\set Staff.instr = \markup { \smaller { "Cor(E" \raisedFlat ")" } }
c1 c
oneHalfNoteTime = \markup {
\override #'(baseline-skip . 0)
- \column { { \number "1" } { \smaller \smaller \note #"2" #-0.5 } }
+ \column { \line { \number "1" } \line { \smaller \smaller \note #"2" #-0.5 } }
}
\layout {
%type <scm> Generic_prefix_music_scm
%type <scm> lyric_element
%type <scm> Alternative_music
-%type <scm> full_markup markup_composed_list markup_braced_list markup_braced_list_body markup_head_1_item markup_head_1_list markup simple_markup markup_top
+%type <scm> full_markup markup_list markup_composed_list markup_braced_list markup_braced_list_body
+%type <scm> markup_head_1_item markup_head_1_list markup simple_markup markup_top
%type <scm> mode_changing_head
%type <scm> mode_changing_head_with_context
%type <scm> object_id_setting
;
markup_top:
- markup_composed_list {
+ markup_list {
$$ = scm_list_2 (ly_scheme_function ("line-markup"), $1);
}
| markup_head_1_list simple_markup {
| simple_markup {
$$ = $1;
}
- | markup_braced_list {
- $$ = scm_list_2 (ly_scheme_function ("line-markup"), $1);
+ ;
+
+markup_list:
+ markup_composed_list {
+ $$ = $1;
+ }
+ | markup_braced_list {
+ $$ = $1;
}
;
| markup_braced_list_body markup {
$$ = scm_cons ($2, $1);
}
- | markup_braced_list_body markup_composed_list {
+ | markup_braced_list_body markup_list {
$$ = scm_append_x (scm_list_2 (scm_reverse_x ($2, SCM_EOL), $1));
}
;
| MARKUP_HEAD_EMPTY {
$$ = scm_list_1 ($1);
}
- | MARKUP_HEAD_LIST0 markup_braced_list {
+ | MARKUP_HEAD_LIST0 markup_list {
$$ = scm_list_2 ($1,$2);
}
| MARKUP_HEAD_MARKUP0_MARKUP1 markup markup {
| simple_markup {
$$ = $1;
}
- | markup_braced_list {
- $$ = scm_list_2 (ly_scheme_function ("line-markup"), $1);
- }
;
%%