paulrosen / abcjs

javascript for rendering abc music notation
Other
1.93k stars 284 forks source link

Field continuation is not supported by abcjs #932

Open sjktje opened 1 year ago

sjktje commented 1 year ago

According to the 2.1 ABC standard, a "field that is too long for one line may be continued by prefixing +: at the start of the following line." Abcjs does not seem to support this feature. I find this feature particularly useful for history fields:

X:1
T:Some tune
H:Here's the long and elaborate story of how I learnt this tune and this line
+:would indeed be very long if I couldn't use the field continuation feature 
+:of the ABC standard.
C:G
ABc def|]

I tried this in the abcjs demo editor (which seems to be version 6.2.0) by adding an H: field to the default Cooley notation:

X: 1
T: Cooley's
M: 4/4
L: 1/8
R: reel
H:Here's some info about
+:this tune.
K: Emin
|:D2|EB{c}BA B2 EB|~B2 AB dBAG|FDAD BDAD|FDAD dAFD|
EBBA B2 EB|B2 AB defg|afe^c dBAF|DEFD E2:|
|:gf|eB B2 efge|eB B2 gedB|A2 FA DAFA|A2 FA defg|
eB B2 eBgB|eB B2 defg|afe^c dBAF|DEFD E2:|

This results in the following output:

image
paulrosen commented 1 year ago

That's true - it's not implemented yet. A work around is to use H: instead of the plus:

H:Here's the long and elaborate story of how I learnt this tune and this line
H:would indeed be very long if I couldn't use the field continuation feature 
H:of the ABC standard.