gregorio-project / gregorio-test

A repository of tests for Gregorio
GNU General Public License v3.0
5 stars 3 forks source link

Syllable Rewriting test not clear #308

Closed rpspringuel closed 6 years ago

rpspringuel commented 7 years ago

I was just looking over the syllable rewriting test and noticed that there don't appear to be any ligatures created by the syllable rewriting in the score used in the test. I think that test would be better if the syllable rewriting actually resulted in the creation of a ligature that wouldn't otherwise be there (since that's the main point of the feature).

henryso commented 6 years ago

I'm open to ideas of how to do this. Obviously what I came up with is not sufficient.

rpspringuel commented 6 years ago

I think the test can be totally artificial in this respect and not worry about using actual music, or even words for that matter. What is needed is a list of the ligatures in the test font, and then a sequence of syllables in which the letters that make up those ligatures are split between two syllables whose notes sequences are small enough that they syllables are set without a hyphen between them. In this way the one can clearly see the ligatures when the syllable rewriting is active and see the distinct letters when it is not.

rpspringuel commented 6 years ago

Cracking open Allyegra in FontForge, I'm able to find the following defined ligatures in the font: Ӕ, æ, Œ, œ, fi, fl, Ǽ, ǽ, IJ, and ij. We should start by seeing just which of those ligatures are turned on and appearing in the text of a document set within the repository.

Another possibility, the ff, ffi, and ffl ligatures are not defined in Allyegra. We could define these ligatures with a wildly unusual shape in the test repository version of Allyegra so that it's obvious when those ligatures are active.

henryso commented 6 years ago

Ok, maybe it'll be better to find a font with extensive ligatures (sort of like the Zapfino font, but freely redistributable). I'll see what I can find.

rpspringuel commented 6 years ago

Hmmm... Based on my testing Alegreya may have some ligatures defined in the font, but I cannot seem to turn them on so they happen automatically (as opposed to just when the Unicode character is encountered). Check 67df5c85cf3428ec8eb5674a799959bcc12b5c90 for a modified form of the test which prints out a table designed to test the ligatures in normal text. You'll notice that the second two columns are identical where as if the ligatures were turned on properly it would be the first and last column which are the same.

Unless I've done something wrong in trying to turn on all the ligatures, we need to either modify the font to make the ligatures work, or use a different font where the are already functional.

henryso commented 6 years ago

How about this, using the SIL OFL-licensed font Gatometrix:

image

Gatometrix has a lot of weird ligatures, but the one in question here is the "re" ligature.

If that's sufficient, I'll commit it.

rpspringuel commented 6 years ago

That looks good.

An explanation at the top of the file to remind us down the road of what to look for would probably help too.

henryso commented 6 years ago

OK, I'll add that as well