From 474a15c51d6293465589dc43ff51e3f435c308a7 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 4 Oct 2016 17:07:26 +0200 Subject: [PATCH] Create cycle_punctuation_level.py --- .../commands/cycle_punctuation_level.py | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/fenrir-package/commands/commands/cycle_punctuation_level.py diff --git a/src/fenrir-package/commands/commands/cycle_punctuation_level.py b/src/fenrir-package/commands/commands/cycle_punctuation_level.py new file mode 100644 index 00000000..ab43a10b --- /dev/null +++ b/src/fenrir-package/commands/commands/cycle_punctuation_level.py @@ -0,0 +1,23 @@ +#!/bin/python +# -*- coding: utf-8 -*- + +# Fenrir TTY screen reader +# By Chrys, Storm Dragon, and contributers. + +from core import debug + +class command(): + def __init__(self): + pass + def initialize(self, environment): + self.env = environment + def shutdown(self): + pass + def getDescription(self): + return '' + + def run(self): + self.env['runtime']['punctuationManager'].cyclePunctuation() + self.env['runtime']['outputManager'].presentText(self.env['runtime']['settingsManager'].getSetting('general', 'punctuationLevel'), interrupt=True, ignorePunctuation=True) + def setCallback(self, callback): + pass