martijnversluis / ChordSheetJS

A JavaScript library for parsing and formatting chords and chord sheets
https://github.com/users/martijnversluis/projects/4
GNU General Public License v2.0
318 stars 50 forks source link

parse a lyrical chord without normalize. #838

Closed kzkpro closed 1 year ago

kzkpro commented 1 year ago

currently when i parse the lyrical songs Asus2 is printed as A2. is there a way to print it as it is?

const parser = new ChordSheetJS.ChordsOverWordsParser(); const song = parser.parse(chordSheet);

const formatter = new ChordSheetJS.HtmlTableFormatter(); const lyrics = formatter.format(song);

Thanks!

martijnversluis commented 1 year ago

Hey @kzkpro. Thanks for reaching out. I don't think it's possible at the moment. However, it's a valid use case and relatively easy to implement. I'll try to add this in the next couple of days.

martijnversluis commented 1 year ago

@kzkpro I just released v7.17.0, which adds a normalizeChords option to the formatters. When setting that to false, chords are rendered using their original suffix. 👍

Cheers!

kzkpro commented 1 year ago

Thanks @martijnversluis !