-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[MU3 Backend] ENG-67, 69, 73, 74, 83: Staff Text inference clean-up #8678
Merged
vpereverzev
merged 8 commits into
musescore:3.6.2_backend
from
iveshenry18:ENG-67-69-staff-text-inference
Jul 28, 2021
Merged
[MU3 Backend] ENG-67, 69, 73, 74, 83: Staff Text inference clean-up #8678
vpereverzev
merged 8 commits into
musescore:3.6.2_backend
from
iveshenry18:ENG-67-69-staff-text-inference
Jul 28, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iveshenry18
force-pushed
the
ENG-67-69-staff-text-inference
branch
from
July 22, 2021 23:25
54fcbc3
to
6c6b752
Compare
Similar to credits, sometimes Dolet exports source information ("from ABC") as direction words near the beginning of the piece. This commit adds a function for inferring these and adding them to the header as a subtitle.
Dolet also sometimes incorrectly exports footers as direction words, particularly "This music has been legally downloaded . Do not photocopy." This commit throws out staff text with these contents.
This commit refines the regex for inferring credit directions. It ultimately removes requirements for names (the part after the word "by") due to the inordinate difficulty of writing strict regex that catches all possible characters included in names. To mitigate false positives, it clarifies/restricts the regex for the part before the word "by". This compromise decreases the number of false negatives without significantly increasing false positives.
Some scores specify header text both in the <identification> element and in the incorrectly-exported staff text. The latter tends to have more information, so this commit hides the former when the latter is present to avoid redundancy.
Due to inferred (mis-exported) credits not having valid positioning information, there were occasionally collisions with the title text. This commit adds a reformatting function that runs at the end of the import (if any inferred header text is present) that prevents these vertical collisions.
This commit extends the cases covered by inferred subtitles. Also, it extends this functionality to apply to Titles—some titles are multi- line, where the second line is really a subtitle. This commit adds a function to infer these, extract them from the title, and add them as the subtitle.
This commit changes the vertical padding to 1.2 * the line height when reformatting a header box with inferred credits or subtitles.
This commit adds credit inferring to the title text (similar to what already exists for subtitles). It also adds and refines the inference cases for both credits and subtitles.
iveshenry18
force-pushed
the
ENG-67-69-staff-text-inference
branch
from
July 28, 2021 16:08
038a148
to
b6d183f
Compare
oktophonie
approved these changes
Jul 28, 2021
vpereverzev
approved these changes
Jul 28, 2021
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 28, 2021
Similar to credits, sometimes Dolet exports source information ("from ABC") as direction words near the beginning of the piece. This commit adds a function for inferring these and adding them to the header as a subtitle. Duplicate of musescore#8678, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 28, 2021
Dolet also sometimes incorrectly exports footers as direction words, particularly "This music has been legally downloaded . Do not photocopy." This commit throws out staff text with these contents. Duplicate of musescore#8678, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 28, 2021
This commit refines the regex for inferring credit directions. It ultimately removes requirements for names (the part after the word "by") due to the inordinate difficulty of writing strict regex that catches all possible characters included in names. To mitigate false positives, it clarifies/restricts the regex for the part before the word "by". This compromise decreases the number of false negatives without significantly increasing false positives. Duplicate of musescore#8678, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 28, 2021
Some scores specify header text both in the <identification> element and in the incorrectly-exported staff text. The latter tends to have more information, so this commit hides the former when the latter is present to avoid redundancy. Duplicate of musescore#8678, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 28, 2021
Due to inferred (mis-exported) credits not having valid positioning information, there were occasionally collisions with the title text. This commit adds a reformatting function that runs at the end of the import (if any inferred header text is present) that prevents these vertical collisions. Duplicate of musescore#8678, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 28, 2021
This commit extends the cases covered by inferred subtitles. Also, it extends this functionality to apply to Titles—some titles are multi- line, where the second line is really a subtitle. This commit adds a function to infer these, extract them from the title, and add them as the subtitle. Duplicate of musescore#8678, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 28, 2021
This commit changes the vertical padding to 1.2 * the line height when reformatting a header box with inferred credits or subtitles. Duplicate of musescore#8678, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 28, 2021
This commit adds credit inferring to the title text (similar to what already exists for subtitles). It also adds and refines the inference cases for both credits and subtitles. Duplicate of musescore#8678, part 8
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 29, 2021
Similar to credits, sometimes Dolet exports source information ("from ABC") as direction words near the beginning of the piece. This commit adds a function for inferring these and adding them to the header as a subtitle. Duplicate of musescore#8678, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 29, 2021
Dolet also sometimes incorrectly exports footers as direction words, particularly "This music has been legally downloaded . Do not photocopy." This commit throws out staff text with these contents. Duplicate of musescore#8678, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 29, 2021
This commit refines the regex for inferring credit directions. It ultimately removes requirements for names (the part after the word "by") due to the inordinate difficulty of writing strict regex that catches all possible characters included in names. To mitigate false positives, it clarifies/restricts the regex for the part before the word "by". This compromise decreases the number of false negatives without significantly increasing false positives. Duplicate of musescore#8678, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Jul 29, 2021
Some scores specify header text both in the <identification> element and in the incorrectly-exported staff text. The latter tends to have more information, so this commit hides the former when the latter is present to avoid redundancy. Duplicate of musescore#8678, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 29, 2021
Some scores specify header text both in the <identification> element and in the incorrectly-exported staff text. The latter tends to have more information, so this commit hides the former when the latter is present to avoid redundancy. Duplicate of musescore#8678, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 29, 2021
Due to inferred (mis-exported) credits not having valid positioning information, there were occasionally collisions with the title text. This commit adds a reformatting function that runs at the end of the import (if any inferred header text is present) that prevents these vertical collisions. Duplicate of musescore#8678, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 29, 2021
This commit extends the cases covered by inferred subtitles. Also, it extends this functionality to apply to Titles—some titles are multi- line, where the second line is really a subtitle. This commit adds a function to infer these, extract them from the title, and add them as the subtitle. Duplicate of musescore#8678, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 29, 2021
This commit changes the vertical padding to 1.2 * the line height when reformatting a header box with inferred credits or subtitles. Duplicate of musescore#8678, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 29, 2021
This commit adds credit inferring to the title text (similar to what already exists for subtitles). It also adds and refines the inference cases for both credits and subtitles. Duplicate of musescore#8678, part 8
Jojo-Schmitz
added a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 29, 2021
See musescore#8678, issue possibly caused by another commit though
Jojo-Schmitz
added a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Sep 29, 2021
See musescore#8678, part 3 Not sure whe this is needed all of a sudden?
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
Similar to credits, sometimes Dolet exports source information ("from ABC") as direction words near the beginning of the piece. This commit adds a function for inferring these and adding them to the header as a subtitle. Duplicate of musescore#8678, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
Dolet also sometimes incorrectly exports footers as direction words, particularly "This music has been legally downloaded . Do not photocopy." This commit throws out staff text with these contents. Duplicate of musescore#8678, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
This commit refines the regex for inferring credit directions. It ultimately removes requirements for names (the part after the word "by") due to the inordinate difficulty of writing strict regex that catches all possible characters included in names. To mitigate false positives, it clarifies/restricts the regex for the part before the word "by". This compromise decreases the number of false negatives without significantly increasing false positives. Duplicate of musescore#8678, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
Some scores specify header text both in the <identification> element and in the incorrectly-exported staff text. The latter tends to have more information, so this commit hides the former when the latter is present to avoid redundancy. Duplicate of musescore#8678, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
Due to inferred (mis-exported) credits not having valid positioning information, there were occasionally collisions with the title text. This commit adds a reformatting function that runs at the end of the import (if any inferred header text is present) that prevents these vertical collisions. Duplicate of musescore#8678, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
This commit extends the cases covered by inferred subtitles. Also, it extends this functionality to apply to Titles—some titles are multi- line, where the second line is really a subtitle. This commit adds a function to infer these, extract them from the title, and add them as the subtitle. Duplicate of musescore#8678, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
This commit changes the vertical padding to 1.2 * the line height when reformatting a header box with inferred credits or subtitles. Duplicate of musescore#8678, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
This commit adds credit inferring to the title text (similar to what already exists for subtitles). It also adds and refines the inference cases for both credits and subtitles. Duplicate of musescore#8678, part 8
Jojo-Schmitz
added a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
See musescore#8678, issue possibly caused by another commit though
Jojo-Schmitz
added a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
May 12, 2022
See musescore#8678, part 3 Not sure whe this is needed all of a sudden?
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
Similar to credits, sometimes Dolet exports source information ("from ABC") as direction words near the beginning of the piece. This commit adds a function for inferring these and adding them to the header as a subtitle. Duplicate of musescore#8678, part 1
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
Dolet also sometimes incorrectly exports footers as direction words, particularly "This music has been legally downloaded . Do not photocopy." This commit throws out staff text with these contents. Duplicate of musescore#8678, part 2
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
This commit refines the regex for inferring credit directions. It ultimately removes requirements for names (the part after the word "by") due to the inordinate difficulty of writing strict regex that catches all possible characters included in names. To mitigate false positives, it clarifies/restricts the regex for the part before the word "by". This compromise decreases the number of false negatives without significantly increasing false positives. Duplicate of musescore#8678, part 3
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
Some scores specify header text both in the <identification> element and in the incorrectly-exported staff text. The latter tends to have more information, so this commit hides the former when the latter is present to avoid redundancy. Duplicate of musescore#8678, part 4
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
Due to inferred (mis-exported) credits not having valid positioning information, there were occasionally collisions with the title text. This commit adds a reformatting function that runs at the end of the import (if any inferred header text is present) that prevents these vertical collisions. Duplicate of musescore#8678, part 5
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
This commit extends the cases covered by inferred subtitles. Also, it extends this functionality to apply to Titles—some titles are multi- line, where the second line is really a subtitle. This commit adds a function to infer these, extract them from the title, and add them as the subtitle. Duplicate of musescore#8678, part 6
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
This commit changes the vertical padding to 1.2 * the line height when reformatting a header box with inferred credits or subtitles. Duplicate of musescore#8678, part 7
Jojo-Schmitz
pushed a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
This commit adds credit inferring to the title text (similar to what already exists for subtitles). It also adds and refines the inference cases for both credits and subtitles. Duplicate of musescore#8678, part 8
Jojo-Schmitz
added a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
See musescore#8678, issue possibly caused by another commit though
Jojo-Schmitz
added a commit
to Jojo-Schmitz/MuseScore
that referenced
this pull request
Mar 5, 2023
See musescore#8678, part 3 Not sure whe this is needed all of a sudden?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves:
This PR includes commits for a set of similar issues regarding incorrectly exported staff text (<direction> elements) that should be header text.
See individual commit messages for detailed descriptions of the fixes.