whiteout for markups.
* buildscripts/substitute-encoding.py (note_glyph): include _ in
regex too. This fixes change clef appearance in PDF.
2005-06-22 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * scm/output-lib.scm (fret-number-tablature-format): vcenter and
+ whiteout for markups.
+
+ * buildscripts/substitute-encoding.py (note_glyph): include _ in
+ regex too. This fixes change clef appearance in PDF.
+
+ * ttftool/include/*: remove.
+
* configure.in (reloc_b): remove TTFTOOL_ENDIAN
* config.make.in (WINDRES): remove TTFTOOL_ENDIAN.
* scm/editor.scm (editor-command-template-alist): Use char iso
column, except for Emacs.
- (get-editor-command): Substitute char too (Bert).
+ (get-editor-command): Substitute char too (Bertalan Fodor).
2005-06-16 Jan Nieuwenhuizen <janneke@gnu.org>
glyphs.append (nm)
- m = re.sub ("(/[a-z-.A-Z0-9]+) %", note_glyph, enc_str )
+ m = re.sub ("(/[a-z.A-Z0-9_]+) %", note_glyph, enc_str )
glyphs = filter (lambda x: None == re.match (r'/\.notdef', x),
glyphs)
(font-series . bold)
(meta . ((interfaces
. (rhythmic-head-interface
- font-interface
+ font-interface
note-head-interface staff-symbol-referencer-interface
text-interface item-interface ))))
))
;; The TabNoteHead tablatureFormat callback.
;; Compute the text grob-property
(define-public (fret-number-tablature-format string tuning pitch)
- (number->string
- (- (ly:pitch-semitones pitch)
- (list-ref tuning
- ;; remove 1 because list index starts at 0 and guitar string at 1.
- (- string 1)))))
+ (make-whiteout-markup
+ (make-vcenter-markup
+ (number->string
+ (- (ly:pitch-semitones pitch)
+ (list-ref tuning
+ ;; remove 1 because list index starts at 0 and guitar string at 1.
+ (- string 1)))))))
;; The 5-string banjo has got a extra string, the fifth (duh), wich
;; starts at the fifth fret on the neck. Frets on the fifth string
;; on the banjo neck.
;; We solve this by defining a new fret-number-tablature function:
(define-public (fret-number-tablature-format-banjo string tuning pitch)
+ (make-whiteout-markup
+ (make-vcenter-markup
(let ((fret (- (ly:pitch-semitones pitch) (list-ref tuning (- string 1)))))
- (number->string (cond
- ((and (> fret 0) (= string 5))
- (+ fret 5))
- (else fret)))))
+ (number->string (cond
+ ((and (> fret 0) (= string 5))
+ (+ fret 5))
+ (else fret)))))))
(define-public (hammer-print-function grob)
(let* ((note-collums (ly:grob-property grob 'note-columns))