X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fpaper.scm;h=f482d9b9b79f8419af2fa48327a9314d4e7197d7;hb=32a34dcef0c0041c6d62677487a380b5c8b85712;hp=3208f4b82a90654b9fc5e1a55d0df0366303aa0a;hpb=f41973ff763d5972a85995b6d40c864281ec6714;p=lilypond.git diff --git a/scm/paper.scm b/scm/paper.scm index 3208f4b82a..f482d9b9b7 100644 --- a/scm/paper.scm +++ b/scm/paper.scm @@ -1,6 +1,6 @@ ;;;; This file is part of LilyPond, the GNU music typesetter. ;;;; -;;;; Copyright (C) 2004--2011 Han-Wen Nienhuys +;;;; Copyright (C) 2004--2012 Han-Wen Nienhuys ;;;; ;;;; LilyPond is free software: you can redistribute it and/or modify ;;;; it under the terms of the GNU General Public License as published by @@ -15,6 +15,9 @@ ;;;; You should have received a copy of the GNU General Public License ;;;; along with LilyPond. If not, see . +; for define-safe-public when byte-compiling using Guile V2 +(use-modules (scm safe-utility-defs)) + (define-public (set-paper-dimension-variables mod) (module-define! mod 'dimension-variables '(blot-diameter @@ -125,6 +128,11 @@ ;; don't use decimals. ;; ISO 216 has a tolerance of +- 2mm + ;; TODO Autogenerate the following list so it appears under the + ;; 'Predefined paper sizes' node in notation-appendices.itely + ;; currently the list below has been copied and formatted manually. + ;; Therefore, please add any new entries to the *itely file as well. + '(("a10" . (cons (* 26 mm) (* 37 mm))) ("a9" . (cons (* 37 mm) (* 52 mm))) ("a8" . (cons (* 52 mm) (* 74 mm))) @@ -163,10 +171,15 @@ ("c1" . (cons (* 648 mm) (* 917 mm))) ("c0" . (cons (* 917 mm) (* 1297 mm))) ;; Below are North American paper sizes + ("junior-legal" . (cons (* 8.0 in) (* 5.0 in))) ("legal" . (cons (* 8.5 in) (* 14.0 in))) ("letter" . (cons (* 8.5 in) (* 11.0 in))) ;; Ledger (17x11) is a 90 degree rotation of Tabloid + ("17x11" . (cons (* 17.0 in) (* 11.0 in))) + ("ledger" . (cons (* 17.0 in) (* 11.0 in))) + ;; Tabloid (11x17) ("11x17" . (cons (* 11.0 in) (* 17.0 in))) + ("tabloid" . (cons (* 11.0 in) (* 17.0 in))) ;; government-letter by IEEE Printer Working Group, for children's writing ("government-letter" . (cons (* 8 in) (* 10.5 in))) ("government-legal" . (cons (* 8.5 in) (* 13.0 in))) @@ -225,8 +238,9 @@ ;; F4 used in southeast Asia and Australia ("f4" . (cons (* 210 mm) (* 330 mm))) ;; Used for very small @lilypond examples in the Documentation - ;; based on a8 size but landscape not portrait + ;; based on a8 and a7 sizes but landscape not portrait ("a8landscape" . (cons (* 74 mm) (* 52 mm))) + ("a7landscape" . (cons (* 105 mm) (* 74 mm))) )) ;; todo: take dimension arguments.