Script to increase c-clef octaves by 1;tested 94r#15
Conversation
| @@ -0,0 +1,2962 @@ | |||
| <?xml version='1.0' encoding='utf-8'?> | |||
| <ns0:mei xmlns:ns0="http://www.music-encoding.org/ns/mei" meiversion="5.0.0-dev"> | |||
There was a problem hiding this comment.
looks like the namespace has changed from the original? thoughts?
There was a problem hiding this comment.
I think this is to do with how ElementTree writes XML, wherein it needs to represent namespace and creates a prefix; in this case ns0 (this is stemming from my very foundational understanding of how this works, so I may be mistaken). If you think its better to hold onto the original, adding something like ET.register_namespace('', 'http://www.music-encoding.org/ns/mei') shouldn't be too tricky? Also might be the wrong way forward, keen to hear your instinct/vibe. I don't believe the altered namespace should alter the validity of the MEI, however.
There was a problem hiding this comment.
Oh, I see now. Yeah, it seems cleaner to just do what was in the original which is have the mei namespace be the default.
| @@ -0,0 +1,2962 @@ | |||
| <?xml version='1.0' encoding='utf-8'?> | |||
| <ns0:mei xmlns:ns0="http://www.music-encoding.org/ns/mei" meiversion="5.0.0-dev"> | |||
There was a problem hiding this comment.
It also looks like we lose the schema information that are in the original xml files. See
There was a problem hiding this comment.
Yikes! Will more explicitly snag the header!
preserves file format - Fixes file duplication issue in output - Correctly increases octaves in C-clef sections - Maintains proper MEI header formatting - Preserves original XML structure
|
New test is done on 100v, removed other duplicate test files. |
|
Ok, I think this PR is basically ready to merge. Just a few things:
Happy for you to take these on @kyrieb-ekat, or I can update this PR with them. |
If it's okay for this to take a moment (~during/after reading week), I'm happy to do this, otherwise if you have the bandwidth and also there's a want to get this up quickly/over and done with, just let me know how I can assist! Re: custodes, I reckon that the manually changed files are also the files which had |
|
Ok, I don't think it's a critical rush? So I will feel empowered but not obligated to take a crack at it if I find myself with downtime |
No description provided.