Commit graph

219 commits

Author SHA1 Message Date
luz.paz
f31624d746 fix various typos
* Found via `codespell -q 3 -S ./share/locale,./thirdparty -L ba,cann,clas,dur,foto,iff,nd,ois,ot,pres,possibile,snaped,strack,tage,te,uint,thru,valu`  
* Some revisions made per feedback given during review.
* Follow-up typos for review  
* Add revisions per feedback
2019-12-19 06:13:30 -05:00
Marc Sabatella
1b4e7c44e0 fix #296362: screenreader support for RNA
Resolves: https://musescore.org/en/node/296362

RNA and Nashville notations are implemented as chord smbols,
because much of the code is common between these,
but it doesn't work to use the regular chord symbol screenreader code.
For Nashville numbers, we need to get the root from the function rather than the rootTpc.
For RNA, we need to perform some rudimentary parsing to turn the Roman numerals into numbers
and substitute the accidentals.
2019-11-05 13:36:53 -07:00
Marc Sabatella
563cd5d76d fix #273256, fix #273266: special characters dialog fixes
A number of small issues prevent the special characters dialog
from working properly, especially for chord symbols.
Drag and drop only works with some symbols because FSYMBOL was missing
in the switch statements in dragdrop.cpp.
Text elements can handle drop of FSYMBOL (which is why double-click works),
but they weren't getting to chance during drag&drop.
Fix was just adding those case statements.

For Harmony objects, we also needed to add the handlers
in acceptDrop() and drop() (the latter just passing through to TextBase).
However, accidentals require special handling in Harmony::endEdit() in order to parse.
Code was added recently to do this, but it didn't actually work
(I suspect it did when written, but things changed between then and when it was merged).
I rearranged the code in in Harmony::endEdit() a bit - and added comments to explain.
Basically, setHarmony() needs to be called *after* the back-substitution
(replacing flat with "b", sharp with "#"),
but the back-substitution needs to happen after TextBase::endEdit() finalizes the text
(actually, if it were possible to substitute before, that would be better,
but do to the way the undo records are munged in TextBase::endEdit(),
it seemed to dangerous to even try).
Bottom line: I do the TextBase::endEdit(), then the back-substitution,
then the setHarmony().
I needed to be sure to trigger a layout, which required a startCmd/endCmd pair
(since TextBase::endEdit() already called endCmd).
2019-10-24 12:24:45 -06:00
Marc Sabatella
b7824c8f4b fix #295778: incorrect handling of HTML escapes in chord symbols
We pre-populate the text of a chord symbol when commencing edit,
and process the text again upon completion of the edit.
But sometimes we used xmltext and other times we use plaintext.
It needs to be plaintext always for the conversion to work right:
we need to use plainText() when calling setHarmony(),
and we need to call setPlainText() when setting the text from the harmonyName().
2019-10-24 12:24:45 -06:00
Marc Sabatella
31cf21a4a5 fix #295675: support RNA without root
Most of the rendering for RNA is handled by the Campania font,
so the main part of this change is just including the latest version of that font.
But I also needed to update some of the pre-processing of the RNA elements
to skip the special handling of parentheses and equals sign
(these too are handled directly by Campania).
2019-10-24 12:24:45 -06:00
Joachim Schmitz
596297507c fix MSVC/MinGW compiler warnings
and also fix a compiler warning fixed earlier in a different
(and better) way, see #4963
2019-10-02 07:45:32 +02:00
anatoly-os
ca3eb206cc
Merge pull request #5246 from MarcSabatella/chord-symbol-format
expansion of chord symbol formatting
2019-08-30 20:26:59 +02:00
anatoly-os
6c2df0cec5
Merge pull request #3461 from Jojo-Schmitz/chord-symbols
allow unicode flat and sharp as input for chord symbols
2019-08-28 12:33:27 +02:00
Marc Sabatella
cb433c6fbf fix rendering of RNA with Jazz chord symbols + collect_artifacts 2019-08-27 08:53:38 -06:00
Marc Sabatella
6ef78fbef5 add support for Roman numeral analysis & Nashville notation 2019-08-27 08:53:38 -06:00
James Thistlewood
fb2afc8ae1 add chord symbol support for fret diagrams and some small read/write fixes 2019-05-21 21:50:46 +01:00
Marc Sabatella
6f999d3fba enhanced flip behavior 2019-05-09 22:46:59 -06:00
Marc Sabatella
ef300d1cea implement minDistance per element 2019-05-09 22:46:58 -06:00
Joachim Schmitz
3f094b415a allow unicode flat and sharp as input for chord symbols
and also double flat and double sharp, Δ, °, ø and
Ø.
2019-04-01 09:47:32 +02:00
Marc Sabatella
b4019070ee fix #279259: chord symbol spacing fixes 2019-03-15 10:51:32 -06:00
ws
ec3be9a99a Replacd integer midi tick values by fractions.
- tick names a position on the time axis
- tick is always a Fraction()
- only Measure() and Segment() (and Tuplet?) have a tick value
- tick() for an generic element return only a sensible value if isMeasure() or isSegment() or isSegment(parent())

- "ticks" names a duration stored in a Fraction()
- the tick value for an Segment is relative to its measure

- rename "duration" to "ticks"
- rename afrac() to tick()
- rename rfrac() to rtick()
- rename some variables, changing "fraction" into "tick"
  (example: actualFraction() into actualTicks())

