Skip to content

Misalignment/error when first letter of syllable has a protrusion factor #1677

Open

Description

@davidweichiang
\documentclass{article}
\usepackage[autocompile]{gregoriotex}
\begin{document}
\gresetlyriccentering{firstletter}
\gabcsnippet{(c4) A(g) :(g) <pr:0>B(g)} % misaligned
%\gabcsnippet{(c4) :(g) :(g) <pr:0>B(g)} % error
%\gabcsnippet{(c4) <pr>A(g) :(g) <pr:0>B(g)} % error
%\gabcsnippet{(c4) A:(g) :(g) <pr:0>B(g)} % error
%\gabcsnippet{(c4) A<pr>b(g) :(g) <pr:0>B(g)} % error
\end{document}
Image

Because the colon and the <pr:0>B both have a protrusion factor of 0, they should be centered under the note, but they both appear to the right of the note. It seems that the \GreProtrusion{\GreProtrusionFactor{0}} is treated as the first letter, and the actual first letter is treated as the second letter.

With the four commented-out examples, I get an error:

! Missing } inserted.
<inserted text> 
                }
l.19 \GreSyllable
                 {\GreSetThisSyllable{}{\GreProtrusion{\GreProtrusionFactor{...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions