From 0f2b90c40d1cdebd57901c048303c5facf3f9375 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Wed, 11 Oct 2017 17:03:29 +0100 Subject: [PATCH] Provide quoting for single and double quotes. Stop them mucking up HTML quoting by substituting with entities. --- Morris/StepNFetchHer.abc | 2 +- abcfield.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Morris/StepNFetchHer.abc b/Morris/StepNFetchHer.abc index a3421e0..9005d51 100644 --- a/Morris/StepNFetchHer.abc +++ b/Morris/StepNFetchHer.abc @@ -1,5 +1,5 @@ X:1 -T:Step n' Fetch Her +T:Step n\'' Fetch Her M:4/4 S:Bacon (RD) A:Bampton diff --git a/abcfield.py b/abcfield.py index ecffb1c..692d229 100755 --- a/abcfield.py +++ b/abcfield.py @@ -100,6 +100,10 @@ accentedletters = { "AE" : ("Æ", "\\AE"), "ae" : ("æ", "\\ae"), "ss" : ("ß", "\\ss"), + + # Quote marks + "''" : ("'", "'"), + "'\"" : (""", "\""), } abckeys = {