]> git.donarmstrong.com Git - lilypond.git/commit
Introduce new handling for paper margin settings.
authorMichael Käppler <xmichael-k@web.de>
Fri, 11 Sep 2009 23:47:00 +0000 (01:47 +0200)
committerNeil Puttock <n.puttock@gmail.com>
Thu, 1 Oct 2009 22:35:03 +0000 (23:35 +0100)
commit98ff0d93569a59412763835f250a559f414eef11
tree7cd82197a67f2ab68c56791d8172c1c5d4702a64
parent39b1818d7c3a6305d67ef1b381584a107255b7b6
Introduce new handling for paper margin settings.

* Make default margins accessible in ly/paper-defaults-init.ly

* Introduce a new method: Output_def::normalize (). It checks,
  whether left-margin, right-margin and/or line-width are set.
  Afterwards it computes missing values or takes defaults, if
  necessary. There is no need to specify line-width manually now.

* Make right-margin work

* If only line-width is set, the current behaviour persists.
  (Systems are centered)

* Output a warning if the margin values don't fit with each other or
  systems run off the page due to improper settings

* Modify lilypond-book to set a default line-width in case there
  is no other to base on left-padding (This is ugly, though)
15 files changed:
input/regression/paper-margins-consistency.ly [new file with mode: 0644]
input/regression/paper-margins-left-margin.ly [new file with mode: 0644]
input/regression/paper-margins-line-width.ly [new file with mode: 0644]
input/regression/paper-margins-no-checks.ly [new file with mode: 0644]
input/regression/paper-margins-overrun.ly [new file with mode: 0644]
input/regression/paper-margins-right-margin.ly [new file with mode: 0644]
input/regression/paper-margins.ly [new file with mode: 0644]
lily/book.cc
lily/include/output-def.hh
lily/output-def.cc
lily/paper-book.cc
ly/paper-defaults-init.ly
scm/page.scm
scm/paper.scm
scripts/lilypond-book.py