From 63e299398d3173093ef3fd8ff926928c760a3985 Mon Sep 17 00:00:00 2001
From: Han-Wen Nienhuys <hanwen@xs4all.nl>
Date: Sun, 24 Oct 2004 12:57:11 +0000
Subject: [PATCH] (conv): \context Foo = NOTENAME -> \context Foo = "NOTENAME".

---
 ChangeLog             |  3 +++
 scripts/convert-ly.py | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 250ab01bf6..97ba2cb4e2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2004-10-24  Han-Wen Nienhuys  <hanwen@xs4all.nl>
 
+	* scripts/convert-ly.py (conv): \context Foo = NOTENAME
+	-> \context Foo = "NOTENAME".
+
 	* lily/main.cc (determine_output_options): fix ordering.
 
 2004-10-24  Erik Sandberg  <ersa9195@student.uu.se>
diff --git a/scripts/convert-ly.py b/scripts/convert-ly.py
index 7b8fec0457..f440513950 100644
--- a/scripts/convert-ly.py
+++ b/scripts/convert-ly.py
@@ -2214,6 +2214,17 @@ conversions.append (((2, 3, 22),
 		     '''paper -> layout
  bookpaper -> paper''' ))
 
+
+def conv (str):
+	str = re.sub (r'\\context\s+([a-zA-Z]+)\s*=\s*([a-z]+)',
+		      r'\\context \1 = "\2"',
+		      str )
+	return str
+
+conversions.append (((2, 3, 23),
+		     conv,
+		     '''\context Foo = NOTENAME -> \context Foo = "NOTENAME"'''))
+
 ################################
 #	END OF CONVERSIONS	
 ################################
-- 
2.39.5