summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDavid Kastrup <dak@gnu.org>2016-03-15 13:50:05 +0100
committerDavid Kastrup <dak@gnu.org>2016-03-22 11:39:13 +0100
commita80794699ca0f3f9b79ce76dbfe2c79269a102fe (patch)
tree9ed8779b3aee9586634a71726aabefcb29853b91 /python
parent348953deb22bdf9b1db241201e53749bc58ef527 (diff)
Issue 4803: Amend convert-ly 2.17.6 rules for \tweak
Double application was problematic. Since grob properties start with lowercase letters or X or Y while grob names start with A-W, it can be reliably avoided to do the incorrect double conversion \tweak #'style #'none ... -> \tweak style #'none ... -> \tweak style.none ...
Diffstat (limited to 'python')
-rw-r--r--python/convertrules.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/convertrules.py b/python/convertrules.py
index 3c9caad397..9de1256783 100644
--- a/python/convertrules.py
+++ b/python/convertrules.py
@@ -3468,9 +3468,9 @@ def conv (str):
r"\1\2.\3", str)
str = re.sub (r'''(\\(?:alterBroken|overrideProperty)\s+)#?"([A-Za-z]+)\s*\.\s*([A-Za-z]+)"''',
r"\1\2.\3", str)
- str = re.sub (r'''(\\tweak\s+)#?"?([A-Za-z]+)"?\s+?#'([-A-Za-z]+)''',
+ str = re.sub (r'''(\\tweak\s+)#?"?([A-W][A-Za-z]*)"?\s+?#'([a-zX-Z][-A-Za-z]*)''',
r"\1\2.\3", str)
- str = re.sub (r'''(\\tweak\s+)#'([-A-Za-z]+)''',
+ str = re.sub (r'''(\\tweak\s+)#'([a-zX-Z][-A-Za-z]*)''',
r"\1\2", str)
str = re.sub ("(" + matchmarkup + ")|"
+ r"(\\footnote(?:\s*"