I'll attach the files. My proof of concept was based on the pipes idea, but I'm being won over to Élie's five argument idea.
The gtex file was (obviously) hand-edited to add the pipes. Henry On Thursday, 10 September 2015 at 01:17:08 pm -0400, Br. Samuel Springuel wrote: > I hadn't thought of those. Have you committed a branch with your idea that I > can see? It sounded like you've worked out at least part of it already. > > ✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝ > Br. Samuel, OSB > (R. Padraic Springuel) > PAX ☧ ΧΡΙΣΤΟΣ > > > On Sep 10, 2015, at 12:08 PM, Henry T. So Jr. <[email protected]> wrote: > > > > I did consider using xstring functions, but the problem is handling > > verbatims and special characters and styling of the first letter. > > > > Henry > > > > > >> On September 10, 2015 9:05:02 AM "Br. Samuel Springuel" > >> <[email protected]> wrote: > >> > >> I was able to snag a few minutes before heading out for class. > >> > >> Schematic of changes: > >> > >> \ifgre@vowelcentering becomes a count (\gre@lyriccentering). > >> > >> Use \ifcase\gre@lyriccentering in \GreSetThisSyllable. Case 0 and 1 > >> correspond to the current options. > >> > >> Case 2 is as follows: > >> \gdef\gre@firstsyllablepart{}% > >> \StrLeft{#1#2#3}{1}[\gre@middlesyllablepart]% > >> \StrGobble{#1#2#3}{1}[\gre@endsyllablepart]% > >> > >> This should put the first letter into the alignment portion of the > >> syllable (the middle), and everything else into the post alignment > >> portion (the end). > >> > >> Modify \gresetlyriccentering to set the new count and add a > >> `firstletter` option. > >> > >> > >> ✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝ > >> Br. Samuel, OSB > >> (R. Padraic Springuel) > >> > >> PAX ☧ ΧΡΙΣΤΟΣ > > > > >
gregoriotex-main.tex
Description: TeX document
gregoriotex-syllable.tex
Description: TeX document
% File generated by gregorio 4.0.0-beta2-develop-1ec2135-2506
\GregorioTeXAPIVersion{4.0.0-beta2}%
% Name: lyric-centering
\GreBeginScore{5865c623063377f72a09c7ed432ab1a244e57750}{11}{7}{0}{0}{}%
\GreNoInitial %
\GreBeginNotes %
\GreSetInitialClef{c}{3}{3}%
\GreSyllable{\GreSetThisSyllable{|\GreFirstWord{\GreFirstSyllable{\GreFirstSyllableInitial{L}}}|}{\GreFirstWord{\GreFirstSyllable{y}}}{}}{}{\GreFirstWord}{0}{\GreSetNextSyllable{|\GreFirstWord{r}|}{\GreFirstWord{i}}{\GreFirstWord{c}}}{}{0}{}{%
\GreGlyph{\GreCPPunctum}{7}{8}{0}%
{%
\GreGlyphHeights{7}{7}%
}{}{}%
}%
\GreSyllable{\GreSetThisSyllable{|\GreFirstWord{r}|}{\GreFirstWord{i}}{\GreFirstWord{c}}}{}{\GreFirstWord}{1}{\GreSetNextSyllable{|c|}{e}{n}}{}{0}{}{%
\GreGlyph{\GreCPPunctum}{8}{9}{0}%
{%
\GreGlyphHeights{8}{8}%
}{}{}%
}%
%
\GreSyllable{\GreSetThisSyllable{|c|}{e}{n}}{}{\GreUnstyled}{0}{\GreSetNextSyllable{|t|}{e}{r}}{}{0}{}{%
\GreGlyph{\GreCPPunctum}{9}{10}{0}%
{%
\GreGlyphHeights{9}{9}%
}{}{}%
}%
\GreSyllable{\GreSetThisSyllable{|t|}{e}{r}}{}{\GreUnstyled}{0}{\GreSetNextSyllable{}{|i|}{ng.}}{}{0}{}{%
\GreGlyph{\GreCPPunctum}{10}{11}{0}%
{%
\GreGlyphHeights{10}{10}%
}{}{}%
}%
\GreSyllable{\GreSetThisSyllable{}{|i|}{ng.}}{}{\GreUnstyled}{1}{\GreSetNextSyllable{}{}{}}{}{12}{}{%
\GreGlyph{\GreCPPunctum}{11}{9}{0}%
{%
\GreGlyphHeights{11}{11}%
}{}{}%
}%
%
\GreFinalDivisioFinalis{%
}%
\GreEndScore %
\endinput %
name: lyric-centering; initial-style: 0; language: english; %% (c3) Ly(e)ric(f) cen(g)ter(h)ing.(i) (::)
lyric-centering.pdf
Description: Adobe PDF document
lyric-centering.tex
Description: TeX document
_______________________________________________ Gregorio-devel mailing list [email protected] https://mail.gna.org/listinfo/gregorio-devel
