Special characters in MusicXML
1. Open attached mscz (produced in 1.3).
2. 'Export….'.
3. Choose 'MusicXML'.
4. 'Save'.
5. Open MusicXML.
Result: An error appears that it isn't a valid MusicXML file:
Fatal error: line 85 column 20 Element lyric is missing child element.
6. 'Yes'.
Result:
Several characters are missing - because in the mscz, they maybe subject to an algorithm that doesn't centre them and as a result, they aren't exported/imported? Are they supported?
Some characters don't appear identical to the mscz in their appearance, or presentation. It reminds me of this .
Notes:
Also attached is the produced MusicXML.
Both images use Emmentaler for the symbol and text fonts.
In 1.3, inputting semiquaver produced a quaver - hence the exclusion.
The slur-like objects appear when opening the mscz and MusicXML in 1.3, but not in 2.0. (There seems to be a bug somewhere: They appear in the exported PNG, but not in the application itself.)
Using MuseScore 2.0 Nightly Build 93e1d5b - Mac 10.7.5.
Attachment | Size |
---|---|
Special characters in MusicXML.mscz | 2.86 KB |
Special characters in MusicXML.xml | 48.85 KB |
Special characters in MusicXML - Expected Result.png | 165.27 KB |
Special characters in MusicXML - Actual Result.png | 161.17 KB |
Comments
The text handler in the MusicXML exporter only handles normal Unicode characters. The symbols are not supported. In principle these could exported to MusicXML, by exporting both the font and the code point used. This will only work as long as the position of the symbols in MuseScores font does not change. Furthermore, the receiving application must have the MuseScore fonts available.
Note that currently the symbols are simply ignored on export, which leads to invalid MusicXML for lyrics consisting of symbols only (which I believe is not a very plausible use case).
In reply to The lyrics handler in the by Leon Vinken
Hi Leon
Since you are more knowledgable in this, would you mind filing any issues?
If there's stuff not supported, then fine.
What about the characters not appearing identical to the mscz in appearance, or presentation? For example, look at bar 7 - the dot distance differs.
In reply to Hi Leon Since you are more by chen lung
See issues #40206: [MusicXML] Invalid file exported due to empty lyric and #40211: [MusicXML] import and export of symbols embedded in text.
It looks like a different font was used for the two screenshots, for example the C cedilla also looks slightly different.
In reply to See issues #40206: [MusicXML] by Leon Vinken
Thanks for filing those.
As stated in the original post though, both are the same font according to 'Style'>'General…'. Something must not be right.
About the off-centre issue, see this: #40296: Symbols in lyrics off-centre
I filed the remaining issue: #41916: [MusicXML] Differences in positioning of element and font of text