From a38378712aad346083cb4742e37d5a1c45e39298 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Sun, 24 Sep 2017 23:12:03 +0100 Subject: [PATCH] Nerys next: L'Inconnu de Limoise. No chords. Also fix up title field display to not put a space between items if 'The' item isn't all alphanumeric. So , L' works. --- Session/InconnuDeLimoise.abc | 11 +++++++++++ abcfield.py | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Session/InconnuDeLimoise.abc diff --git a/Session/InconnuDeLimoise.abc b/Session/InconnuDeLimoise.abc new file mode 100644 index 0000000..4ed5178 --- /dev/null +++ b/Session/InconnuDeLimoise.abc @@ -0,0 +1,11 @@ +X: 1 +T: Inconnu de Limoise, L' +C: Maxou Heintzen +M: 3/4 +L: 1/8 +Q: 1/4=104 +K: G +D GA | B2 BB (3cBA | B3 B cd | c2 cB AG | A2 D2 GA | + B2 BB (3cBA | B3 B cd |c2 cB AG | A3 :| +B cd | e2 gf ef | d2 dc BA | GF GA BG | D4 GF | + E2 EF GA | G2F2 E2 | [1 F2 FG AB | A3 :| [2 FE FG AB | G3 |] diff --git a/abcfield.py b/abcfield.py index 6a3ee77..05d8c94 100755 --- a/abcfield.py +++ b/abcfield.py @@ -137,7 +137,9 @@ def convertTitleToDisplay(t): if p[1] == "": return t else: - return p[2].strip() + " " + p[0].strip() + first = p[2].strip() + second = p[0].strip() + return (first + " " if first.isalnum() else first) + second # Convert Key field from ABC to display, so G#dor->G# Dorian. def convertKeyToDisplay(t):