]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/output-tex.scm
* scm/output-tex.scm (text): switch off char-mapping.
[lilypond.git] / scm / output-tex.scm
index 9c0869c8d8cdd8e0baab374457858f3464e5b32c..6ffd94ea9292d2aa6773486cee502b5360731180 100644 (file)
 
 ;; FIXME: explain ploblem: need to do something to make this really safe.  
 (define (output-tex-string s)
-  (if safe-mode?
-      (regexp-substitute/global #f "\\\\" s 'pre "$\\backslash$" 'post)
-      s))
+   (if safe-mode?
+       (regexp-substitute/global #f "\\\\" s 'pre "$\\backslash$" 'post)
+       s))
 
 (define (lily-def key val)
   (let ((tex-key
 
 (define (text font s)
   (let*
-      ((perm (assoc-get  'char-mapping (ly:font-encoding-alist font))))
+      ((mapping #f))
+
+      ;; TODO: we'd better do this for PS only
+      ;; LaTeX gets in the way, and we need to remap
+      ;; nonprintable chars.
+
+       ; (assoc-get  'char-mapping (ly:font-encoding-alist font))))
 
     (string-append "\\hbox{\\" (font-command font) "{}"
                   (output-tex-string
-                   (if (vector? perm)
-                       (reencode-string perm s)
+                   (if (vector? mapping)
+                       (reencode-string mapping s)
                        s))
                   "}")))