[MusicXML Export] export formatted text as MusicXML
Formatted text and text containing symbols is encoded by MuseScore (current trunk) in XML. When exporting to MusicXML, the encoded formatting is not removed but stays (with less than and greater than characters replaced by proper character entity references). When importing into other applications or older MuseScore versions, these texts seem to contain HTML.
This applies to all text types supporting formatting or symbols, e.g. staff text and lyrics.
See also:
#25088: [MusicXML] Import/export of metronome marking not working
#25164: [MusicXML export] qt-rich-text html tags in exported text
Comments
Am investigating the structural solution: translating the MuseScore markup into proper MusicXML.
2c4bca2a5e
There are still issues remaining, this one is not completely done yet.
E.g. part-name and part-abbreviation also contain formatted text that is currently not handled.
OK, please fix the warning then too:
...\MuseScore\mscore\musicxmlfonthandler.cpp:34:16: warning: 'QString Ms::charFormat2QString(const Ms::CharFormat&)' defined but not used [-Wunused-function]
static QString charFormat2QString(const CharFormat& f)
Will fix the warning.
Found a different root cause for part names, see #25900: Embedded markup in instrument long and short name after importing MuseScore 1.3 mscx file.
Fixed by exporting text formatting as correct MusicXML. As of commit 9924c96d, I believe everything works OK.
Automatically closed -- issue fixed for 2 weeks with no activity.