MutopiaProject / MutopiaWeb

MutopiaProject site evolution to HTML5
3 stars 7 forks source link

Copyright fix for Mutopia pieces in LilyPond 19+ #9

Closed glenl closed 8 years ago

glenl commented 8 years ago

This repairs an issue with the copyright string in LilyPond 19, which loads a different font than previous versions (TexGyre instead of DejaVu). The problem is TexGyre unicode character for the vertical bar we use for a separator doesn't work well. The solution in this pull request uses a single-entry font to load the appropriate DejaVu Sans font to return our copyright to its former glory.

The more important bit: I've added some new classes and unit tests to accomplish this that I hope will make future edits easier to achieve. CCGenerator is simply an interface class for possible future use. LicenseMap is a kind of CCGenerator that can generate these new maps. Checkout LicenseMap at line 89 to see the strings that would need editing when the copyright needs adjustment.

On the way, documentation in javadoc was added to MutopiaMaps as well as the new classes.