moinejf / abc2svg

project moved to https://chiselapp.com/user/moinejf/repository/abc2svg
GNU Lesser General Public License v3.0
48 stars 7 forks source link

Problem with line continuation and |: #110

Open GuidoGonzato opened 6 years ago

GuidoGonzato commented 6 years ago

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 "\".

bwl21 commented 6 years ago

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

GuidoGonzato commented 6 years ago

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 Geologist, GNU/Linux sysadmin. Rationalist. "If you think education is expensive, try ignorance." -- Derek Bok

GuidoGonzato commented 6 years ago

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 Geologist, GNU/Linux sysadmin. Rationalist. "If you think education is expensive, try ignorance." -- Derek Bok

bwl21 commented 6 years ago

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.

moinejf commented 6 years ago

@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.

GuidoGonzato commented 6 years ago
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 Geologist, GNU/Linux sysadmin. Rationalist. "If you think education is expensive, try ignorance." -- Derek Bok

GuidoGonzato commented 6 years ago
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 Geologist, GNU/Linux sysadmin. Rationalist. "If you think education is expensive, try ignorance." -- Derek Bok

bwl21 commented 6 years ago

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

moinejf commented 6 years ago

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

bwl21 commented 6 years ago

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

dirkncl commented 5 years ago

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