abc2svg icon indicating copy to clipboard operation
abc2svg copied to clipboard

Problem with line continuation and |:

Open GuidoGonzato opened this issue 6 years ago • 11 comments

Hello, I'd like to report a minor problem that is shown by the following tune:

X:1 T:Problem with line continuation and |: K:C %%text Wrong, missing |: CD
|:EF GA Bc :| %%text Right, | is printed: CD
| EF GA Bc :|

I hope that it shows - CD is followed by a backslash "".

GuidoGonzato avatar Jun 12 '18 07:06 GuidoGonzato

I do not understand the point. Why do you expect a a repeat start at the very beginning?

bwl21 avatar Jun 12 '18 11:06 bwl21

Il 12/06/2018 13:25, Bernhard Weichel ha scritto:

I do not understand the point. Why do you expect a a repeat start at the very beginning?

hi Bernhard,

I've come across countless tunes that are written that way: a pickup on a line of its own, a backslash, then a new line with the main music. It's perfectly legit ABC; in some cases, it may even improve legibility.

See for instance http://trillian.mit.edu/~jc/music/abc/mirror/home.quicknet.nl/ireland.abc. Tune 19 (Allemanda) starts with:

G2|:
c2d2e2f2| etc.

but the following alternatives are equivalent:

G2
|:c2d2e2f2| etc.

G2|:c2d2e2f2| etc.

Ciao, Guido =8-)

-- Guido Gonzato, PhD <guido.gonzato at gmail.com> Geologist, GNU/Linux sysadmin. Rationalist. "If you think education is expensive, try ignorance." -- Derek Bok

GuidoGonzato avatar Jun 12 '18 11:06 GuidoGonzato

Il 12/06/2018 13:25, Bernhard Weichel ha scritto:

I do not understand the point. Why do you expect a a repeat start at the very beginning?

to better clarify: in my initial report, backslashes are not visible. The example is:

X:1 T:Problem with line continuation and |: K:C %%text Wrong, missing |: CD
|:EF GA Bc :| %%text Right, | is printed: CD
| EF GA Bc :|

Ciao, G =8-)

-- Guido Gonzato, PhD <guido.gonzato at gmail.com> Geologist, GNU/Linux sysadmin. Rationalist. "If you think education is expensive, try ignorance." -- Derek Bok

GuidoGonzato avatar Jun 12 '18 11:06 GuidoGonzato

This is, what I get from

X:1
T:Problem with line continuation and |:
K:C
%%text Wrong, missing |:
CD\
|:EF GA Bc :|
%%text Right, | is printed:
CD\
| EF GA Bc :|

screenshot_1212

I cannot see the problem. Do you expect a measure bar on the very begiinning? Your abc-code does not denote this therefore it does not come.

bwl21 avatar Jun 12 '18 12:06 bwl21

@bwl21: it is not the beginning, the backslash after 'CD' is not seen. But, anyway, a repeat start may be put/forced at start of tune.

@GuidoGonzato: thanks for this 1st report, but, sorry, abc2svg is moving to an other location: https://chiselapp.com/user/moinejf/repository/abc2svg.
I did yet inform the list because there are still some scripts and documentation to be updated.
I added the ticket and this problem should fixed by https://chiselapp.com/user/moinejf/repository/abc2svg/info/7979c352cc612374.

moinejf avatar Jun 12 '18 12:06 moinejf

Il 12/06/2018 14:01, Bernhard Weichel
  ha scritto:


  X:1

T:Problem with line continuation and |: K:C %%text Wrong, missing |: CD
|:EF GA Bc :| %%text Right, | is printed: CD
| EF GA Bc :|

try to run it through abcm2ps to see the difference. I attach two
  PDF files that show what the problem is.
Ciao, G =8-)

-- 

Guido Gonzato, PhD <guido.gonzato at gmail.com> Geologist, GNU/Linux sysadmin. Rationalist. "If you think education is expensive, try ignorance." -- Derek Bok

GuidoGonzato avatar Jun 12 '18 12:06 GuidoGonzato

Il 12/06/2018 14:04, Jean-François
  Moine ha scritto:


  @bwl21:
    it is not the beginning, the backslash after 'CD' is not seen.
    But, anyway, a repeat start may be put/forced at start of tune.
  @GuidoGonzato:
    thanks for this 1st report, but, sorry, abc2svg is moving to an
    other location:
    [https://chiselapp.com/user/moinejf/repository/abc2svg].
    I did yet inform the list because there are still some scripts
    and documentation to be updated.
    I added the ticket and this problem should fixed by

[https://chiselapp.com/user/moinejf/repository/abc2svg/info/7979c352cc612374].

thanks Jef!
Guido =8-)
-- 

Guido Gonzato, PhD <guido.gonzato at gmail.com> Geologist, GNU/Linux sysadmin. Rationalist. "If you think education is expensive, try ignorance." -- Derek Bok

GuidoGonzato avatar Jun 12 '18 12:06 GuidoGonzato

amazngly it was woking correct in zupfnoter, but i don't recognize why ...

bwl21 avatar Jun 12 '18 12:06 bwl21

Maybe you got the last commit or you have a frontend which changes the backslash+newline.

moinejf avatar Jun 12 '18 12:06 moinejf

I had tried it with 1.16.4-5-g0ea68e5. I now tried with 1.17.4 and the problem exists. So It was introduced between 1.16.4 and 1.17.4

bwl21 avatar Jun 12 '18 15:06 bwl21

I do experiments and abc2svg can be made as an abc player https://github.com/dirkncl/abc2svgPlayer example: https://dirkncl.github.io/abc2svgPlayer/openhymal_new.html

dirkncl avatar Dec 18 '18 20:12 dirkncl