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

Issue 4965053: Long live length in the docs. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by MikeSol
Modified:
12 years, 8 months ago
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Long live length in the docs.

Patch Set 1 #

Patch Set 2 : Necessary fixes to get a clean make doc. #

Total comments: 1

Patch Set 3 : Re-institutes length property. #

Total comments: 1

Patch Set 4 : Better pure height approximations. #

Patch Set 5 : Beams trigger Y-extent calculation. #

Patch Set 6 : Adds regtest #

Patch Set 7 : Removes unnecessary addition of corrective in heights. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -43 lines) Patch
A input/regression/stem-length.ly View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
D input/regression/stem-length-override.ly View 1 2 1 chunk +0 lines, -13 lines 0 comments Download
M lily/grob-scheme.cc View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M lily/stem.cc View 1 2 3 4 5 6 10 chunks +34 lines, -20 lines 0 comments Download
M scm/define-grob-properties.scm View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M scm/define-grobs.scm View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M scm/output-lib.scm View 1 2 3 4 1 chunk +14 lines, -10 lines 0 comments Download

Messages

Total messages: 36
MikeSol
This gets rid of Stem #'length in the docs. I haven't run make doc yet, ...
12 years, 8 months ago (2011-08-28 10:12:58 UTC) #1
Graham Percival (old account)
amusingly, I have no trouble compiling the docs without this patch, but it fails with ...
12 years, 8 months ago (2011-08-28 10:29:01 UTC) #2
MikeSol
New patch set uploaded - haven't finished building docs yet, but I think this will ...
12 years, 8 months ago (2011-08-28 12:21:34 UTC) #3
MikeSol
Ha...how about that. I'll look into it when I get back, but good to know ...
12 years, 8 months ago (2011-08-28 12:22:40 UTC) #4
MikeSol
Hey all, I got a clean doc build with this newest patch set - please ...
12 years, 8 months ago (2011-08-28 17:23:02 UTC) #5
Trevor Daniels
I can't say I like this change: it makes a complex user interface more complex. ...
12 years, 8 months ago (2011-08-29 07:45:04 UTC) #6
Graham Percival
On Mon, Aug 29, 2011 at 07:45:04AM +0000, tdanielsmusic@googlemail.com wrote: > I can't say I ...
12 years, 8 months ago (2011-08-29 07:54:06 UTC) #7
mikesol_ufl.edu
On Aug 29, 2011, at 9:53 AM, Graham Percival wrote: > On Mon, Aug 29, ...
12 years, 8 months ago (2011-08-29 08:11:20 UTC) #8
t.daniels_treda.co.uk
Graham Percival wrote Monday, August 29, 2011 8:53 AM > Moral of the story? pay ...
12 years, 8 months ago (2011-08-29 08:17:12 UTC) #9
Graham Percival
On Mon, Aug 29, 2011 at 09:15:54AM +0100, Trevor Daniels wrote: > > Graham Percival ...
12 years, 8 months ago (2011-08-29 08:56:00 UTC) #10
mikesol_ufl.edu
On Aug 29, 2011, at 10:55 AM, Graham Percival wrote: > On Mon, Aug 29, ...
12 years, 8 months ago (2011-08-29 09:04:23 UTC) #11
janek
2011/8/29 Graham Percival <graham@percival-music.ca>: > On Mon, Aug 29, 2011 at 09:15:54AM +0100, Trevor Daniels ...
12 years, 8 months ago (2011-08-29 09:58:01 UTC) #12
t.daniels_treda.co.uk
Graham Percival wrote Monday, August 29, 2011 9:55 AM > On Mon, Aug 29, 2011 ...
12 years, 8 months ago (2011-08-29 22:33:19 UTC) #13
t.daniels_treda.co.uk
Mike Solomon wrote Monday, August 29, 2011 9:11 AM > On Mon, Aug 29, 2011 ...
12 years, 8 months ago (2011-08-30 10:08:05 UTC) #14
mikesol_ufl.edu
On Aug 30, 2011, at 12:06 PM, Trevor Daniels wrote: > > Mike Solomon wrote ...
12 years, 8 months ago (2011-08-30 11:08:12 UTC) #15
Graham Percival
On Tue, Aug 30, 2011 at 01:07:46PM +0200, Mike Solomon wrote: > Bad: the user ...
12 years, 8 months ago (2011-08-30 11:27:04 UTC) #16
mikesol_ufl.edu
On Aug 30, 2011, at 1:27 PM, Graham Percival wrote: > On Tue, Aug 30, ...
12 years, 8 months ago (2011-08-30 11:45:18 UTC) #17
Graham Percival
On Tue, Aug 30, 2011 at 01:45:20PM +0200, Mike Solomon wrote: > In current master, ...
12 years, 8 months ago (2011-08-30 11:53:18 UTC) #18
brownian.box
On Tue 30 Aug 2011, 12:53 Graham Percival wrote: > On Tue, Aug 30, 2011 ...
12 years, 8 months ago (2011-08-30 12:02:24 UTC) #19
brownian.box
On Tue 30 Aug 2011, 15:02 I wrote: > Being a user, I often used ...
12 years, 8 months ago (2011-08-30 12:31:51 UTC) #20
t.daniels_treda.co.uk
Mike Solomon wrote Tuesday, August 30, 2011 12:45 PM > I believe that Trevor is ...
12 years, 8 months ago (2011-08-30 13:05:20 UTC) #21
mikesol_ufl.edu
On Aug 30, 2011, at 1:53 PM, Graham Percival wrote: > On Tue, Aug 30, ...
12 years, 8 months ago (2011-08-30 13:22:20 UTC) #22
mikesol_ufl.edu
On Aug 30, 2011, at 2:31 PM, Dmytro O. Redchuk wrote: > On Tue 30 ...
12 years, 8 months ago (2011-08-30 14:08:19 UTC) #23
brownian.box
On Tue 30 Aug 2011, 16:08 Mike Solomon wrote: > Currently, the stem stencil function ...
12 years, 8 months ago (2011-08-30 14:14:21 UTC) #24
mikesol_ufl.edu
On Aug 30, 2011, at 3:04 PM, Trevor Daniels wrote: > > Mike Solomon wrote ...
12 years, 8 months ago (2011-08-30 14:44:42 UTC) #25
t.daniels_treda.co.uk
Mike, you wrote Tuesday, August 30, 2011 3:41 PM > As I stated in a ...
12 years, 8 months ago (2011-08-30 15:41:17 UTC) #26
mikesol_ufl.edu
On Aug 30, 2011, at 4:14 PM, Dmytro O. Redchuk wrote: > On Tue 30 ...
12 years, 8 months ago (2011-08-30 15:49:11 UTC) #27
MikeSol
Hey all, I've made a pretty significant change to this patch resulting from the conversation ...
12 years, 8 months ago (2011-08-30 19:52:40 UTC) #28
Reinhold
Can you add a regtest for overriding Stem #'length?
12 years, 8 months ago (2011-08-30 20:00:37 UTC) #29
Trevor Daniels
Thanks Mike :) LGTM (with one query) AFAICT in this complex area. http://codereview.appspot.com/4965053/diff/9004/scm/define-grob-properties.scm File scm/define-grob-properties.scm ...
12 years, 8 months ago (2011-08-30 20:39:25 UTC) #30
MikeSol
On 2011/08/30 20:39:25, Trevor Daniels wrote: > Thanks Mike :) > > LGTM (with one ...
12 years, 8 months ago (2011-08-30 20:53:16 UTC) #31
t.daniels_treda.co.uk
> http://codereview.appspot.com/4965053/diff/9004/scm/define-grob-properties.scm#newcode841 >> scm/define-grob-properties.scm:841: (stem-begin-position > ,ly:dimension? "User >> override for the >> shouldn't this ...
12 years, 8 months ago (2011-08-30 21:17:47 UTC) #32
MikeSol
make all ok and make doc ok until it crashes on the file that Graham ...
12 years, 8 months ago (2011-08-31 09:36:20 UTC) #33
Graham Percival
On Wed, Aug 31, 2011 at 09:36:20AM +0000, mtsolo@gmail.com wrote: > i'm running make doc-clean ...
12 years, 8 months ago (2011-09-01 05:13:02 UTC) #34
MikeSol
Pushed as 6465274e66a851cccd4cd32a521abc853f3e79dd. Thanks to all for their help. A couple things: 1) Trevor - ...
12 years, 8 months ago (2011-09-01 08:52:36 UTC) #35
t.daniels_treda.co.uk
12 years, 7 months ago (2011-09-02 11:21:34 UTC) #36
> 1) Trevor - I still haven't heard word back about ly:dimension?. 
> If it
> turns out this is not what's supposed to be used, please feel free 
> to
> change it to number? in a separate commit.

The dimension type was first introduced in 2003 in
lily/lily-guile.cc: a2a77093b49bca4f040944a0b4ec16f3beca05ec

+LY_DEFINE(ly_dimension_p,  "ly:dimension?", 1, 0, 0, (SCM d),
+   "Return @var{d} is a number. Used to distinguish length "
+   "variables from normal numbers.")
+{
+  return scm_number_p (d);
+}

It's now in lily/general-scheme.cc, essentially unchanged:

LY_DEFINE (ly_dimension_p, "ly:dimension?", 1, 0, 0, (SCM d),
           "Return @var{d} as a number.  Used to distinguish length"
           " variables from normal numbers.")
{
  return scm_number_p (d);
}

So the check for the dimension type is identical to that
for number.  Nevertheless, the two appear to be consistently
used in ly sources to indicate their different natures.
As 'stem-begin-position is not a length I'll change its
type to number.

Trevor
 

Sign in to reply to this message.

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