Page 1 of 1

Some questions about new lines

Posted: Wed Jun 06, 2012 6:23 pm
by sema
1) is this syntax legal:
... ^\
C % - means to be C#

2) how should I handle new lines inside the quoted string?

Thanks!

Re: Some questions about new lines

Posted: Tue Jun 12, 2012 6:13 pm
by sema
3) same question about decorations:
abc abc !acc\
ent! abc abc

4) and inline instructions:
abc abc [K:\
Cm] abc abc

- which of these syntaxes is legal and which is not?

Re: Some questions about new lines

Posted: Wed Jun 27, 2012 5:55 am
by laughingman182
sema wrote:3) same question about decorations:
abc abc !acc\
ent! abc abc

4) and inline instructions:
abc abc [K:\
Cm] abc abc

- which of these syntaxes is legal and which is not?

The first one is definitively legal. As for the second, it LOOKS legal; Have you tested it in with abcm2ps?

Re: Some questions about new lines

Posted: Wed Jun 27, 2012 6:23 am
by laughingman182
laughingman182 wrote:
sema wrote:3) same question about decorations:
abc abc !acc\
ent! abc abc

4) and inline instructions:
abc abc [K:\
Cm] abc abc

- which of these syntaxes is legal and which is not?

The first one is definitively legal. As for the second, it LOOKS legal; Have you tested it in with abcm2ps?

I spoke too soon. abcm2ps does show some error lines, but the music turned out generally as stated. The inline field did NOT process correctly, though. I've attached the code and results:

Re: Some questions about new lines

Posted: Wed Jun 27, 2012 7:31 pm
by sema
Thank you for the testing, laughingman!
It looks like abcm2ps ignores all unfinished entities at the end of the line. - Pretty much what I did in mine implementation...
But I guess the documentation should be more specific about that.

Re: Some questions about new lines

Posted: Mon Jul 16, 2012 6:29 pm
by Jef Moine
abcm2ps follows the various versions of the ABC standards.

By default, (no %%abc-version or no %abc-xx at start of file), it follows the 1.7.3 standard for which
the backslash at end of a music line means "don't start a new staff system". It is ignored in other lines
(information fields or pseudo-comments).

If a ABC file starts with "%abc-2.0" or contains a line "abc-version 2.0", the backslash at end of line
(possibly followed by a comment) makes the following line to be appended to the current line.
This treatment occurs as the first scanning step, so any line is concerned.

If a ABC file starts with "%abc-2.1" or contains a line "abc-version 2.1", the backslash at end of
line is treated the same way as in the 1.7.3 standard. For continuation of information field lines,
a new syntax "+:" is defined. This syntax is not yet fully handled by abcm2ps.