finish remove unneeded returns, import debug to everything, add header

This commit is contained in:
chrys 2016-09-19 22:15:58 +02:00
parent b6178fa933
commit 010b9b4e06
94 changed files with 541 additions and 33 deletions

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class braille(): class braille():
def __init__(self): def __init__(self):

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
from utils import debug # -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
initialized = False initialized = False
try: try:

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import mark_utils from utils import mark_utils
class command(): class command():

View File

@ -1,5 +1,11 @@
#!/bin/python #!/bin/python
from utils import char_utils from utils import char_utils
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import char_utils from utils import char_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import line_utils from utils import line_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import mark_utils from utils import mark_utils
class command(): class command():

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import mark_utils from utils import mark_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
from utils import char_utils from utils import char_utils

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import datetime import datetime
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import math import math
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import math import math
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import math import math
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import math import math
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,8 +1,10 @@
#!/bin/python #!/bin/python
import fcntl # -*- coding: utf-8 -*-
import sys
import termios
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import math import math
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import math import math
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import math import math
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import math import math
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import line_utils from utils import line_utils
class command(): class command():

View File

@ -1,8 +1,10 @@
#!/bin/python #!/bin/python
import fcntl # -*- coding: utf-8 -*-
import sys
import termios
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,8 +1,13 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import fcntl import fcntl
import sys
import termios import termios
import time import time, sys
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import mark_utils from utils import mark_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import char_utils from utils import char_utils
class command(): class command():

View File

@ -1,8 +1,10 @@
#!/bin/python #!/bin/python
import fcntl # -*- coding: utf-8 -*-
import sys
import termios
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import line_utils from utils import line_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import char_utils from utils import char_utils
class command(): class command():

View File

@ -1,8 +1,10 @@
#!/bin/python #!/bin/python
import fcntl # -*- coding: utf-8 -*-
import sys
import termios
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import line_utils from utils import line_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
initialized = False initialized = False
try: try:
@ -24,12 +30,12 @@ class command():
def run(self, environment): def run(self, environment):
if not initialized: if not initialized:
environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True) environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True)
return environment return
if environment['runtime']['settingsManager'].getSetting(environment, 'general', 'spellCheckLanguage') != self.language: if environment['runtime']['settingsManager'].getSetting(environment, 'general', 'spellCheckLanguage') != self.language:
try: try:
self.updateSpellLanguage(environment) self.updateSpellLanguage(environment)
except: except:
return environment return
if (environment['screenData']['newCursorReview'] != None): if (environment['screenData']['newCursorReview'] != None):
cursorPos = environment['screenData']['newCursorReview'].copy() cursorPos = environment['screenData']['newCursorReview'].copy()

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import char_utils from utils import char_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
initialized = False initialized = False
try: try:

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import datetime import datetime
class command(): class command():

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):
pass pass

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,5 +1,11 @@
#!/bin/python #!/bin/python
import time # -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):
pass pass

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
class command(): class command():

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from utils import word_utils from utils import word_utils
initialized = False initialized = False
try: try:

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,5 +1,11 @@
#!/bin/python #!/bin/python
import time import time
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class command(): class command():
def __init__(self): def __init__(self):

View File

