Score examples: Difference between revisions

From ZMOG test wiki (master branch)
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== Testing ==
== Testing ==


== T289399 inline usage ==
[[Raw score output]]
 
=== 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.
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.

Revision as of 21:07, 3 December 2026

Testing

Raw score output

T289399 inline usage

I have a patch on T289399 to allow inline use, which renders 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 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 <p> tags around it, so using a <span> would have no effect. So I need to fix it a different way, somehow.

In an indented block, it displays inline segment of music notation generated by Score like this, which is promising, and something to do with the <dt> and <dd> tags used to display indentation. Seems there's some DOM checking going on.

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