[MusicXML Export] export formatted text as MusicXML

• Mar 31, 2014 - 21:45
Type
Functional
Severity
S4 - Minor
Status
closed
Project
Tags

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

Status (old) fixed active

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)

Title [MusicXML Export] text contains MuseScore specific markup [MusicXML Export] export formatted text as MusicXML
Status (old) active fixed

Fixed by exporting text formatting as correct MusicXML. As of commit 9924c96d, I believe everything works OK.