bbloomf / jgabc

http://bbloomf.github.io/jgabc/
The Unlicense
105 stars 50 forks source link

NABC #47

Open marekklein opened 4 years ago

marekklein commented 4 years ago

Hello, since Version 4.0.0 there is a possibility in Gregorio to typeset also adiastematic neumes; NABC "language" is defined (as described here: GregorioNabcRef.pdf Although it would be great to have it implemented to your tool too, all I would like to ask for is to teach your transcriber to ignore it (to be able to parse it correctly and write the quadratic neumes as if the nabc code was not there). All you need to know is probably in following lines from the reference:

To describe adiastematic neumes in gabc, the header should contain nabc-lines: 1; line, like: nabc-lines: 1; (f3) AL(ef~|ta>)le(fg/hggf|peclhgpi)lú(ef~|ta>)ia.(f.|ta-) (,) (ii//|bv-|gh!ivHG//|vi-hhppu2su1sut1|fhg/|to|eef.|pt) (;) The nabc snippets are then separated by | character from gabc snippets or other nabc snippets. Every gabc snippet may be followed by multiple nabc snippets. The maximum number of consecutive nabc snippets is the number declared in the header field nabc-lines: x;. After reaching that number of consecutive nabc snippets another gabc snippet followed by nabc snippets can follow.

Best regards, Marek Klein

bbloomf commented 4 years ago

OK, this seems pretty straightforward; I will take a look at it when I get a chance. Perhaps this weekend.

jakubjelinek commented 4 years ago

For real NABC implementation in exsurge we'd need to rewrite https://github.com/gregorio-project/gregorio/blob/master/tex/gregoriotex.lua into javascript. Guess the hardest part (at least for me) would be figure out how to embed the gregall.ttf font in there and how to perform glyph measurement and placement.