Score examples: Difference between revisions

From ZMOG test wiki (master branch)
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
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> ought to be part of the text flow, but currently isn't (July 2026). Fiddling with the CSS using the browser debugger, it seems something else is closing the <code><nowiki><p></nowiki></code> tags around it, so using a <code><nowiki><span></nowiki></code> would have no effect. So I need to fix it a different way, somehow.
[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.  


: In an indented block, it displays inline <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> like this, which is promising, and something to do with the <code><nowiki><dt></nowiki></code> and <code><nowiki><dd></nowiki></code> tags used to display indentation. Seems there's some DOM checking going on.
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>
 
With sound requested, inline <score sound="1" inline="1"> { \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> does not display audio controls, otherwise: <score sound="1"> { \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>


=== T60688 staff instrument name bug ===
=== T60688 staff instrument name bug ===

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