w3c / musicxml

MusicXML specification
518 stars 57 forks source link

whitespace handling in `<direction>` undefined #515

Open lemzwerg opened 6 months ago

lemzwerg commented 6 months ago

Related to #509 I wonder whether

<direction placement="below">
    <direction-type>
        <words>foo</words>
    </direction-type>
    <direction-type>
        <words>bar</words>
    </direction-type>
</direction>

produces 'foobar' or 'foo bar' in the output... AFAICS this is not covered in the MusicXML standard – the xml:space attribute is only responsible for whitespace within a <words> element. The question is not of theoretical nature only, since 'foo' and 'bar' might have different font attributes, which means that it would not be possible to squeeze them into a single <words> element.

mdgood commented 6 months ago

Thanks for pointing out the typo in that answer. I've edited it to add the leading space in " subito". Your example produces "foobar".

lemzwerg commented 5 months ago

Your example produces "foobar".

Normally, I would close this issue because I got my answer. However, as far as I can see, it would be beneficial to non-XML experts to explicitly mention this concatenation behaviour somewhere, for example, in the description of <words>. For this reason, I leave it open and ask that you tag this issue as a request for improved documentation.

mscuthbert commented 5 months ago

Indeed. That's why I've left it open.

I'm working on some improved tooling for editing docs but keeping all the change requests open until they are complete.