thomasmorle...@gmail.com writes: > Yep, the difference between left- and right-handed are certain negative > instead of a positive values. > I'd love to use a multiplier retrieved from left-handed. > Though, how to code properly and user-friendly. > One could do > (1) separate conditions (that's what I've done). Disadvantage: code is > more complex. No multiplier. > (2) Let 'left-handed accept RIGHT/LEFT. Disadvantage is the need to > input it via an quasiquoted list > (3) Let 'left-handed accept -1/1. Disadvantage: it may be not that > obvious to the user what -1/1 actually means > (4) Let 'left-handed accept symbols left/right. Disadvantage: need to > transform these symbols into -1/1. > Something like (if (eq? left-handed 'left) -1 1) needs to be added. > (4) Drop 'left-handed and get the -1/1 from (sign string-distance) > > Opinions?
We use enough properties of the LEFT/RIGHT kind ((2) and (3) are really the same option apart from examples/docs) that I don't see a reason to diverge here. A property 'handedness set to LEFT or RIGHT would be in that ballpark. It's similar to text-direction. > https://codereview.appspot.com/339270043/ -- David Kastrup _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel