]> git.donarmstrong.com Git - lilypond.git/commitdiff
(FatalConversionError.sub_cxx_id):
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 2 Feb 2006 01:18:40 +0000 (01:18 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 2 Feb 2006 01:18:40 +0000 (01:18 +0000)
anticipate on identifier substitutions.

ChangeLog
python/convertrules.py
scm/framework-tex.scm
scm/paper.scm

index 2e453c30243b577272640f480585c885681b0c20..4b2e373421683979108ed101bb8c8e6abcd2e9fe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-02  Han-Wen Nienhuys  <hanwen@xs4all.nl>
+
+       * python/convertrules.py (FatalConversionError.sub_cxx_id):
+       anticipate on identifier substitutions.
+
 2006-02-02  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * flower/include/std-vector.hh (insert): Remove, replace by
index 5be6856802e5c65ba5c4f79f99cbabeb294cbf1d..99706967808c3d0de54cd0649c61688df4656534 100644 (file)
@@ -2696,6 +2696,39 @@ def conv (str):
                
        str = re.sub (r'([A-Z][a-z_0-9]+::[a-z_0-9]+)',
                      sub_cxx_id, str)
+
+       identifier_subs = [
+               ('inputencoding', 'input-encoding'),
+               ('printpagenumber', 'print-page-number'),
+               ('outputscale', 'output-scale'),
+               ('betweensystemspace', 'between-system-space'),
+               ('betweensystempadding', 'between-system-padding'),
+               ('pagetopspace', 'page-top-space'),
+               ('raggedright', 'ragged-right'),
+               ('raggedbottom', 'ragged-bottom'),
+               ('raggedlastbottom', 'ragged-last-bottom'),
+               ('aftertitlespace', 'after-title-space'),
+               ('beforetitlespace', 'before-title-space'),
+               ('betweentitlespace', 'between-title-space'),
+               ('topmargin', 'top-margin'),
+               ('bottommargin', 'bottom-margin'),
+               ('headsep', 'heap-separation'),
+               ('footsep', 'foot-separation'),
+               ('rightmargin', 'right-margin'),
+               ('leftmargin', 'left-margin'),
+               ('firstpagenumber', 'first-page-number'),
+               ('printfirstpagenumber', 'print-first-page-number'),
+               ('hsize', 'paper-width'),
+               ('vsize', 'paper-height'),
+               ('horizontalshift', 'horizontal-shift'),
+               ('staffspace', 'staff-space'),
+               ('linethickness', 'line-thickness'),
+               ('ledgerlinethickness', 'ledger-line-thickness'),
+               ('blotdiameter', 'blot-diameter'),
+               ('staffheight', 'staff-height'),
+               ('linewidth', 'line-width')
+               ]
+       
        return str
 
 conversions.append (((2, 7, 31), conv,
index e4517fe4872520594ace9fcb9ac5c77c0d198ea1..59ed71e53ebc9bcec9775282305024e91ed9c904 100644 (file)
      (sanitize-tex-string texpaper)
      (if landscape? ",landscape" "")
      "}%\n"
-     (tex-string-def
-      "lilypondpaper" 'interscoreline
-      (ly:number->string
-       (* scale (ly:output-def-lookup paper 'interscoreline)))))))
+     )))
 
 (define (header-end)
   (string-append
index 1ee7fc31792f9cbb8ed7f95884fe4012f030e2f2..18285a2e649b77367adf219744b80b37c5c549f5 100644 (file)
@@ -11,7 +11,7 @@
                       betweensystemspace betweensystempadding
                       linewidth indent hsize vsize horizontalshift
                       staffspace linethickness ledgerlinethickness
-                      blotdiameter interscoreline leftmargin rightmargin)))
+                      blotdiameter leftmargin rightmargin)))
 
 (define-public (layout-set-staff-size sz)
   "Function to be called inside a \\layout{} block to set the staff size."
@@ -49,7 +49,7 @@
     (module-define! m 'linethickness lt)
     (module-define! m 'ledgerlinethickness (+ (* 0.5 pt) (/ ss 10)))
     (module-define! m 'blotdiameter (* 0.4 pt))
-    (module-define! m 'interscoreline (* 4 mm))))
+    ))
 
 (define-safe-public (set-global-staff-size sz)
   "Set the default staff size, where SZ is thought to be in PT."