Dear all,
Due to code refactoring done in Gregorio 2.4 (and a few fresh ideas),
I've been able to bring to reality a long waited feature: the
possibility to prevent an area of a score to contain line breaks.
This can be achieved pretty easily in gabc with the <nlba> (a barbarian
acronym for "no line break area) markup in gabc. This markup is quite
special because it can be used in:
- the text, in which case the area starts at the beginning of the
syllable containing the text, for example
ab(gh) cd<nlba>(gh) ef(gh) gh</nlba>(gh) ij(gh)
will prevent line breaks to appear between the beginning of syllable cd
and end of syllable gh
- the notes, where it acts a bit like [alt:...], [ev:...], etc. meaning
that if you have g<nlba>h, g and h won't be interpreted as a podatus,
but as two different notes
- a mix of the two, for instance
ab(gh) cd<nlba>(gh) ef(gh) gh(g</nlba>h) ij(gh)
is valid!
Also, the markup doesn't need to be closed (so it shouldn't be called
markup at all), so for instance if you end your score by
ab(gh) E<nlba>(g) u(g) o(h) u(g) a(gh) e(hg)
no line break will appear in the Euouae area, which will, I'm sure, make
many people happy!
I've just finished it, and it can be considered alpha, so please test as
much as you can and report me your bugs with minimal examples!
Also, two remarks are important:
First, TeX (nor any paragraph building algorithm of any software) can do
miracle, which means that if you add too much constraints on
linebreaking, it will certainly result in underfull and overfull lines,
which means poor output.
Second, if you share your scores (on gregobase for instance), please
avoid all unnecessary <nlba> as it deals with presentation and not
content. I believe the only case where an <nlba> should appear in
gregobase is the Euouae case.
Thank you,
--
Elie
_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users