Skip to content

Conversation

@Jojo-Schmitz
Copy link
Contributor

@Jojo-Schmitz Jojo-Schmitz commented Nov 10, 2020

Add a "To <sym>coda</sym>" to master "Repeats and Jumps" palette .
The "To " part of it is sort of needed to tell it from the plain Coda in the palettes (so to not have to rely on the tool tip only), but is likely to not be wanted in score, so needs to get deleted there manually.
Seems we need to hardcode the size of the Coda symbol.

Removing some rather rare symbols from the Basis workspace's "Repeats
and Jumps" palette, namely "Segno variation" and "Varied coda".

Resolves https://musescore.org/en/node/312254

Port to MuseScore 4 needed too I guess, I'll take care of it once this PR passed muster ;-)

@Jojo-Schmitz
Copy link
Contributor Author

Jojo-Schmitz commented Nov 10, 2020

mtest fails in tst_palette, but without any decent error message, leaving us a bit in the dark here. Probably due to using the identical tooltip "To Coda". So either that needs to get changed, or declared as an exception. let's go for the former and make it "To Coda (Symbol)" (put prepare the mtest for the latter). 3rd alternative would be to add this to the master palette only. 4th alternative would be to use therCoda symbols in the tooltip, "To &#x1D10C;" (workspace) resp. "To \U0001D10C" (master palette), not sure that what screen readers make out of that?

I finally went for a combination of 2nd and 3rd, i.e. "To Coda (Symbol)" but only in the master palette.

break;

case Type::TOCODASYM:
txt = "To <font size=\"20\"/><sym>coda</sym>";
Copy link
Contributor Author

@Jojo-Schmitz Jojo-Schmitz Nov 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately we have to hard code the size of that symbol (here to the default size of the 'plain' Coda, 20 pt), it'd be way too small otherwise (12 pt per default).

<Cell name="To Coda">
<Marker>
<style>Repeat Text Left</style>
<text>To <font size="20"/><sym>coda</sym></text>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately we have to hard code the size of that symbol (here to the default size of the 'plain' Coda, 20 pt), it'd be way too small otherwise (12 pt per default).

{ Marker::Type::CODETTA , QT_TRANSLATE_NOOP("markerType", "Codetta") },
{ Marker::Type::FINE , QT_TRANSLATE_NOOP("markerType", "Fine") },
{ Marker::Type::TOCODA , QT_TRANSLATE_NOOP("markerType", "To Coda") },
{ Marker::Type::TOCODASYM, QT_TRANSLATE_NOOP("markerType", "To Coda (Symbol)")},
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be able to distinguish the 2 Codas, esp. for visually impaired users (and to appease the tst_palette mtest)

@Jojo-Schmitz Jojo-Schmitz changed the title Fix #312254: Add alternative choice of “To Coda” [Mu3] Fix #312254: Add alternative choice of “To Coda” Nov 12, 2020
@Jojo-Schmitz Jojo-Schmitz changed the title [Mu3] Fix #312254: Add alternative choice of “To Coda” [MU3] Fix #312254: Add alternative choice of “To Coda” Nov 12, 2020
Add a "To<sym>coda</</sym>" to master "Repeats and Jumps" palette.
The "To " part of it is sort of needed to tell it from the plain Coda in
the palettes (so to not have to rely on the tool tip only), but is
likely to not be wanted in score, so needs to get deleted there
manually.
Removing some rather rare symbols from the Basis workspace's "Repeats
and Jumps" palette, namely "Segno variation" and "Varied coda".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants