Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance text tab command to preserve placement #5475

Merged
merged 1 commit into from
Apr 14, 2020

Conversation

Harmoniker1
Copy link
Contributor

@Harmoniker1 Harmoniker1 commented Nov 15, 2019

Resolves: https://musescore.org/en/node/297092#comment-958921.

If current text (staff text/system text/fingering) is UNSTYLED or NOSTYLE, the next text created using text tab command inherits the same PropertyFlags and Placement, making it much easier to put all texts above/below staves.

@MarcSabatella
Copy link
Contributor

This should work for other text types as well, BTW. I call it "fingering mode" but usually put it in quotes, because it actually works for staff text etc. Only difference is you need Alt+Right/Left rather than Space/Shift+Space to do the navigation. So this change should in theory also allow you to flip a staff text below, start editing it, and hit Alt+Right and the new texts are also below.

I haven't built this but I expect it works as expected :-)

@Harmoniker1 Harmoniker1 changed the title enhance fingering mode to preserve placement enhance text-tab mode to preserve placement Nov 15, 2019
@Harmoniker1
Copy link
Contributor Author

@MarcSabatella I included staff text & system text as well. Thanks for clarifying! I didn't even know they can do the same. I'm just not sure if I called it right, text-tab mode? Is there a more conventional name for that?

@MarcSabatella
Copy link
Contributor

Since the original impetus was for fingerings and only during implementation did I see that it could work just as easily for other text, “fingering mode” is still the most recognized name. But it’s not just for fingering and it’s not a separate mode at all. So, “text tab command” is probably accurate.

@Harmoniker1 Harmoniker1 changed the title enhance text-tab mode to preserve placement enhance text tab command to preserve placement Nov 16, 2019
@Harmoniker1
Copy link
Contributor Author

Done, thanks!

@Harmoniker1
Copy link
Contributor Author

Harmoniker1 commented Nov 17, 2019

I'm interested in script test. I'll see if I can create one for this.

But I see in that introduction forum topic, "Text edit is not recorded", so I'm not sure whether a script test can be created for this...

@Harmoniker1
Copy link
Contributor Author

Well, text edit isn't recorded, but adding texts is.

@Harmoniker1
Copy link
Contributor Author

I don't understand, why did Travis build break off?

@Jojo-Schmitz
Copy link
Contributor

Jojo-Schmitz commented Nov 17, 2019

The build just took too long, for some reason. Most likely not your fault and restarting that Travis now would most probably pass

@Harmoniker1
Copy link
Contributor Author

The build just took too long, for some reason. Most likely not your fault and restarting that Travis jow would most probably pass

I did it twice but got the same error, and the build stopped exactly when the scripts were build. Doesn't look like a coincidence.

@Jojo-Schmitz
Copy link
Contributor

Hmm, then that script might be the issue

@Harmoniker1
Copy link
Contributor Author

Harmoniker1 commented Nov 17, 2019

Hmm, then that script might be the issue

But what kind of issue exactly can block a build?! Infinite loop? There isn't any.
Travis suggests that the error could be due to build configuration. Then it's not my problem ;-)

@dmitrio95
Copy link
Contributor

You can try reproducing this error by running this script test from a command line:

mscore --run-test-script text_tab_preserve_placement.script

However text editing is indeed currently not recorded by the script recorder engine, and cmd staff-text adds an empty text which requires editing to contain anything useful, so what you are trying to reproduce with this test is most likely not currently supported by this facility.

@Harmoniker1
Copy link
Contributor Author

Deleted the tests.

@anatoly-os anatoly-os added this to the MuseScore 3.4 milestone Dec 16, 2019
@dmitrio95
Copy link
Contributor

making it much easier to put all texts above/below staves

Using style settings seems to be a semantically correct way to put all texts above/below staves and it gives a lot of benefits for further score editing. Would it perhaps make sense to limit this enhancement only to fingerings, or maybe make it possible to define an extra fingering style (which would create compatibility issues though)? As far as I understand this change would make it easier to accidentally create large numbers of text elements that do not follow style settings which I would try to avoid if possible.

@Harmoniker1
Copy link
Contributor Author

Harmoniker1 commented Dec 27, 2019

As far as I understand this change would make it easier to accidentally create large numbers of text elements that do not follow style settings which I would try to avoid if possible.

As far as I understand, this PR only deals with text tab command, and it's basically not possible to have this kind of "accidents" given that you're already using text tab command. If you insert a unstyled text and then use text tab command, you most probably do want to make all subsequent texts have the same placement.

@anatoly-os anatoly-os removed this from the MuseScore 3.4 milestone Jan 21, 2020
@anatoly-os anatoly-os added this to the MuseScore 3.5 milestone Jan 21, 2020
Resolves: https://musescore.org/en/node/297092#comment-958921.

If current text (staff text/system text/fingering) is `UNSTYLED` or `NOSTYLE`, the next text created using text tab command inherits the same `PropertyFlags` and `Placement`, making it much easier to put all texts above/below staves.
@igorkorsukov igorkorsukov requested review from igorkorsukov and removed request for dmitrio95 April 14, 2020 08:08
@anatoly-os anatoly-os merged commit 9fa3179 into musescore:master Apr 14, 2020
@Harmoniker1 Harmoniker1 deleted the staff-text-placement branch April 14, 2020 09:27
@anatoly-os anatoly-os moved this from To do to Done in MuseScore 3.5 Alpha Apr 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants