Accented characters at beginning/end of lyrics ignored with respect to alignment
Ubuntu 14.04, GIT commit: 2508953
1) new score
2) enter a note
3) enter lyric consisting of letter "A" preceded and/or followed by any number of accented characters
Result: no matter what accented characters you enter, the "A" remains centers under the note. The accented characters are ignored.
This is a result of the change I made in response to a number of requests that we ignore leading and trailing punctuation. The regular expression I use to parse the lyric relies on the Qt "non-word" class "\W" to recognize punctuation, but apparently this also matches on accented letters. At first glance, this appears to be a Qt bug, but one we need to work around. We need a better regular expression or a different approach.
Comments
Looks like the solution may be to set the UseUnicodePropertiesOption flag documented here:
http://doc.qt.io/qt-5/qregularexpression.html#PatternOption-enum
With Mint17.1 Rebecca (=ubuntu14.04) and a french BÉPO keyboard I typed èĉAĵŭ and see it as lyric in the attached
Musscore 2.0.2 3b511c0 compiled to-day.
I beg pardon. I misinterpreted.
Indeed same problem for me.
attached
Yep, it was that simple.
https://github.com/musescore/MuseScore/pull/2061
I wonder where else this might be needed?
Fixed in branch master, commit 4e7737498e
fix #64856: accented characters in lyrics not aligned correctly
Fixed in branch master, commit 8ff1ded811
Merge pull request #2061 from MarcSabatella/64856-lyric-accents
fix #64856: accented characters in lyrics not aligned correctly
Fixed in branch 2.0.2, commit de0d98e7eb
fix #64856: accented characters in lyrics not aligned correctly
A quick search of the ources shows the only other use of \w or \W to be in genManual. I kind of doubt there will be any reason to change that.
Thanks for checking
It now works indeed!
Thanks!
Automatically closed -- issue fixed for 2 weeks with no activity.