]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove some cruft.
authorJan Nieuwenhuizen <janneke@gnu.org>
Fri, 9 Apr 2004 11:12:46 +0000 (11:12 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Fri, 9 Apr 2004 11:12:46 +0000 (11:12 +0000)
ChangeLog
scm/output-ps.scm

index c3e36e44669a3a9065916d5b2466315ad95cd5d2..fb7b912dbcfd325709d1419afed88715648ba522 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-09  Jan Nieuwenhuizen  <janneke@gnu.org>
+
+       * scm/output-ps.scm: Remove some cruft.
+
 2004-04-09  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
        * Documentation/user/lilypond.tely (Top): manual for v2.3 (backportme)
index bf8056091038d8b8bcac0b7f204b6b791e51c18f..a49156c011ebd017138968e54db0bfd33a1f5624 100644 (file)
@@ -1,4 +1,4 @@
-;;;; output-ps.scm -- implement Scheme output routines for PostScript
+;;;; output-ps.scm -- implement Scheme output interface for PostScript
 ;;;;
 ;;;;  source file of the GNU LilyPond music typesetter
 ;;;; 
@@ -9,11 +9,7 @@
 ;;;;       input/test/title-markup.ly
 ;;;; 
 ;;;; TODO:
-;;;;   * papersize in header
-;;;;   * special characters, encoding.
-;;;;     + implement encoding switch (switches?  input/output??),
-;;;;     + move encoding definitions to ENCODING.ps files, or
-;;;;     + find out which program's PS(?) encoding code we can use?
+;;;;   * %% Papersize in (header ...)
 ;;;;   * text setting, kerning.
 ;;;;   * document output-interface
 
             no-origin
             start-page
             stop-page
-            )
-)
+            ))
+
 (use-modules (guile)
             (ice-9 regex)
             (srfi srfi-13)
             (lily))
 
 ;;; Global vars
-;; alist containing fontname -> fontcommand assoc (both strings)
 (define page-count 0)
 (define page-number 0)
 
-;; /lilypondpaperoutputscale 1.75729901757299 def
-;;/lily-output-units 2.83464  def  %% milimeter
-;;/output-scale lilypondpaperoutputscale lily-output-units mul def
-;;
-;; output-scale = 1.75729901757299 * 2.83464 = 4.9813100871731003736
-
-(define OUTPUT-SCALE 4.98)
-(define TOP-MARGIN 0)
-
 ;;; helper functions, not part of output interface
 (define (escape-parentheses s)
   (regexp-substitute/global #f "(^|[^\\])([\\(\\)])" s 'pre 1 "\\" 2 'post))
@@ -88,8 +74,6 @@
   (cons (+ (car a) (car b))
        (+ (cdr a) (cdr b))))
 
-;;    ("ecmb12" . "ISOLatin1Encoding")))
-                
 (define (ps-encoding text)
   (escape-parentheses text))
 
    " draw_symmetric_x_triangle"))
 
 (define (text font s)
-  
-;;  (string-append "(" (escape-parentheses s) ") show "))
-  (string-append
-
-   (font-command font) " setfont " 
-   "(" (ps-encoding s) ") show"))
+  (string-append (font-command font) " setfont "
+                "(" (ps-encoding s) ") show"))
 
 (define (unknown) 
   "\n unknown\n")