Score examples: Difference between revisions

From ZMOG test wiki (master branch)
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:
=== T289399 inline usage ===
=== T289399 inline usage ===


I have a patch on [https://phabricator.wikimedia.org/T289399 T289399] to allow inline use, which renders music in a <code><nowiki><span></nowiki></code> element instead of the usual <code><nowiki><div></nowiki></code>. So for example, this example from the [https://en.wikisource.org/wiki/Page:A_Dictionary_of_Music_and_Musicians_vol_2.djvu/695 cited page] on WikiSource <score inline> { \new Staff \with { \override StaffSymbol #'line-count = #1 } { \omit Score.TimeSignature \time 6/4 \omit Score.Clef { \override Stem.length-fraction = #0.4 b'2 r } } } </score> should now form part of the text flow.  
[https://phabricator.wikimedia.org/T289399 T289399] allows for inline use, by rendering music in a <code><nowiki><span></nowiki></code> element instead of the usual <code><nowiki><div></nowiki></code>. So for example, this example from the [https://en.wikisource.org/wiki/Page:A_Dictionary_of_Music_and_Musicians_vol_2.djvu/695 cited page] on WikiSource <score inline> { \new Staff \with { \override StaffSymbol #'line-count = #1 } { \omit Score.TimeSignature \time 6/4 \omit Score.Clef { \override Stem.length-fraction = #0.4 b'2 r } } } </score> should now form part of the text flow.  


Without specifying the <code>inline</code> parameter, Score displays in a div, as usual: <score> { \new Staff \with { \override StaffSymbol #'line-count = #1 } { \omit Score.TimeSignature \time 6/4  \omit Score.Clef { \override Stem.length-fraction = #0.4 b'2 r } } } </score>
Without specifying the <code>inline</code> parameter, Score displays in a div, as usual: <score> { \new Staff \with { \override StaffSymbol #'line-count = #1 } { \omit Score.TimeSignature \time 6/4  \omit Score.Clef { \override Stem.length-fraction = #0.4 b'2 r } } } </score>

Latest revision as of 21:54, 3 December 2026

Testing

Raw score output

T289399 inline usage

T289399 allows for inline use, by rendering music in a <span> element instead of the usual <div>. So for example, this example from the cited page on WikiSource segment of music notation generated by Score should now form part of the text flow.

Without specifying the inline parameter, Score displays in a div, as usual:

segment of music notation generated by Score

With sound requested, inline segment of music notation generated by Score does not display audio controls, otherwise:

segment of music notation generated by Score

T60688 staff instrument name bug

Task T60688 staff with name "Clarinet" displays as "inet" instead of "Clarinet":

segment of music notation generated by Score

Conclusion: cannot reproduce with Lilypond 2.23.82 and Score from recent master using SVG output (see Special:Version).

Example Scores for SVG output

From Cadence:

segment of music notation generated by Score

Multi-system input

From String Quartet No. 1 (Górecki)

segment of music notation generated by Score

Note