Commit graph

162 commits

Author SHA1 Message Date
Joachim Schmitz
c9ec1ac5d4 fix some compiler warnings differently/cleaner
as requested/discussed in PR #4989, by using size_t or at least
unsigned instead of casting to int when using the size() method of stl
containers (vectors etc.) in for loops.
Doesn't work everywhere though, not without either adding more casts
elsewhere or with massive code changes or with different compiler(s')
warnings.
Tested with MinGW 64-bit, MinGW 32-bit and MSVC 64-bit.
2020-03-03 14:39:24 +01:00
Joachim Schmitz
58608ae092 fix #301387: add Wyschnegradsky accidentals + collect_artifacts 2020-02-20 13:35:19 +01:00
Marc Sabatella
903d723076 fix #293971: tempo markings do not read the note symbols
Screenreaders do not generally know how to read music symbols,
so we need to provide our own "translations".
I had added the makeReadable() function for this,
but it only handled accidentals.
I have now added added code to handle all the "common" symbols
from the Special Characters palette.
To avoid code duplication, I moved the definition of the list
from textpalette.cpp to the Sym class.
2019-09-17 13:34:21 +02:00
Joachim Schmitz
10b9628b29 fix #294125: symUserNames and symNames out of sync
Omission from 8c67df20ab, leads to a bogus toolTip being displayed for
Space in the F2 palette.
While at it, make those texts translatable.
2019-09-06 13:12:12 +02:00
Joachim Schmitz
57af1fe2f8 fix compiler warnings on Mac 2019-07-12 10:53:42 +02:00
Joachim Schmitz
d71fda9bfd make all accidental symbols from master palette translatable
and also one missing ornament
2019-04-06 17:25:04 +02:00
Joachim Schmitz
c447936faf make system dividers translatable
as per a discussion on the MuseScore translators channel on Telegram
2019-03-22 08:30:06 +01:00
Joachim Schmitz
e120d74e72 yet another couple strings...
and some reformatting
2018-12-03 19:23:00 +01:00
lasconic
4e8863a5a2 Implement JSON export for all data and metadata of a single file 2018-11-23 17:58:48 +01:00
anatoly-os
a0408ffc65
Merge pull request #4149 from dmitrio95/276354-note-encoding
fix #276354: lookup character codes in SMuFL code table if no font-specific symbol is found
2018-11-21 10:12:50 +02:00
Joachim Schmitz
613e2cb9e5 Some pre-translation text fixes
also take care of removing (or rather: not keeping) obsolete strings
and do not translate the debugger strings at all
2018-11-16 15:31:18 +01:00
Dmitri Ovodok
af5abe41d0 fix #276354: lookup character codes in SMuFL code table if no font-specific symbol is found
This commit does three things:
1) Constructs a code table for SMuFL symbols that is common to all
used fonts. The table is constructed from fonts/smufl/glyphnames.json
2) Replaces repeated calls to the object representing that json file
by a lookup in the code table obtained from that file. This is simpler
to reuse and avoids unnecessary repeated string parsing operations.
3) The fix itself: ScoreFont::toString now looks for a symbol
in the common SMuFL table if nothing is found in the font itself.
That way a correct code for the queried symbol can be returned even
if the font itself is not able to render it.
Previously -1 was returned which led to adding symbols which cannot
be correctly displayed by any font at all.
2018-11-16 14:25:22 +02:00
ws
d2e452040b fix #278099 Crash when inserting a symbol from master palette 2018-11-13 13:32:33 +01:00
Dmitri Ovodok
27ac99551d fix #137766, fix #272598, fix #277404: correct font size setting when rendering a score in pdf printing mode 2018-10-25 16:32:45 +03:00
Joachim Schmitz
91b539bd3f fix bogus chracaters in translatable symbol names
as the workaround for Qt lupdate bug
https://bugreports.qt.io/browse/QTBUG-35164 not only is no longer needed
as of Qt 5.9.0 Beta 2, but now also harms.
2018-09-24 08:23:05 +02:00
Joachim Schmitz
f7685e28c1 Fix some warnings C4456 and C4458 2018-08-17 15:06:15 +02:00
ws
33d1cd7fb4 rename StyleIdx -> Sid and P_ID -> Pid 2018-03-27 15:36:00 +02:00
luz.paz
dab3b5f056 Misc. typos follow up
Follow up to previous typo commit a8ac55c180
2018-02-19 19:30:12 -05:00
Werner Schweer
8c67df20ab fix visual test emmentaler-4, wrong articulation 2017-12-19 09:18:22 +01:00
lasconic
f7dfd1a0af fix #265793: Add more shape for 'trill' lines 2017-11-20 09:59:48 +01:00
Werner Schweer
53c3d614cf reenable 1.x compatibility code 2017-08-16 16:59:04 +02:00
Werner Schweer
641ee23ff1 support unicode symbols for 2.x compatibility 2017-05-24 17:07:03 +02:00
Adrian Holovaty
c565705a39 Fix ornamentDownPrall composed glyph definition
This composed glyph used the wrong subglyph as its first glyph. It was identical to ornamentLinePrall whereas it should be different.
2017-04-11 12:00:53 +02:00
Werner Schweer
cf42a3a377 fix #179926: add scale property for time signature 2017-03-09 13:37:53 +01:00
lasconic
c745526cfe fix compilation after 5433d71 2017-01-16 22:16:10 +01:00
Werner Schweer
5433d719d9 replace TextStyle by SubStyle 2017-01-16 20:59:21 +01:00
lasconic
e8b7932ea5 fix #138706: Draw brace from musical font instead of hardcoded 2016-11-15 17:24:15 +01:00
Joachim Schmitz
b417f7de92 fix #109136, fix #33201: add some articulations
stringHarmonics and a few fermatas as well as getting these and the ones
from dafb5f3 and ab354df translated. Also getting some of the previously
added articulations to play back properly and import from ove as well as
export to XML (import is missing)
2016-10-16 12:44:06 +02:00
lasconic
ef302e4684 apply engraving defaults to double barlines too 2016-10-14 21:48:38 +02:00
Nicolas Froment
ae8c16c923 Merge pull request #2853 from lasconic/skatcat
add MuseJazz font
2016-10-12 17:08:07 +02:00
lasconic
cc0333ce37 fix #137101: When changing score font, MuseScore should obey engraving defaults provided by the font metadata 2016-10-12 15:13:29 +02:00
lasconic
83e1d3c44b add MuseJazz score font and rename 2.0 MuseJazz to MuseJazzText 2016-10-11 15:26:49 +02:00
Werner Schweer
99c04f832f fix #127086: wavy glissando is not wavy 2016-10-10 18:37:39 +02:00
lasconic
855d2a6fac Font fallback is now an option. Use the correct font metadata when using the font fallback 2016-10-07 13:21:05 +02:00
lasconic
89fd34f8a8 better compatibility between old symbol names and SMuFL 2016-10-06 10:20:48 +02:00
Joachim Schmitz
3e4daad2d0 translate selected symbol names for use in palettes and status bar
following b5516f8 (for Breaths and Caesuras) and 8c18761, c7f876a
(for Accidentals)

