-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ChordProParser] Not Recognizing Custom Sections, and other section-related issues #1443
Comments
I think this is relatd to #1409 |
Eg `{start_of_chorus: label="Chorus 1"}` Resolves #1472 Requested in #1443 See https://www.chordpro.org/chordpro/chordpro-directives/#arguments-and-attributes Thanks to @edonv for requesting
Eg `{start_of_chorus: label="Chorus 1"}` Resolves #1472 Requested in #1443 See https://www.chordpro.org/chordpro/chordpro-directives/#arguments-and-attributes Thanks to @edonv for requesting
@edonv I just released |
@edonv I just released |
Thanks for all of your super quick and organized work on all this! I do have a follow-up question: I'm having success with the label attribute, but when combined with custom section (i.e. And if it's helpful, I did a bit of debugging, just inspecting the parsed |
@edonv Thanks for checking. Eventually it turned out the function that determines whether a label should be rendered, wasn't updated when I introduced the custom section support. I just published |
Yes, that worked! Thanks! |
@edonv I just published |
That works great! Separately, is there any chance of the formatters mapping grid structures with I'd be happy to contribute that if you'd like, just let me know where it'd go in your codebase and I'll fork. |
@edonv Yeah that would be a great contribution! I suppose we could have a class GridDelegate {
call(content) {
// perform the table rendering, nicely broken up in some private methods if necessary
}
}
export default (content) => new GridDelegate().call(content); Thanks in advance for the effort! |
I've got a few feature requests relating to parsing different section types from ChordPro:
{start_of_verse: label="Verse 1"}
, not just{start_of_verse: Verse 1}
. CurrentlyChordProParser
doesn't like this and readslabel="Verse 1"
as the section label.start_of_
andend_of_
. I use this a lot (i.e.start_of_pre_chorus
), and because of this,ChordProParser
just ignores the label altogether.HtmlTableFormatter
,grid
sections are rendered with the section label inline with its content. Is it possible to at least render the section label in the same way as other sections, separated?HtmlDivFormatter
does format the label, but it's still inline with the section content..
syntax (cells spacing) ingrid
sections could be rendered as separate table cells or something, like how it's rendered in ChordPro, but I'm not sure if that's possible with the wayChordSheetJS
stores parsed songs.See here for more details on this.
I'm sure I'll run into more things later, but this is it for now. I think most of this should be easily addable, no?
The text was updated successfully, but these errors were encountered: