Expose SMuFL identifiers in Master Palette

• Jan 22, 2021 - 14:33
Reported version
3.6
Priority
P2 - Medium
Type
Ergonomical (UX)
Frequency
Few
Severity
S5 - Suggestion
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

There is currently no way within MuseScore to retrieve the SMuFL id for a musical symbol. This would be helpful to allow us to insert said symbols into text fields (such as line start text) using the <sym> tag syntax.


Comments

yes, that is a start, or maybe right click / properties. Or maybe with a way to select and copy. But that is definetely already an improvement

diff --git a/mscore/symboldialog.cpp b/mscore/symboldialog.cpp
index 1a31881d2..80342bfba 100644
--- a/mscore/symboldialog.cpp
+++ b/mscore/symboldialog.cpp
@@ -57,7 +57,7 @@ void SymbolDialog::createSymbols()
                || Sym::id2userName(id).contains(search->text(), Qt::CaseInsensitive)) {
                   Symbol* s = new Symbol(gscore);
                   s->setSym(SymId(id), f);
-                  sp->append(s, Sym::id2userName(SymId(id)));
+                  sp->append(s, qApp->translate("symUserNames", Sym::id2userName(SymId(id)).toUtf8()) + " \"<sym>" + Sym::id2name(SymId(id)) + "</sym>\"");
                   }
             }
       }

Shows the translated names for those that have one as a bonus.

Getting is selectable or as a property would be wonderful, but much (?) more involved.
The translation part is something we should do anyhow, amy might be able to 'sneak' into 3.6.1 ;-)

I have made a copy option in the right click menu, like this:

ezgif-7-6c7cc96908b9.gif

The question is: How shall we name the option? Is "Copy SMuFL Symbol Code" clear enough?

Status PR created fixed

Fixed in branch 3.x, commit 08656b0d1e

_Fix #316071: Expose SMuFL identifiers in Master Palette

Shows the SMuFL Id in addition to the descriptive text for the symbol.
Additionaly shows the translated description, if exists._

Fix version
3.6.1