As well as a workaround for Qt lupdate bug #35164,
see bug https://bugreports.qt.io/browse/QTBUG-35164
May need explicit use of compiler option `-finput-charset=utf-8`.
On platforms/implementations not supporting UTF-8 in C++ source code we
may be in trouble.
2016-09-29 17:00:58 +02:00
lasconic
f966b08d77 add more F and C clefs, refactor clef.cpp and use symId and line when possible 2016-09-29 01:14:03 +02:00
Werner Schweer
17c8e41ee4 fix #125891: Some stems of noteheads are badly drawn, too high 2016-09-26 12:15:54 +02:00
Werner Schweer
4688086419 update read206 and read300 2016-09-20 11:18:03 +02:00
Werner Schweer
4b00406586 draw symbol from fallback font (bravura) if not available in actual score font 2016-09-19 12:22:42 +02:00
lasconic
9ef2f130e2 fix #125126: add 4-string tablature clef. Also add serif version. Use a single glyphnames.json from smufl 2016-09-18 18:37:42 +02:00
werner
9f57c06f51 fix text layout regressions 2016-09-04 16:17:33 +02:00
werner
4ac407d90e misc. updates 2016-09-03 17:46:36 +02:00
J.Hoffmann
1b718262de Show duration and notehead during note entry
During note entry shadow notes now also show duration of note
During drum note entry shadow notes show the distince noteheads
2016-05-27 12:49:51 +02:00
Joachim Schmitz
1a58d9fcd0 use fallback font rather than crash 2016-05-17 10:07:26 +02:00
lasconic
7242b66160 update symbol list for SMuFL 1.20 c20330a 2016-05-12 10:41:34 +02:00
ZackTheCardshark
cdc82364e4 Fix #100396: change "note heads" to "noteheads"
See http://music.stackexchange.com/questions/42722/notehead-or-note-head

(also correct "fo" to "for" in comment)
2016-05-02 21:22:29 -04:00
ws
2f4f4a5c2d editstyle cleanup 2016-04-13 11:35:22 +02:00
ws
bbd802f8ae framework for partial relayout 2016-04-13 11:35:21 +02:00
ws
9f933d8503 Layout reorganization 2016-04-13 11:05:04 +02:00