Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(38)

Issue 12432043: Make several special characters with or without backslash "non-special" (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dak
Modified:
10 years, 6 months ago
Reviewers:
Keith, janek, lemzwerg, Ian Hulin, thomasmorley651, janneke
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

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)

Patch Set 1 #

Patch Set 2 : Better convert-ly rules #

Patch Set 3 : Fix botched conversion inside of texidoc string manually #

Total comments: 6

Patch Set 4 : Rework along Keith's suggestions #

Patch Set 5 : Fix merge conflict residue in changes.tely #

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

Messages

Total messages: 22
dak
Better convert-ly rules
10 years, 8 months ago (2013-08-04 13:03:19 UTC) #1
dak
Fix botched conversion inside of texidoc string manually
10 years, 8 months ago (2013-08-04 13:33:12 UTC) #2
lemzwerg
LGTM. Very nice!
10 years, 8 months ago (2013-08-05 10:56:49 UTC) #3
janneke_gnu.org
> LGTM. Very nice! > > https://codereview.appspot.com/12432043/ Nice. Looking at your remarks Make tempo range ...
10 years, 8 months ago (2013-08-05 11:31:11 UTC) #4
dak
Jan Nieuwenhuizen <janneke@gnu.org> writes: >> LGTM. Very nice! >> >> https://codereview.appspot.com/12432043/ > > Nice. Looking ...
10 years, 8 months ago (2013-08-05 12:03:38 UTC) #5
Keith
Looks sensible. The comments are confusing. The commit message says almost the opposite of what ...
10 years, 8 months ago (2013-08-05 19:21:44 UTC) #6
dak
I can't really work with "the comments are confusing" and I don't really see that ...
10 years, 8 months ago (2013-08-06 10:30:44 UTC) #7
Keith
On 2013/08/06 10:30:44, dak wrote: > I can't really work with "the comments are confusing" ...
10 years, 8 months ago (2013-08-07 02:44:07 UTC) #8
dak
Rework along Keith's suggestions
10 years, 8 months ago (2013-08-09 16:57:34 UTC) #9
dak
Fix merge conflict residue in changes.tely
10 years, 8 months ago (2013-08-09 17:19:38 UTC) #10
janek
Hi, i'm late with my comments but i'll publish them anyway. A general question: what ...
10 years, 8 months ago (2013-08-14 11:41:43 UTC) #11
janek
On 2013/08/14 11:41:43, janek wrote: > A general question: what about using -' or -, ...
10 years, 8 months ago (2013-08-14 11:43:08 UTC) #12
dak
On 2013/08/14 11:43:08, janek wrote: > On 2013/08/14 11:41:43, janek wrote: > > A general ...
10 years, 8 months ago (2013-08-14 12:01:06 UTC) #13
janek
2013/8/14 <dak@gnu.org>: > I don't really agree. staccato is -. so it seems natural for ...
10 years, 8 months ago (2013-08-14 12:18:12 UTC) #14
dak
On 2013/08/14 12:18:12, janek wrote: > 2013/8/14 <dak@gnu.org>: > > I crosschecked with the parser ...
10 years, 8 months ago (2013-08-14 13:30:24 UTC) #15
thomasmorley651
On 2013/08/14 13:30:24, dak wrote: > I don't think we help anybody by providing two ...
10 years, 8 months ago (2013-08-14 17:34:56 UTC) #16
Ian Hulin
Hi David and Janek, On 14/08/13 14:30, dak@gnu.org wrote: > On 2013/08/14 12:18:12, janek wrote: ...
10 years, 8 months ago (2013-08-15 09:22:12 UTC) #17
dak
On 2013/08/15 09:22:12, Ian Hulin wrote: > Hi David and Janek, > On 14/08/13 14:30, ...
10 years, 8 months ago (2013-08-15 09:33:54 UTC) #18
Keith
On Thu, 15 Aug 2013 02:33:55 -0700, <dak@gnu.org> wrote: > On 2013/08/15 09:22:12, Ian Hulin ...
10 years, 8 months ago (2013-08-15 17:18:39 UTC) #19
dak
"Keith OHara" <k-ohara5a5a@oco.net> writes: > '!' also looks like a staccatissimo, > is a stop ...
10 years, 8 months ago (2013-08-15 19:35:07 UTC) #20
Ian Hulin
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Keith On 15/08/13 18:18, Keith OHara wrote: > ...
10 years, 8 months ago (2013-08-15 23:45:45 UTC) #21
janek
10 years, 8 months ago (2013-08-16 22:39:59 UTC) #22
2013/8/15  <dak@gnu.org>:
> "Keith OHara" <k-ohara5a5a@oco.net> writes:
>
>> '!' also looks like a staccatissimo,
>> is a stop character so conceptually related to the '.' for staccato,
>> conflicts less with the use of ''' in pitches:
>>    e'4-! cs-! bf-! g-! e'-! cs-! \tuplet3/2{bf-> g-> e->}
>>    e'4-' cs-' bf-' g-' e'-' cs-' \tuplet3/2{bf-> g-> e->}
>> indicates an exclamation which "Hey!" is conceptually similar to a
>> staccatissimo,
>> is easier to type on key layouts that use ''' for accents (like mine,
>> US deadkeys on Windows).
>> ''' would look ridiculous when using octave checks: e'='-'
>
> Well, we can have eis'!='-! or even eis!=-! as well, but then
> octave-less octave checks always look like an oddity.  But forced
> accidentals are usually less frequent than octave marks.
>
> And I agree that in the non-contrived interlinear comparison above, the
> variant using ! is less of an overall distraction.

ok, i'm convinced.  And my question was of the "musing-kind" anyway.

Jaenk
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b