From 52fcdc70b89eca8b1444e8aefec44f5fb4f554b9 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 8 Dec 2016 00:56:00 +0100 Subject: [PATCH] add review announce linebreak and endofline --- src/fenrir/utils/word_utils2.py | 43 --------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 src/fenrir/utils/word_utils2.py diff --git a/src/fenrir/utils/word_utils2.py b/src/fenrir/utils/word_utils2.py deleted file mode 100644 index e2bcdbfb..00000000 --- a/src/fenrir/utils/word_utils2.py +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/python -# -*- coding: utf-8 -*- - -# Fenrir TTY screen reader -# By Chrys, Storm Dragon, and contributers. - -from core import debug -# X Y Word END -# -1, -1, '', True -def getPrevWord(currX,currY, currText): - lineBreak = False - endOfScreen = False - if currText == '': - return -1, -1, '', endOfScreen - x, y, currWord, endOfScreen = getCurrentWord(currX,currY,currText) - if endOfScreen: - return x, y, currWord, endOfScreen - wrappedLines = currText.split('\n') - return x, y, currWord, endOfScreen, lineBreak - -def getCurrentWord(currX,currY, currText): - lineBreak = False - endOfScreen = False - if currText == '': - return -1, -1, '', endOfScreen - x = currX - y = currY - wrappedLines = currText.split('\n') - currWord = '' - currLine = wrappedLines[y].replace("\t"," ") - return x, y, currWord, endOfScreen, lineBreak - -def getNextWord(currX,currY, currText): - lineBreak = False - endOfScreen = False - if currText == '': - return -1, -1, '', endOfScreen - x = currX - y = currY - wrappedLines = currText.split('\n') - currWord = '' - currLine = wrappedLines[y].replace("\t"," ") - return x, y, currWord, endOfScreen, lineBreak