Inspired by the discussion at #447, I realized the measure global "number" object is problematic. It's supposed to be the measure's visual label. Some realizations:
- It's semantically different than the other uses of measure number (which refer to the index of the measure within the document).
- It isn't necessarily a number. Measure labels like "32(a)" and "32(b)" are valid, for example in repeats and alternate endings.
- It would be nice to encode additional metadata about the measure label, such as styling, positioning, show/hide decisions,
_c comments, etc. I believe measure.number is a holdover from older MNX thinking, before we started to prefer having full object dictionaries to be forwards-compatible for new features.
I propose we rename that "number" to "label" and create a new type "measure label", a dictionary instead of a number. At the moment it would have a single attribute "text", plus the global attributes, with room for adding more down the road.
Thoughts?
(This is distinct from the separate discussion in #447 regarding changing 1-based measure numbers to be 0-based.)
Inspired by the discussion at #447, I realized the measure global "number" object is problematic. It's supposed to be the measure's visual label. Some realizations:
_ccomments, etc. I believe measure.number is a holdover from older MNX thinking, before we started to prefer having full object dictionaries to be forwards-compatible for new features.I propose we rename that "number" to "label" and create a new type "measure label", a dictionary instead of a number. At the moment it would have a single attribute
"text", plus the global attributes, with room for adding more down the road.Thoughts?
(This is distinct from the separate discussion in #447 regarding changing 1-based measure numbers to be 0-based.)