Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added test for minimalinitialwidth. #274

Merged
merged 2 commits into from
Nov 8, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.) (;)