diff --git a/data/style.css b/data/style.css index ea7538d99056dc46da0d83c02d50374ce828d0df..90f6e476732d4a49fe91a4e3e528415820087285 100644 --- a/data/style.css +++ b/data/style.css @@ -47,7 +47,7 @@ } .confirm { - font: bold 14; + font: bold 20; background: #ff9999; } diff --git a/main.py b/main.py index 84c66932fa1da6cb922336ae3120b72732b37535..ac9faecb8be8d0a7627ee44ff72cc8a0660266e8 100644 --- a/main.py +++ b/main.py @@ -72,10 +72,10 @@ class ScriptedASR(Gtk.Window): # setup singletons osc.setup(osc_host, osc_port) actions.setup(self.confirmer, self.xmlview) + self.current_section = 0 def set_section(self, section_id): self.xmlview.set_section(section_id) - self.previous_actions = 0 def slu_finished(self, model, slu_output): for action_id in range(self.previous_actions, model.num_actions()): @@ -94,6 +94,9 @@ class ScriptedASR(Gtk.Window): #hyp = ' '.join(hyp).replace('[noise]', ' ').split() words = hyp[-1].strip().replace('_', ' ').split() section_id = self.xmlview.get_section() + if self.current_section != section_id: + self.previous_actions = 0 + self.current_section = section_id #print section_id if section_id in self.slu: model = self.slu[section_id]