Closed GoogleCodeExporter closed 9 years ago
abc4j implements a strict version of the abc format (v1.6). This definition of
the
format can be found here :
http://www.norbeck.nu/abc/abcbnf.htm
In this definition , the space is not allowed between the X: and the number of
the
tune (same for T: or any field ain general) :
field-number ::= "X:" 1*DIGIT end-of-line
I know that many tunes from the web have this blank between fields and values
but
they don't match the v1.6 definition (maybe the v2.0 accepts it but I restrict
the
implementation to v1.6)
You don't attach the stack trace but I think that exception occurs on your side
at line
System.out.print("Title n°1 is " + aTune.getTitles()[0]);
because aTune is null (cannot be found when invoking int tunesNb = book.size();
)
So yes abc4j does not recognize it (and this is a choice because it only
validates
strict abc grammar v1.6) but it's not a defect (unless the crash occurs in the
abc4j
part but I don't think so)
Original comment by lionel.g...@gmail.com
on 21 Oct 2008 at 5:28
Ah, well. I now see in the grammar that they made a space a token, so it is
picked
up during parsing instead of ignored. Since that is an unfortunate side-effect
of
how the language is written, I'll have to go the regex replacement route.
Thanks for
looking into this.
Original comment by Joel.McN...@gmail.com
on 21 Oct 2008 at 5:44
Original comment by iubito@gmail.com
on 16 Aug 2012 at 1:22
Original issue reported on code.google.com by
Joel.McN...@gmail.com
on 29 Sep 2008 at 12:35