Create cycle_punctuation_level.py

This commit is contained in:
chrys87 2016-10-04 17:07:26 +02:00 committed by GitHub
parent f65d2bfb67
commit 474a15c51d

View File

@ -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