2005-02-06 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scm/framework-ps.scm (output-preview-framework): bugfix.
+
+ * ly/chord-modifiers-init.ly (ignatzekExceptionMusic): use unicode
+ o/ for chord modifier..
+
+ * lily/general-scheme.cc (LY_DEFINE): new function ly:wide-char->utf-8.
+
* lily/drum-note-performer.cc: remove unused (thanks Michael
Welsh Duggan).
return lst;
}
+
+LY_DEFINE(ly_wchar_to_utf_8, "ly:wide-char->utf-8",
+ 1, 0, 0, (SCM wc),
+ "Encode the Unicode codepoint @var{wc} as UTF-8")
+{
+ char buf[100];
+
+ SCM_ASSERT_TYPE(scm_is_integer (wc), wc, SCM_ARG1, __FUNCTION__, "integer");
+ wchar_t wide_char = (wchar_t) scm_to_int (wc);
+
+ mbstate_t state;
+ memset (&state, '\0', sizeof (state));
+ memset (buf, '\0', sizeof (buf));
+
+ wcrtomb (buf, wide_char, &state);
+
+ return scm_makfrom0str (buf);
+}
+
SCM func = ly_lily_module_constant ("hash-table->alist");
return scm_call_1 (func, tab);
}
+
chordmodifiers = #default-chord-modifier-list
-whiteTriangleMarkup = \markup { \override #'(font-encoding . TeX-math) \char #77 }
-blackTriangleMarkup = \markup { \override #'(font-encoding . TeX-math) \char #78 }
+whiteTriangleMarkup = \markup {
+ %% 394 capital delta
+ %% #(ly:export (ly:wide-char->utf-8 #x0394))
+
+ %% up pointing triangle
+ %% #(ly:export (ly:wide-char->utf-8 #x25B3))
+
+ FIXME
+
+ %% \override #'(font-encoding . TeX-math) \char #77
+
+}
+
+blackTriangleMarkup = \markup {
+
+ %% black up pointing triangle
+ %% #(ly:export (ly:wide-char->utf-8 #x25B2))
+ FIXME
+
+ %% \override #'(font-encoding . TeX-math) \char #78 }
+}
ignatzekExceptionMusic = {
<c e gis>1-\markup { "+" }
<c es ges>-\markup { \super "o" } % should be $\circ$ ?
- <c es ges bes>-\markup { \super \combine "o" "/" }
+ <c es ges bes>-\markup {
+ %% f8 o with slash.
+ #(ly:export (ly:wide-char->utf-8 #x00f8))
+ }
<c es ges beses>-\markup { \super "o7" }
}
(define-public (output-preview-framework basename book scopes fields )
- (let* ((outputter (ly:make-paper-outputter filename
- "ps"))
- (paper (ly:paper-book-paper book))
+ (let* ((paper (ly:paper-book-paper book))
(systems (ly:paper-book-systems book))
- (scale (ly:output-def-lookup paper 'outputscale ))
+ (scale (ly:output-def-lookup paper 'outputscale))
(titles (take-while ly:paper-system-title? systems))
(non-title (find (lambda (x)
(not (ly:paper-system-title? x))) systems))
(stack-stencils Y DOWN 0.0
(map ly:paper-system-stencil
(append titles (list non-title))))))
- (dump-stencil-as-EPS paper dump-me basename #t)))
+ (dump-stencil-as-EPS paper dump-me
+ (format "~a.preview" basename)
+ #t)))