paulrosen / abcjs

javascript for rendering abc music notation
Other
1.95k stars 287 forks source link

Using tablature and Wordpress plugin #807

Open PREdwards opened 2 years ago

PREdwards commented 2 years ago

I am impressed with the tablature functionality, but am having difficulty using it in the ABC Notation Wordpress plugin. The problem is that square brackets cannot be passed in the WP shortcode attributes, so something like this won't work:

[abcjs options="{tablature: [{instrument: 'violin',label: 'Mandolin',tuning: ['G,', 'D', 'A', 'E']}]}"]
...
[/abcjs]

I have tried using [ and ] in place of "[" and "]", but this doesn't help. Is there any way to work around this?

paulrosen commented 2 years ago

I'll look into it. I think the first problem is that I haven't updated the WordPress plugin to use tablature, so that's my first step.

Thanks for reporting this!

paulrosen commented 2 years ago

The WordPress plugin is updated and supports tablature now.

I looked into the brackets and I guess the answer is to use [ and ] like you mention. The plugin works with that now.

It seems like there could be a more convenient way to do the brackets. I'm open to suggestions.