Ah, the contrary.

At the end of a score LuaTeX makes the decision to justify or not to justify based on the length of the line. If the line is "close to full" then it will stretch the line to make it appear full. "Close to full" is based on a calculation of the penalty that's incurred for stretching the line and seeing if that exceeds some level. Preventing this is also not a trivial task.

While one would expect that `\raggedright` would turn off the justification mechanism in LuaTeX (and thus work for one-line scores, at least), the fact that GregorioTeX shifts back and forth as it creates a line means that under these conditions LuaTeX ends up thinking that each syllable is its own line. Not exactly what you're looking for.

After some fiddling, though, I did find the following to work, most of the time:

In your gabc file add `def-m1: \hfill;` to your header.

Then end the final set of notes (i.e. inside the parentheses) in your score with `[em1]`. Note: do not create a new syllable for this macro, it must be part of your existing final syllable. This should get you a ragged line. However, in my testing it doesn't always work. If the line is too close to full, then adding the macro will cause the last note to appear on a new line. In this instance you're stuck with the justified line.

✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝
Br. Samuel, OSB
(R. Padraic Springuel)

PAX ☧ ΧΡΙΣΤΟΣ

_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users

Reply via email to