-
Notifications
You must be signed in to change notification settings - Fork 64
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
Move rotate attribute to att.coordinated #681
Conversation
This makes rotate apply to all elements with the att.coordinated class and not just the zone element. This expands it to the surface and symbolDef elements.
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.
I think in general it's better to move this up to att.coordinated. I'm not perfectly sure if I'd prefer to see it in a separate sub-class or not. Normally, I would, but considering where this occurs, I think it's fine to put placement and rotation in one class. What I'm more concerned with is the description. @JRegimbal's clarification in a18fee0 helped, but didn't fully fix it in my perception. Ideally, we should have an image somewhere in the documentation, both in the Guidelines and here as a remark (compare with https://music-encoding.org/guidelines/v4/data-types/data.accidental.written.html). It should be absolutely clear what the center of the rotation is, and if the two points encoded by ulx/uly and lrx/lry are already rotated (so that width and height of that rect can't be derived directly anymore, but one could add att.dimensions to compensate). I'd really like to see more explicit statements about all this before putting it in, even though it's certainly going in the right direction :-)
My impression of how So for something like Does this seem like a sensible interpretation to you @lpugin and @kepper? If so I can add another commit making this explicit. |
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.
Unfortunately I missed the addition of @rotate
in the first place… At the moment I'm in eager need of some real world examples for @rotate
. As of the name (picking up the question is it the zone or the content that are being rotated) why not pick @rotated
which makes it clear in the current facsimile context. (then why limit it to theses facsimile elements? What about born digital documents?)
Concerning symbolDef
I'd see more sense in adding@rotate(d)
to symbol
as otherwise one would need multiple symbolDef
just to encode a normal and rotated version of a symbol.
source/modules/MEI.shared.xml
Outdated
@@ -689,6 +689,19 @@ | |||
<rng:data type="nonNegativeInteger"/> | |||
</datatype> | |||
</attDef> | |||
<attDef ident="rotate"> | |||
<desc> | |||
Indicates the amount by which the contents of this zone have been rotated clockwise, with respect |
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 description is still referring to mei:zone
if @rotate
is to be moved to att.rotated
this should be generalised
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.
Oh thanks nice I missed that!
@@ -7079,7 +7092,7 @@ | |||
<constraint> | |||
<!-- See http://vocab.org/frbr/core for more-precise entity-to-entity constraints --> | |||
<sch:rule | |||
context="mei:relationList/mei:relation[parent::mei:work or parent::mei:expression or | |||
context="mei:relationList/mei:relation[parent::mei:work or parent::mei:expression or |
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.
It's nice that this PR fixes those trailing whitespaces but for the sake of reviewing it would be better not to include such changes ;-)
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.
Ah sorry about that my editor is very aggressive with trailing whitespace.
Anything wrong with this PR? (This is currently blocking the update of the Schema within Verovio) |
need a small fix in the documentation I'd say, sorry for the delay: music-encoding/guidelines#178 |
How does it look now? |
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.
Apologies for the long wait – this is definitely ready for merge, just as music-encoding/guidelines#178 (to be done tomorrow at the ODD Friday…)
Could we revert this particular change? (Yes, I know I'm late to the party.) I don't see the sense in having |
The intention was to be able to capture the offset of the surface from the main text direction. If an image was rotated by 2° during digitization there was no way to capture this such that the notation and the surface could be aligned. You could capture width and height. It's explained here: #620 |
In fact, looking back at that you agreed with this, and actually suggested |
If it helps you can think of a |
This makes
@rotate
apply to all elements with theatt.coordinated
class and not just thezone
element. This expands it to thesurface
andsymbolDef
elements.See #674 for more information on
@rotate
.