← Back to team overview

openlp-core team mailing list archive

Re: [Merge] lp:~phill-ridout/openlp/openlyric_split into lp:openlp

 

Ok,
so basically if a duplicate verse is used, for example a song that has v1,v1,v1,v2,c1 etc, it will be written out to the openlyrics standard as v1a, v1b, v1c, v2, c1

the when importing the suffixes are removed. As cloning a song basically exports then imports this fixes that bug also

lines 21 - 30 creates a dictionary of verse labels. Incrementing the value every time it comes across a verse label already in the dictionary.

linse 31 - 37 for every verse label that it is duplicated, a list of letters are created and stored in a dictionary against the verse name as the key

lines 38 - 43 checks each verse label to see if it is in the the above dictionary, if it is, it pops the letter of the end of the list and saves the verse with the letter on the end

Thats pretty much it hope its a bit clearer now
 
-- 
https://code.launchpad.net/~phill-ridout/openlp/openlyric_split/+merge/118150
Your team OpenLP Core is subscribed to branch lp:openlp.


References