Skip to content

Changing measure-global "number" to "label" #501

@adrianholovaty

Description

@adrianholovaty

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions