%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "/lilypond-2.24.4/input/regression/emmentaler-number-kerning.ly"
\sourcefileline 0
\version "2.23.10"

\header {
  texidoc = "The Emmentaler font contains kerning for many number pairs."
}

#(define pair-characters
   '("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" "-" "+" "." ","))

#(define (number-line left-character)
   (map (lambda (x)
          (make-with-dimension-markup
           X '(0 . 5)
           (make-number-markup
            (make-concat-markup (list left-character x)))))
        pair-characters))

#(define (test-kerning title feature-list)
   (make-column-markup
    (list title
          (make-vspace-markup 1)
          (make-override-markup
           `((font-size . 0)
             (word-space . 2)
             (baseline-skip . 5)
             (font-features . ,feature-list))
           (make-column-markup
            (map (lambda (x)
                   (make-line-markup (number-line x)))
                 pair-characters))))))

$(test-kerning "time-signatures:" '(""))
\pageBreak
$(test-kerning "figured bass (tnum, cv47, ss01):" '("tnum" "cv47" "ss01"))
\pageBreak
$(test-kerning "fingering (cv47, ss01):" '("cv47" "ss01"))
\pageBreak
$(test-kerning "fixed-width (tnum, cv47, -kern):" '("tnum" "cv47" "-kern"))

\paper { print-page-number = ##f }



% ****************************************************************
% end ly snippet
% ****************************************************************
