|
Issue 3487: Make several special characters with or without backslash "shorthands"
This is made from the following commits:
Make tempo range \tempo 20~30 be input as \tempo 20-30 instead
\tempo's use of ~ was rather untypical for LilyPond. Letting it
rather use @code{-} for ranges leaves just a single use for ties,
making it feasible to make @code{~} definable by the user in a later
commit.
Replace staccatissimo shorthand -| with -!
The bar line character is used too prominently, and ! seems more appropriate.
Issue 3487: Make several special characters with or without backslash "shorthands"
Single non-alphanumeric ASCII characters not requiring special
treatment in lexer or parser can now be redefined like escaped
identifiers. The same holds for escaped non-alphanumeric ASCII
characters. The identifying name you use for redefining them is the
string corresponding to the full shorthand, in contrast to escaped
identifiers where the identifying name omits the initial backslash.
Notable shorthands not treated specially in the parser (some of them
newly so) can be seen in the following definitions from
scm/declarations-init.ly:
"|" = #(make-music 'BarCheck)
"[" = #(make-span-event 'BeamEvent START)
"]" = #(make-span-event 'BeamEvent STOP)
"~" = #(make-music 'TieEvent)
"(" = #(make-span-event 'SlurEvent START)
")" = #(make-span-event 'SlurEvent STOP)
"\\!" = #(make-span-event 'CrescendoEvent STOP)
"\\(" = #(make-span-event 'PhrasingSlurEvent START)
"\\)" = #(make-span-event 'PhrasingSlurEvent STOP)
"\\>" = #(make-span-event 'DecrescendoEvent START)
"\\<" = #(make-span-event 'CrescendoEvent START)
"\\[" = #(make-span-event 'LigatureEvent START)
"\\]" = #(make-span-event 'LigatureEvent STOP)
"\\~" = #(make-music 'PesOrFlexaEvent)
"\\\\" = #(make-music 'VoiceSeparator)
Run scripts/auxiliar/update-with-convert-ly.sh
Make regtest for shorthands (Issue 3487)
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+283 lines, -272 lines) |
Patch |
|
M |
Documentation/changes.tely
|
View
|
1
2
3
4
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
|
M |
Documentation/cs/learning/common-notation.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/de/learning/common-notation.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/de/notation/expressive.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/de/notation/rhythms.itely
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Documentation/de/notation/simultaneous.itely
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Documentation/es/learning/common-notation.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/es/notation/expressive.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/es/notation/rhythms.itely
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Documentation/es/notation/simultaneous.itely
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Documentation/fr/learning/common-notation.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/fr/notation/expressive.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/fr/notation/rhythms.itely
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Documentation/fr/notation/simultaneous.itely
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Documentation/it/learning/common-notation.itely
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/it/notation/expressive.itely
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/it/notation/rhythms.itely
|
View
|
1
2
3
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Documentation/it/notation/simultaneous.itely
|
View
|
1
2
3
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Documentation/ja/learning/common-notation.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/ja/notation/expressive.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/ja/notation/rhythms.itely
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Documentation/ja/notation/simultaneous.itely
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Documentation/learning/common-notation.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/nl/learning/common-notation.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/notation/expressive.itely
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Documentation/notation/rhythms.itely
|
View
|
1
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
Documentation/notation/simultaneous.itely
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
Documentation/snippets/modifying-default-values-for-articulation-shorthand-notation.ly
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
input/regression/accidental-suggestions.ly
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
input/regression/bar-check-redefine.ly
|
View
|
1
2
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
input/regression/chord-repetition.ly
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
input/regression/display-lily-tests.ly
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
input/regression/metronome-range.ly
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
A |
input/regression/shorthands.ly
|
View
|
1
2
3
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
|
M |
lily/include/lily-lexer.hh
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
lily/lexer.ll
|
View
|
1
2
3
|
8 chunks |
+54 lines, -48 lines |
0 comments
|
Download
|
|
M |
lily/parser.yy
|
View
|
|
6 chunks |
+10 lines, -110 lines |
1 comment
|
Download
|
|
M |
ly/declarations-init.ly
|
View
|
1
|
2 chunks |
+16 lines, -12 lines |
0 comments
|
Download
|
|
M |
ly/script-init.ly
|
View
|
|
1 chunk |
+2 lines, -2 lines |
1 comment
|
Download
|
|
M |
python/convertrules.py
|
View
|
1
2
3
|
2 chunks |
+51 lines, -1 line |
0 comments
|
Download
|
|
M |
scm/define-music-display-methods.scm
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
scm/ly-syntax-constructors.scm
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
scripts/musicxml2ly.py
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 22
|