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

Issue 879043: Severe overestimation of line height for significantly non-rectangular systems

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by Boris Shingarov
Modified:
14 years ago
Reviewers:
joeneeman
Visibility:
Public.

Patch Set 1 #

Total comments: 10

Patch Set 2 : Second revision of the patch #

Patch Set 3 : Distinguish between normal vs begin-of-page height #

Total comments: 6

Patch Set 4 : Fixed line compression, got rid of y_extent_, consolidated begin and rest into shape #

Total comments: 1

Patch Set 5 : Formatting; and refactoring class name and local state #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -38 lines) Patch
M lily/constrained-breaking.cc View 1 2 3 4 1 chunk +0 lines, -25 lines 0 comments Download
M lily/include/constrained-breaking.hh View 1 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M lily/page-breaking.cc View 1 2 3 4 1 chunk +11 lines, -4 lines 1 comment Download

Messages

Total messages: 30
joeneeman
Ok, I think I understand now what y_extent does and how the code works as ...
14 years ago (2010-04-09 05:46:12 UTC) #1
Boris Shingarov
http://codereview.appspot.com/879043/diff/1/2 File lily/constrained-breaking.cc (right): http://codereview.appspot.com/879043/diff/1/2#newcode514 lily/constrained-breaking.cc:514: stencil_extent_ = unsmob_stencil (pb->get_property ("stencil")) ->extent (Y_AXIS); On 2010/04/09 ...
14 years ago (2010-04-13 12:58:39 UTC) #2
Boris Shingarov
http://codereview.appspot.com/879043/diff/1/3 File lily/include/constrained-breaking.hh (right): http://codereview.appspot.com/879043/diff/1/3#newcode82 lily/include/constrained-breaking.hh:82: first_markup_line_ = false; On 2010/04/09 05:46:12, joeneeman wrote: > ...
14 years ago (2010-04-13 12:59:56 UTC) #3
Boris Shingarov
http://codereview.appspot.com/879043/diff/1/6 File lily/page-spacing.cc (right): http://codereview.appspot.com/879043/diff/1/6#newcode55 lily/page-spacing.cc:55: rod_height_ += line.y_extent_; On 2010/04/09 05:46:12, joeneeman wrote: > ...
14 years ago (2010-04-13 13:35:40 UTC) #4
Boris Shingarov
> - Regarding the Real vs. double naming, I'm almost 100% positive that "double" > ...
14 years ago (2010-04-13 13:52:39 UTC) #5
joeneeman
http://codereview.appspot.com/879043/diff/1/6 File lily/page-spacing.cc (right): http://codereview.appspot.com/879043/diff/1/6#newcode55 lily/page-spacing.cc:55: rod_height_ += line.y_extent_; On 2010/04/13 13:35:40, Boris Shingarov wrote: ...
14 years ago (2010-04-13 20:49:06 UTC) #6
Boris Shingarov
> Therefore, for each system, you need to compute the tallness_ with respect both > ...
14 years ago (2010-04-13 23:40:06 UTC) #7
joeneeman
On 2010/04/13 23:40:06, Boris Shingarov wrote: > > Therefore, for each system, you need to ...
14 years ago (2010-04-14 00:07:12 UTC) #8
Boris Shingarov
> if (!rod_height_) > // use begin-of-page-tallness > else > // use normal tallness So ...
14 years ago (2010-04-14 11:58:34 UTC) #9
joeneeman
On 2010/04/14 11:58:34, Boris Shingarov wrote: > > if (!rod_height_) > > // use begin-of-page-tallness ...
14 years ago (2010-04-14 16:36:33 UTC) #10
Boris Shingarov
There may have been be another bug hiding in Page_spacing::prepend_system() for ages: if (rod_height_) rod_height_ ...
14 years ago (2010-04-20 01:16:39 UTC) #11
joeneeman
This definitely looks better, but I pointed out a few more small things. There are ...
14 years ago (2010-04-20 02:17:50 UTC) #12
joeneeman
On 2010/04/20 01:16:39, Boris Shingarov wrote: > There may have been be another bug hiding ...
14 years ago (2010-04-20 02:28:00 UTC) #13
Boris Shingarov
The more I debug the little example I sent you (I don't see a way ...
14 years ago (2010-04-20 19:23:36 UTC) #14
Boris Shingarov
14 years ago (2010-04-20 19:24:10 UTC) #15
joeneeman
On 2010/04/20 19:23:36, Boris Shingarov wrote: > The more I debug the little example I ...
14 years ago (2010-04-20 20:51:05 UTC) #16
Boris Shingarov
> so that when the title and the following line are merged > together, the ...
14 years ago (2010-04-20 21:06:34 UTC) #17
joeneeman
On 2010/04/20 21:06:34, Boris Shingarov wrote: > > so that when the title and the ...
14 years ago (2010-04-20 21:08:04 UTC) #18
Boris Shingarov
> > I did not realize there was also something about compression and title lines. ...
14 years ago (2010-04-20 21:11:35 UTC) #19
Boris Shingarov
This seems to fix all known problems. Btw, make-test-baseline seems to fail with current origin/master?
14 years ago (2010-04-21 00:59:38 UTC) #20
joeneeman
On 2010/04/21 00:59:38, Boris Shingarov wrote: > This seems to fix all known problems. It ...
14 years ago (2010-04-21 18:38:20 UTC) #21
joeneeman
http://codereview.appspot.com/879043/diff/34001/35002 File lily/include/constrained-breaking.hh (right): http://codereview.appspot.com/879043/diff/34001/35002#newcode31 lily/include/constrained-breaking.hh:31: struct BeginRestShape Begin_rest_shape Actually, I find this name a ...
14 years ago (2010-04-21 18:38:31 UTC) #22
Boris Shingarov
On 2010/04/21 18:38:20, joeneeman wrote: > Also, you didn't address my complaint about the hanging ...
14 years ago (2010-04-21 19:07:39 UTC) #23
Boris Shingarov
> Actually, I find this name a little confusing (it sounds like it should be ...
14 years ago (2010-04-21 19:17:22 UTC) #24
Boris Shingarov
> There seem to be some formatting problems, however. > Please run fixcc.py to fix ...
14 years ago (2010-04-21 19:21:01 UTC) #25
joeneeman
On 2010/04/21 19:07:39, Boris Shingarov wrote: > On 2010/04/21 18:38:20, joeneeman wrote: > > > ...
14 years ago (2010-04-21 19:36:41 UTC) #26
joeneeman
On 2010/04/21 19:21:01, Boris Shingarov wrote: > > There seem to be some formatting problems, ...
14 years ago (2010-04-21 19:50:10 UTC) #27
Boris Shingarov
Ok, I just uploaded a new patch set: it fixes parenthesizing, renames the class, and ...
14 years ago (2010-04-21 21:14:31 UTC) #28
joeneeman
For some reason, rietveld is only showing three modified files in the latest patch (so ...
14 years ago (2010-04-21 22:45:45 UTC) #29
Boris Shingarov
14 years ago (2010-04-21 23:35:41 UTC) #30
Mail with full patch sent.
Sign in to reply to this message.

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