|
From: | Reinhold Kainhofer |
Subject: | [PATCHES]: Converting header and lyrics with musicxml2ly |
Date: | Thu, 30 Aug 2007 13:47:56 +0200 |
User-agent: | KMail/1.9.6 |
Attached is the next set of patches for musicxml2ly, diffed against current git by git-format-patch. 2007-08-29_0001-Coding-style.patch: The patch that I already sent a few days ago (following Han-Wen's suggestion). Use dict.get (...) instead of dict[..], where needed with a default argument to simplify the code structure. 2007-08-29_0002-Convert-score-information-into-the-header-.-const.patch: Convert all header information (title, composer, editor, arranger, poet, copyright) from the XML file to the lilypond \header{..} section. 2007-08-29_0003-Fix-knot-in-my-brain-If-no-work-number-or-opus-i.patch: Bug fix for the previous patch: If an opus number is not found, return '' instead of None. 2007-08-29_0004-Cleanup-Don-t-use-the-class_dict-directly-but-rathe.patch: Cleanup of the musicxml.py to (1) use get_class instead of accessing the class dict directly (which leads to a KeyError unless the class was manually implemented and (2) remove unnecessary manual class definitions. 2007-08-29_0005-Implement-the-conversion-of-lyrics-from-MusicXML-to.patch: Convert the lyrics from the XML file to lilypond lyrics. 2007-08-29_0006-Replace-soft-hyphens-in-the-lyrics-created-by-an-OM.patch: Some OMR applications convert hyphens in the score to soft-hyphens, which lie outside the ascii range. Python's ascii codec will barf on these characters and quit the output, so we need to replace them by ordinary hyphens. 2007-08-29_0007-The-output-of-some-OMR-applications-contains-spaces.patch: Some OMR applications also put spaces into lyrics syllables or start lyrics syllables with periods or commas. Lilypond does not like this, so we need to wrap all lyrics syllables in quotes to make sure lilypond correctly understands them and does not throw an error. Cheers, Reinhold -- ------------------------------------------------------------------ Reinhold Kainhofer, Vienna University of Technology, Austria email: address@hidden, http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
2007-08-29_0001-Coding-style.patch
Description: Text Data
2007-08-29_0002-Convert-score-information-into-the-header-.-const.patch
Description: Text Data
2007-08-29_0003-Fix-knot-in-my-brain-If-no-work-number-or-opus-i.patch
Description: Text Data
2007-08-29_0004-Cleanup-Don-t-use-the-class_dict-directly-but-rathe.patch
Description: Text Data
2007-08-29_0005-Implement-the-conversion-of-lyrics-from-MusicXML-to.patch
Description: Text Data
2007-08-29_0006-Replace-soft-hyphens-in-the-lyrics-created-by-an-OM.patch
Description: Text Data
2007-08-29_0007-The-output-of-some-OMR-applications-contains-spaces.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |