]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/output-texstr.scm
Run `make grand-replace'.
[lilypond.git] / scm / output-texstr.scm
index c10d9bf97f1a44c4332726221d71044a3169278b..324b5b1fe1abd09eba479e27bdd171474f747c4f 100644 (file)
@@ -2,7 +2,7 @@
 ;;;;
 ;;;;  source file of the GNU LilyPond music typesetter
 ;;;; 
-;;;; (c)  2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+;;;; (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
 (define-module (scm output-texstr))
 (define this-module (current-module))
@@ -11,6 +11,7 @@
  (guile)
  (ice-9 regex)
  (srfi srfi-13)
+ (scm framework-tex)
  (lily))
 
 (define (dummy . foo) #f)
@@ -25,6 +26,8 @@
   (if (string? what)
       what
       ""))
+
+
 (define-public (text font str)
   (call-with-output-string
    (lambda (port)
@@ -33,5 +36,6 @@
                      (hash str TEX_STRING_HASHLIMIT)
                    (ly:font-file-name font)
                    (ly:font-file-name font)
-                   str) port)
+                   (sanitize-tex-string str))
+             port)
      )))