- Lyrics ticks are written as Fraction, on read if xmlreader sees a "/" it reads a fraction
  else midi ticks for backwards compatibility
2019-02-18 11:46:05 +01:00
Joachim Schmitz
625380668b some random findings... 2019-01-15 15:36:42 +01:00
MarcSabatella
371c9bedc6 also fix chord symbols and measure numbers 2018-12-19 23:45:23 -07:00
MarcSabatella
aed4c73fbc fix #279950, fix #279804, fix #279666: force chord symbol layout where needed 2018-12-13 20:25:30 -07:00
MarcSabatella
b5b1a9281f fix #279220: chord symbol overlaps barline 2018-12-03 14:03:26 -07:00
anatoly-os
d93178fde1
Merge pull request #4286 from dmitrio95/harmony-parts-endedit
fix #279175, fix #279252: Update chord symbol on updating its text
2018-12-03 16:34:20 +02:00
Dmitri Ovodok
f5ff4fbe4e fix #279175, fix #279252: Update chord symbol on updating its text 2018-12-03 09:10:18 +02:00
Dmitri Ovodok
4520fa8cb7 fix #279073: fix position for drawing edit mode for chord symbol 2018-12-02 15:31:06 +02:00
ws
f124185c4f fix #278862 Chord symbol collisions not handled well 2018-12-01 11:07:19 +01:00
ws
f32ed063a3 add separate style options for chord symbol styles a/b offset 2018-11-30 18:34:02 +01:00
ws
ca4c4df1d0 fix #277705 Chord symbols: "Default vertical position" has been lost.
This commit adds another style value for the position of Chord Symbols below a staff.
2018-11-30 12:04:19 +01:00
ws
78d2d7de15 fix #276667 Crash on layout of harmony belonging to fret diagram.
Implements property layout and collisiion detection for chord names over fret diagrams.
2018-11-28 17:15:11 +01:00
anatoly-os
76f4bfa320 follow up 32682215d0
current master works correctly without "_needAutoplace" workaround
2018-11-14 17:38:10 +02:00
anatoly-os
32682215d0
Merge pull request #3957 from handrok/#274925-Chords
fix #274925: Unable to select text in Chord Symbol
2018-11-14 14:29:51 +02:00
ws
d2e452040b fix #278099 Crash when inserting a symbol from master palette 2018-11-13 13:32:33 +01:00
alexandr
5cec75ae71 fix #274925: Unable to select text in Chord Symbol
Add correect placement for _layout field in Harmony class
Make layoutInvalid private as it was before https://github.com/musescore/MuseScore/pull/3914

rebase after master
2018-11-10 13:38:42 +02:00
Dmitri Ovodok
c95dfd5a40 Make it possible to record elements written to MSCX 2018-10-29 16:30:19 +02:00
ws
18f9259beb fix #277542 Calculation of bounding box for chord sysbols too big 2018-10-29 15:29:27 +01:00
ws
ce128f3ed8 fix #277276 Chord symbols don't allocate space horizontally 2018-10-28 11:39:48 +01:00
ws
4cc247ea4a fix text position in palette 2018-10-22 11:43:54 +02:00
ws
ac35cd1c56 fix harmony default position 2018-10-22 11:23:19 +02:00
ws
d77183b3bb refactoring of Element::userOff and TextBase::offset 2018-10-18 11:56:23 +02:00
Joachim Schmitz
b8810ed9e5 fix #275218: fix MSVC C4065 and C4701 warnings
ref. a `switch` without any `case` and the use of a
possibly uninitialized variable.
Also fix yet another few C4456.
Also disable one warning less for portmidi as it doesn't happen anyway
(anymore?)
2018-09-27 17:47:23 +02:00
ws
feb8c8cfe8 fix default vertical position and text offset of chord symbols 2018-09-26 10:10:54 +02:00
ws
6930004a2b fix vtest lyrics-5 2018-09-18 17:54:16 +02:00
alexandr
0106438011 fix #274902: Incorrect chord symbol position
Prevent excess layout of Harmony when switch to editing element.
2018-09-03 15:44:06 +02:00
Joachim Schmitz
f7685e28c1 Fix some warnings C4456 and C4458 2018-08-17 15:06:15 +02:00
Joachim Schmitz
632f830f5f Fix #275218: fix MSVC compiler warnings
* Warnings C4304, C4804 and C4838.
* Warnings C4065 and most C4702 (all but two).
* Warnings C4701.
* Warnings C4244.
* Warnings C4457.
* Warnings C4459.
* Some warnings C4456, due to nested `foreach` loops.
2018-08-14 10:03:49 +02:00
ws
10ebbb9080 update text style implementation 2018-08-01 11:46:35 +02:00
ws
6268ac7b88 fix chord symbol regression 2018-07-17 14:34:37 +02:00
ws
fab478d131 fixes and updates for chord names 2018-07-16 14:35:19 +02:00
ws
1fff7f6a15 update inspector for chord names 2018-07-13 17:24:26 +02:00
ws
8ca085ca76 Harmony and Fret update 2018-07-12 10:16:07 +02:00
ws
175d5aadb3 cleanup ElementFlags interface, use more Placement properties on mxml import/export 2018-07-04 12:41:14 +02:00
ws
be40742eed fix #272630 Entering '_' and '-' as symbols doesn't work in lyrics 2018-06-15 14:03:18 +02:00