@ -1,7 +1,12 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
import importlib.util import importlib.util
import glob, os, time import glob, os, time
from utils import debug from core import debug
class commandManager(): class commandManager():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import time import time

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
from core import settings from core import settings
from core import runtime from core import runtime
from core import screenData from core import screenData

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
generalInformation = { generalInformation = {
'running': True, 'running': True,

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import time import time
input = { input = {

View File

@ -1,7 +1,11 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
import time import time
from utils import debug from core import debug
from core import inputEvent from core import inputEvent
class inputManager(): class inputManager():

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
from utils import debug # -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
class outputManager(): class outputManager():
def __init__(self): def __init__(self):

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
runtime = { runtime = {
'speechDriver': None, 'speechDriver': None,

View File

@ -1,5 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import time import time
screenData = { screenData = {

View File

@ -1,6 +1,11 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import time import time
from utils import debug
class screenManager(): class screenManager():
def __init__(self): def __init__(self):

View File

@ -1,6 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
from utils import debug # Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
settings = { settings = {
'sound': { 'sound': {

View File

@ -1,4 +1,8 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
import importlib.util import importlib.util
import os import os
@ -9,7 +13,7 @@ from core import commandManager
from core import screenManager from core import screenManager
from core import environment from core import environment
from core.settings import settings from core.settings import settings
from utils import debug from core import debug
class settingsManager(): class settingsManager():
def __init__(self): def __init__(self):

View File

@ -10,7 +10,7 @@ if not os.getcwd() in sys.path:
sys.path.append(os.getcwd()) sys.path.append(os.getcwd())
from core import settingsManager from core import settingsManager
from utils import debug from core import debug
class fenrir(): class fenrir():
def __init__(self): def __init__(self):

View File

@ -1,12 +1,16 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
import evdev import evdev
from evdev import InputDevice, UInput
import time import time
from evdev import InputDevice, UInput
from select import select from select import select
from core import inputEvent from core import inputEvent
from utils import debug from core import debug
class driver(): class driver():
def __init__(self): def __init__(self):

View File

@ -1,9 +1,12 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
import difflib import difflib
import subprocess import subprocess
from utils import debug from core import debug
class driver(): class driver():
def __init__(self): def __init__(self):
@ -50,10 +53,10 @@ class driver():
newContentBytes = vcsa.read() newContentBytes = vcsa.read()
vcsa.close() vcsa.close()
if len(newContentBytes) < 5: if len(newContentBytes) < 5:
return environment return
except Exception as e: except Exception as e:
environment['runtime']['debug'].writeDebugOut(environment,str(e),debug.debugLevel.ERROR) environment['runtime']['debug'].writeDebugOut(environment,str(e),debug.debugLevel.ERROR)
return environment return
screenEncoding = environment['runtime']['settingsManager'].getSetting(environment,'screen', 'encoding') screenEncoding = environment['runtime']['settingsManager'].getSetting(environment,'screen', 'encoding')
# set new "old" values # set new "old" values
environment['screenData']['oldContentBytes'] = environment['screenData']['newContentBytes'] environment['screenData']['oldContentBytes'] = environment['screenData']['newContentBytes']

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import subprocess import subprocess
class driver(): class driver():

View File

@ -1,3 +1,10 @@
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
import gi import gi
import time import time
from gi.repository import GLib from gi.repository import GLib

View File

@ -1,7 +1,12 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
# Espeak driver # Espeak driver
from core import debug
class driver(): class driver():
def __init__(self ): def __init__(self ):
self._es = None self._es = None

View File

@ -1,7 +1,12 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
# generic driver # generic driver
from core import debug
class driver(): class driver():
def __init__(self ): def __init__(self ):
pass pass

View File

@ -1,7 +1,12 @@
#!/usr/bin/python #!/usr/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
# speech-dispatcher driver # speech-dispatcher driver
from core import debug
class driver(): class driver():
def __init__(self ): def __init__(self ):
self._sd = None self._sd = None
@ -14,14 +19,14 @@ class driver():
except: except:
self._initialized = False self._initialized = False
def initialize(self, environment): def initialize(self, environment):
return environment pass
def shutdown(self, environment): def shutdown(self, environment):
if not self._isInitialized: if not self._isInitialized:
return environment return
self._isInitialized = False self._isInitialized = False
self.cancel() self.cancel()
self._sd.close() self._sd.close()
return environment return
def speak(self,text, queueable=True): def speak(self,text, queueable=True):
if not self._isInitialized: if not self._isInitialized:

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
def getPrevChar(currX,currY, currText): def getPrevChar(currX,currY, currText):
if currText == '': if currText == '':

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
def getPrevLine(currX,currY, currText): def getPrevLine(currX,currY, currText):
if currText == '': if currText == '':

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
def getTextBetweenMarks(firstMark, secondMark, inText): def getTextBetweenMarks(firstMark, secondMark, inText):
if inText == None: if inText == None:

View File

@ -1,3 +1,8 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug

View File

@ -1,4 +1,10 @@
#!/bin/python #!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
def getPrevWord(currX,currY, currText): def getPrevWord(currX,currY, currText):
if currText == '': if currText == '':