# simple test
guile -s ../src/libgnomecanvas/examples/canvas.scm
-=======
->>>>>>> 1.21
(debug-enable 'backtrace)
(srfi srfi-13)
(lily)
(gnome gtk)
-<<<<<<< output-gnome.scm
(gnome gtk gdk-event)
;; the name of the module will change to canvas rsn
(gnome gw libgnomecanvas))
;;(gnome gw canvas))
-=======
- (gnome gtk gdk-event))
-
-;; the name of the module will change to canvas rsn
-(if (resolve-module '(gnome gw canvas))
- (use-modules (gnome gw canvas))
- (use-modules (gnome gw libgnomecanvas)))
-
->>>>>>> 1.21
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; module entry
;; minimal intercept list:
(define output-interface-intercept
-<<<<<<< output-gnome.scm
'(
no-origin
))
-=======
- '(comment
- define-origin
- no-origin))
->>>>>>> 1.21
(map (lambda (x) (module-define! this-module x dummy))
output-interface-intercept)
;; (* (/ 72.27 25.40) x))
;; do nothing in .scm output
-(define-public (comment s) "")
(define-public (ly:numbers->string lst)
(string-join (map ly:number->string lst) " "))
(lineto 0 (/ thick 2))
(closefill))))
-(define (comment s)
- (string-append "% " s "\n"))
-
(define (brack-traject pair ds alpha)
(let ((alpha-rad (* alpha (/ 3.141592654 180))))
(cons (+ (car pair) (* (cos alpha-rad) ds))
(rlineto (- xwid) 0)
(closefill))))
-(define (end-output) "")
(define (experimental-on) "")
(string-append "\\embeddedpdf{" (get-output-string os) "}")))
-(define (comment s)
- (simple-format #f "% ~a\n" s))
-
-(define (end-output)
- (begin
- ; uncomment for some stats about lily memory
- ; (display (gc-stats))
- (string-append "%\n\\lilypondend\n"
- ; Put GC stats here.
- )))
(define (experimental-on)
"")
(define-module (scm output-ps)
#:re-export (quote)
- #:export (define-fonts
- unknown
- select-font
+ #:export (unknown
blank
dot
beam
symmetric-x-triangle
ez-ball
comment
- end-output
- experimental-on
repeat-slash
- header-end
- header
placebox
bezier-sandwich
- start-system
- stop-system
- stop-last-system
horizontal-line
filledbox
round-filled-box
draw-line
define-origin
no-origin
- start-page
- stop-page
))
(use-modules (guile)
(ps-font-command font) " setfont "
"(\\" (ly:inexact->string i 8) ") show" ))
-(define (comment s)
- (string-append "% " s "\n"))
-
(define (dashed-line thick on off dx dy)
(string-append
(ly:number->string dx) " "
(ly:number->string x2) " "
(ly:number->string y2) " lineto stroke"))
-(define (end-output)
- "\nend-lilypond-output\n")
-
(define (ez-ball ch letter-col ball-col)
(string-append
" (" ch ") "
; ((eq? keyword 'dashed-line thick on off dx dy)
; ((eq? keyword 'dashed-slur thick dash l)
; ((eq? keyword 'define-origin a b c ) "")
-; ((eq? keyword 'end-output)
; ((eq? keyword 'experimental-on) "")
; ((eq? keyword 'ez-ball ch letter-col ball-col)
; ((eq? keyword 'filledbox x y breapth width depth height)
;;; define-fonts
;;; no-origin
;;; start-system
-;;; end-output
;;; header
;;; comment
;;; stop-last-system
(define (define-fonts paper font-list)
(comment (format #f "Fonts used: ~S" font-list)))
-(define (end-output)
- "</g></svg>")
-
(define (filledbox breapth width depth height)
(round-filled-box breapth width depth height line-thickness))
(lambda () (ps-output-expression expr (current-output-port))))))
(string-append "\\embeddedps{" ps-string "}")))
-(define (comment s)
- (string-append "% " s "\n"))
-
-(define (end-output)
- (begin
- ;; uncomment for some stats about lily memory
- ;; (display (gc-stats))
- (string-append
- "\\lilypondend\n"
- ;; Put GC stats here.
- )))
(define (repeat-slash w a t)
(embedded-ps (list 'repeat-slash w a t)))