From 67c7c4c7a625d911f96670e170ef4fb8318bfba9 Mon Sep 17 00:00:00 2001 From: merspieler Date: Sat, 10 Mar 2018 13:04:40 +0100 Subject: [PATCH] Minor fixes to the adverbations Signed-off-by: merspieler --- __init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/__init__.py b/__init__.py index 86b4a05..6cf8a69 100644 --- a/__init__.py +++ b/__init__.py @@ -241,6 +241,8 @@ class FlightGearCopilotSkill(MycroftSkill): checklist_title = checklist_title.replace('/', '|') checklist_title = "^" + checklist_title match = re.search(checklist_title, cl_request, re.I) + checklist_title = checklist_title[1:] + checklist_title = checklist_title.replace('|', ', ') if match != None: self.speak(checklist_title + " checklist") @@ -776,22 +778,22 @@ class FlightGearCopilotSkill(MycroftSkill): text = re.sub("A/SKID", "anti skid", text, flags=re.I) text = re.sub("N/W", "nose weel", text, flags=re.I) text = re.sub("A/THR", "auto thrust", text, flags=re.I) - text = re.sub(" THR ", "thrust", text, flags=re.I) - text = re.sub("Eng ", "engine", text, flags=re.I) + text = re.sub("THR ", "thrust", text, flags=re.I) + text = re.sub("Eng ", "engine ", text, flags=re.I) text = re.sub("Mstr", "master", text, flags=re.I) text = re.sub("PB", "push button", text, flags=re.I) text = re.sub("man", "manual", text, flags=re.I) text = re.sub("FLT", "flight", text, flags=re.I) text = re.sub("INST", "instruments", text, flags=re.I) text = re.sub("TEMP", "temperature", text, flags=re.I) - text = re.sub(" LT", "light", text, flags=re.I) + text = re.sub(" LT", " light", text, flags=re.I) text = re.sub("SEL", "selector", text, flags=re.I) text = re.sub("LDG", "landing", text, flags=re.I) text = re.sub("MDA", "minimum decent altitude", text, flags=re.I) text = re.sub("DH", "decision height", text, flags=re.I) text = re.sub("EXT", "external", text, flags=re.I) text = re.sub("FLX", "flex", text, flags=re.I) - text = re.sub("EMER", "emergency", text, flags=re.I) + text = re.sub("EMER ", "emergency ", text, flags=re.I) text = re.sub("BRK", "break", text, flags=re.I) text = re.sub("KG", "kilogram", text, flags=re.I) text = re.sub("LB", "pounds", text, flags=re.I)