New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More sophisticated layouts (from issue #185) #281
Conversation
You might consider changing the examples to read "Upper voices" and "Lower voices" instead of "Women" and "Men" since the voice parts are not exclusive to a given gender. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The HTML-element <nobr>
is a non-standard and deprecated element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nobr
We could use <span style="white-space: nowrap;">
instead.
Suggested changes:
|
@notator, while the labels are included in the examples, how we do the labels is not a focus, which is why I did not attempt to recognize the line breaks in the labels of the Orchestral Layout example at all. We can come back later and alter that example once we've hashed it out. I've finally responded to #277, which actually has a potential for greater impact on the new examples, if you want to go examine that. But I don't think that we need to hold up this PR for either unresolved issue. We'll just make a new PR with the changes in it. |
…-> voice; changed staff -> part-staff
@ahankinson Thanks — that's now fixed in the example ("SA" and "TB"). @clnoel Thanks — I agree |
@adrianholovaty I think you either misunderstood my suggestion for the Organ example, or made a typo. In the "organ3StaveSplitOber" layout, the following line: and
Other than that, I think it looks really good! --Christina |
@clnoel Thanks for the catch! That's now fixed. I'll go ahead and merge this now. |
This pull request brings the agreed-upon changes from #185 (specifically, from this summary comment) into the MNX spec. This introduces more sophisticated methods of mixing and matching notation data within layouts.
The updated docs (as of this pull request) are visible here: https://cdn.githubraw.com/w3c/mnx/issue-185/docs/
The specific changes are:
stem
andvoice
. Note that I opted forvoice
instead ofpart-voice
, to be consistent with the existingstaff
.Special thanks to @clnoel for putting together the example images and markup! Any mistakes are my fault.
For everybody reviewing this, I highly recommend looking at those four example documents to gain some intuition on how this stuff all works and what the benefit is. Speaking personally, I found it hard to understand the new elements/attributes in the long-winded discussion of #185, and seeing specific images made it much clearer.
One final note. The original summary suggested
<staff-layout>
needs apart-staff
attribute, but I didn't see the need to add that in this pull request. Wouldn't this already be handled by the child<part-layout>
'sstaff
attribute? Let me know if I'm missing something.