summaryrefslogtreecommitdiff
path: root/ly
diff options
context:
space:
mode:
authorMark Polesky <markpolesky@yahoo.com>2010-12-04 15:28:02 -0800
committerMark Polesky <markpolesky@yahoo.com>2010-12-05 10:28:55 -0800
commit407df9e0f629e1224ccac29c7ea503513e704a55 (patch)
tree39477d712b7c7d194dd131ccb5091013e26df978 /ly
parent2411d304b69a3bb30fd231e6125e39d74a09aaa9 (diff)
Clean up declarations-init.ly, paper-defaults-init.ly.
Diffstat (limited to 'ly')
-rw-r--r--ly/declarations-init.ly26
-rw-r--r--ly/paper-defaults-init.ly27
2 files changed, 26 insertions, 27 deletions
diff --git a/ly/declarations-init.ly b/ly/declarations-init.ly
index 403bb0d01d..b500cbf09f 100644
--- a/ly/declarations-init.ly
+++ b/ly/declarations-init.ly
@@ -99,27 +99,27 @@ repeatTie = #(make-music 'RepeatTieEvent)
\include "paper-defaults-init.ly"
\layout {
- mm = #(ly:output-def-lookup $defaultpaper 'mm)
- unit = #(ly:output-def-lookup $defaultpaper 'unit)
+ unit = #(ly:output-def-lookup $defaultpaper 'unit)
+ mm = #(ly:output-def-lookup $defaultpaper 'mm)
- in = #(* 25.4 mm)
- pt = #(/ in 72.27)
- cm = #(* 10 mm)
+ cm = #(* 10 mm)
+ in = #(* 254/10 mm)
+ pt = #(* 100/7227 in)
- \include "engraver-init.ly"
+ \include "engraver-init.ly"
- #(set-paper-dimension-variables (current-module))
+ #(set-paper-dimension-variables (current-module))
}
#(set-default-paper-size (ly:get-option 'paper-size))
partCombineListener = \layout {
- \context {
- \Score
- skipTypesetting = ##t
- ignoreBarChecks = ##t
- \alias "Timing"
- }
+ \context {
+ \Score
+ skipTypesetting = ##t
+ ignoreBarChecks = ##t
+ \alias "Timing"
+ }
}
\include "dynamic-scripts-init.ly"
diff --git a/ly/paper-defaults-init.ly b/ly/paper-defaults-init.ly
index e18e12019d..d0869eaf50 100644
--- a/ly/paper-defaults-init.ly
+++ b/ly/paper-defaults-init.ly
@@ -28,10 +28,10 @@
%%% the dimension-variables variable. See paper.scm.
unit = #(ly:unit)
- mm = 1.0
- in = 25.4
- pt = #(/ in 72.27)
+ mm = #1
cm = #(* 10 mm)
+ in = #(* 254/10 mm)
+ pt = #(* 100/7227 in)
% 20pt staff, 5 pt = 1.75 mm
output-scale = #1.7573
@@ -98,9 +98,9 @@
%%
%% Page breaking
%%
- blank-after-score-page-force = 2
- blank-last-page-force = 0
- blank-page-force = 5
+ blank-after-score-page-force = #2
+ blank-last-page-force = #0
+ blank-page-force = #5
page-breaking = #ly:optimal-breaking
@@ -115,8 +115,8 @@
%%
%% Headers, footers, and titles
%%
- #(define make-header (marked-up-headfoot 'oddHeaderMarkup 'evenHeaderMarkup))
- #(define make-footer (marked-up-headfoot 'oddFooterMarkup 'evenFooterMarkup))
+ make-header = #(marked-up-headfoot 'oddHeaderMarkup 'evenHeaderMarkup)
+ make-footer = #(marked-up-headfoot 'oddFooterMarkup 'evenFooterMarkup)
#(define-public book-title (marked-up-title 'bookTitleMarkup))
#(define-public score-title (marked-up-title 'scoreTitleMarkup))
@@ -133,13 +133,12 @@
%%
%% Fonts
%%
- #(define font-defaults
- '((font-family . feta) (font-encoding . fetaMusic)))
+ font-defaults = #'((font-family . feta)
+ (font-encoding . fetaMusic))
% `latin1' is a dummy value for Pango fonts
- #(define text-font-defaults
- `((font-encoding . latin1)
- (baseline-skip . 3)
- (word-space . 0.6)))
+ text-font-defaults = #'((font-encoding . latin1)
+ (baseline-skip . 3)
+ (word-space . 0.6))
}