1 ;;;; texstr.scm -- implement Scheme output routines for TeX strings
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 2004--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 (define-module (scm output-texstr))
8 (define this-module (current-module))
17 (define (dummy . foo) #f)
19 (map (lambda (x) (module-define! this-module x dummy))
20 (ly:all-stencil-expressions))
22 (define-public (grob-cause . x) "")
23 (define-public (no-origin . x) "")
24 (define-public (placebox
31 (define-public (text font str)
32 (call-with-output-string
34 (display (format "\\lilygetmetrics{~a~a}{~a}{1.0}{~a}\n"
36 (hash str TEX_STRING_HASHLIMIT)
37 (ly:font-file-name font)
38 (ly:font-file-name font)
39 (sanitize-tex-string str))