+2004-04-12 Han-Wen Nienhuys <hanwen@xs4all.nl>
+
+ * scm/output-tex.scm (text): dump \inputencoding{} for text.
+
2004-04-11 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scripts/lilypond.py (global_latex_preamble): remove latin1 from
+ \usepackage{inputenc}
+
* lily/paper-book.cc (classic_output): don't advance Offset for
TeX output.
(define (text font s)
(let*
- ((mapping #f))
+ ((mapping #f)
+ (input-enc-name (assoc-get 'input-name (ly:font-encoding-alist font) ))
+ )
;; TODO: we'd better do this for PS only
;; LaTeX gets in the way, and we need to remap
;; (assoc-get 'char-mapping (ly:font-encoding-alist font))))
- (string-append "\\hbox{\\" (font-command font) "{}"
+ (string-append "\\hbox{\\" (font-command font)
+ (if (string? input-enc-name)
+ (string-append "\\inputencoding{" input-enc-name "}")
+ "{}")
(output-tex-string
(if (vector? mapping)
(reencode-string mapping s)