Skip to content

Commit

Permalink
Added test for minimalinitialwidth.
Browse files Browse the repository at this point in the history
  • Loading branch information
henryso committed Nov 8, 2016
1 parent 4a8a49b commit 267667c
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tex-output/minimalinitialwidth/aeterne.gabc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: Aterne rerum conditor (incipit);
mode: 3;
%%
(c4)Æ(ed)tér(g)ne(hj) re(j)rum(ij) cón(k)di(j)tor,(ih) (,)
4 changes: 4 additions & 0 deletions tests/tex-output/minimalinitialwidth/beata.gabc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: Beata es, Maria (incipit);
mode: 8;
%%
(c4) Be(g)a(gj)ta(hg) es,(h) Ma(f)ri(gh)a,(go@hv) *(,)
4 changes: 4 additions & 0 deletions tests/tex-output/minimalinitialwidth/iam.gabc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: Iam, bone pastor (incipit);
mode: 4;
%%
(c4)Iam,(efe) bo(dc)ne(dfd) pa(e)stor,(e) (,)
4 changes: 4 additions & 0 deletions tests/tex-output/minimalinitialwidth/magnificat.gabc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: Magnificat (incipit);
mode: 1;
%%
(c4) Ma(cd)gni(ixdh'!iv)fi(h)cat(h.) *(,)
47 changes: 47 additions & 0 deletions tests/tex-output/minimalinitialwidth/minimalinitialwidth.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
%notes: tests minimalinitialwidth
\documentclass[11pt]{article}
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage[debug=all,allowdeprecated=false]{gregoriotex}
\setmainfont[
Path = ../../../fonts/ ,
Extension = .otf ,
UprightFont = *-Regular ,
UprightFeatures = { SmallCapsFont = *SC-Regular } ,
BoldFont = *-Bold ,
BoldFeatures = { SmallCapsFont = *SC-Bold } ,
ItalicFont = *-Italic ,
ItalicFeatures = { SmallCapsFont = *SC-Italic } ,
BoldItalicFont = *-BoldItalic ,
BoldItalicFeatures = { SmallCapsFont = *SC-BoldItalic } ,
Ligatures = TeX
]{Alegreya}
\newcommand{\minimumwidth}{1cm}
\grechangedim{minimalinitialwidth}{\minimumwidth}{scalable}%
\makeatletter
\newcommand{\initialbox}{%
\noindent%
\hbox to \gre@space@dimen@beforeinitialshift{\hfil}%
\fbox{\hspace{\minimumwidth}}%
}
\newcommand{\score}[1]{%
\initialbox

\gregorioscore[a]{#1}%
}
\makeatother
\begin{document}
\score{iam}
\score{beata}
\score{oportet}
\score{magnificat}
\score{aeterne}
\pagebreak
\grechangedim{manualinitialwidth}{\minimumwidth}{scalable}%
\score{iam}
\score{beata}
\score{oportet}
\score{magnificat}
\score{aeterne}
\initialbox
\end{document}
4 changes: 4 additions & 0 deletions tests/tex-output/minimalinitialwidth/oportet.gabc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: Oportet te fili gaudere (incipit);
mode: 8;
%%
(c4) O(g)por(j)tet(h) te(g.) *() fi(h)li(f) gau(h)de(g.)re,(g.) (;)

0 comments on commit 267667c

Please sign in to comment.