Skip to content

Commit

Permalink
v0.11.1
Browse files Browse the repository at this point in the history
- Small fix in class `meico.mei.Mei2MusicXmlConverter` to address issue #30.
  • Loading branch information
axelberndt committed Nov 27, 2024
1 parent de75f82 commit 600d4b5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
### Version History


#### v0.11.1
- Small fix in class `meico.mei.Mei2MusicXmlConverter` to address issue #30.


#### v0.11.0
- Added file `/resources/minimal.mei` which is used by constructor `meico.mei.Mei.Mei()` to instantiate an empty Mei object. The object now contains an MEI with no meaningful content, but when writing it to a file it is valid now. Using this constructor will now require exception handling!

Expand Down
2 changes: 1 addition & 1 deletion src/meico/Meico.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author Axel Berndt
*/
public class Meico {
public static final String version = "0.11.0";
public static final String version = "0.11.1";

public static void main(String[] args) {
System.out.println("meico v" + Meico.version);
Expand Down
3 changes: 1 addition & 2 deletions src/meico/mei/Mei2MusicXmlConverter.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package meico.mei;

import com.sun.xml.internal.ws.util.StringUtils;
import meico.musicxml.MusicXml;
import nu.xom.*;
import org.audiveris.proxymusic.*;
Expand Down Expand Up @@ -1386,7 +1385,7 @@ private void addToSource(Element e){
if(val == null || val.isEmpty()) {return;}
val = this.sanitize(val.trim());
StringBuilder addressBuilder = new StringBuilder();
addressBuilder.insert(0, StringUtils.capitalize(e.getLocalName()) + ":"); // Distributor and Address have very similar children
addressBuilder.insert(0, Character.toUpperCase(e.getLocalName().charAt(0)) + e.getLocalName().substring(1) + ":"); // Distributor and Address have very similar children
addressBuilder.append(this.endLine);
addressBuilder.append(val).append(this.endLine);
this.sourceBuilder.append(addressBuilder);
Expand Down

0 comments on commit 600d4b5

Please sign in to comment.