Text lost when musicXML file imported
Reported version
3.2
Type
Functional
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project
MS 2.0.2 on Win 10 / MS 2.0.3 on Win 7
Import the attached MusicXML file. The verse text located between the "credit" tags fails to appear in the MuseScore file. In other similar scores, "credit" text gets imported into the "copyright" field of "Score properties."
Attachment | Size |
---|---|
academie.xml | 42.55 KB |
Fix version
3.5.0
Comments
Confirmed in 3.2.3.7365 on Windows 7.
Attached two additional examples, exported from Finale NotePad; MS misses the text in the credit-words tag
MusicXML allows credit-words to appear at any fixed location on any page, but MuseScore uses different concepts (header and footer on fixed page locations, boxes flowing with the music), lossless import is non-trivial.
The MusicXML importer tries to map credit words onto the page header and footer and ignores others. The attached files all contain instances of credit words appearing outside the page 1 header and footer area.
Feel free to suggest improved algorithms.
In reply to MusicXML allows credit-words… by Leon Vinken
My preference is for no information be lost without warning. So if the MusicXML importer encounters text that cannot be easily fit into a MuseScore category, I would suggest appending a text frame to the end of the score and placing the text there, maybe with some explanation or the XML tags. Or have the 'bad XML' warning pop up, and if you choose to see the details, the box would present the unimported text.
relates to #270643: [EPIC] MusicXML import/export issues
Will have another go at trying to improve how MuseScore handles credit-words.
Proof of concept version built, result of importing the files above attached. All texts present in the MusicXML files as credit-words are imported and put into boxes at the top and bottom of pages as defined by the exporting program. Due to differences in layout algorithms, this may not be where MuseScore will place them. Furthermore, our competition (at least my in my Finale and Sibelius examples) tends to export page headers and footers as credit-words too, which may conflict with the headers and footers created by MuseScore. Some manual editing will be required after importing.
As the attached files were created with a modified version of MuseScore 3.4 development, you will probably need 3.4 to open them. No editing was done on these files, this is how they would import into MuseScore.
In reply to Proof of concept version… by Leon Vinken
Fantastic, thank you ! FWIW, I find that some manual editing is always required after importing, for one reason or another - usually related to layout.
Pull request: https://github.com/musescore/MuseScore/pull/5666
Fixed in branch master, commit 6587b8a6fd
fix #104731 - Text lost when musicXML file imported
Fixed in branch master, commit 222d79b64c
_Merge pull request #5666 from lvinken/104731-musicxml-credit-word-import
fix #104731 - Text lost when musicXML file imported_
Automatically closed -- issue fixed for 2 weeks with no activity.
The fix for this issue seems to have caused a regression, see https://musescore.org/en/node/309655