Skip to content

Commit

Permalink
Added a test for the forced initial hyphen.
Browse files Browse the repository at this point in the history
  • Loading branch information
henryso committed Oct 23, 2015
1 parent e509150 commit 26aed71
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/gabc-gtex/bugs/fix-42-a.tex
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
% File generated by gregorio 4.0.0-beta2-proof-read-a62712b-2511
\GregorioTeXAPIVersion{4.0.0-beta2}%
\GreBeginScore{58d6f07be381ad3e2f81429b36a877b888ba1515}{6}{5}{0}{0}{}%
% File generated by gregorio 4.0.0-rc1-develop-f0b0d65-2621
\GregorioTeXAPIVersion{4.0.0-rc1}%
\GreBeginScore{44f13a3f54ece81ca04469d5a87b6481e02a7a27}{6}{5}{0}{0}{}%
\GreSetInitial{A}%
\GreBeginNotes %
\GreSetInitialClef{c}{4}{3}%
\GreSyllable{\GreSetThisSyllable{}{\GreFirstWord{}}{}{\GreFirstWord{A}}{\GreFirstWord{}}}{}{\GreFirstWord}{0}{\GreSetNextSyllable{\GreFirstWord{m}}{\GreFirstWord{e}}{\GreFirstWord{n}}{\GreFirstWord{m}}{\GreFirstWord{e}\GreFirstWord{n}}}{}{0}{}{%
\GreSyllable{\GreSetThisSyllable{}{\GreFirstWord{}}{}{\GreFirstWord{A}}{\GreFirstWord{}}\GreForceHyphen{}}{}{\GreFirstWord}{0}{\GreSetNextSyllable{\GreFirstWord{m}}{\GreFirstWord{e}}{\GreFirstWord{n}}{\GreFirstWord{m}}{\GreFirstWord{e}\GreFirstWord{n}}}{}{0}{}{%
\GreGlyph{\GreCPPunctum}{5}{5}{0}%
{%
\GreGlyphHeights{5}{5}%
Expand Down
Binary file added tests/tex-output/bugs/fix-653/fix-653.pdf
Binary file not shown.
27 changes: 27 additions & 0 deletions tests/tex-output/bugs/fix-653/fix-653.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
\documentclass[11pt]{article}
\usepackage{fontspec}
\usepackage[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}
\begin{document}
\gregorioscore[a]{ipse}

\vspace{1cm}
\gresetemptyfirstsyllablehyphen{auto}
\gregorioscore[a]{ipse}

\vspace{1cm}
\gresetemptyfirstsyllablehyphen{force}
\gregorioscore[a]{ipse}
\end{document}
5 changes: 5 additions & 0 deletions tests/tex-output/bugs/fix-653/ipse.gabc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
%issue 653
name:Fix 653;
mode:7;
%%
(c3) I(g)pse(e') præ(f)í(h)bit(h')

0 comments on commit 26aed71

Please sign in to comment.