fix read screen after current cursor

This commit is contained in:
chrys 2016-10-02 14:22:20 +02:00
parent 41fe26d7a3
commit c56bde1c61
2 changed files with 9 additions and 8 deletions

View File

@ -60,7 +60,7 @@ voice=
language=english-us language=english-us
# Read new text as it happens? # Read new text as it happens?
autoReadIncomming=True autoReadIncoming=True
[braille] [braille]
#braille is not implemented yet #braille is not implemented yet
@ -72,7 +72,7 @@ driver=linux
encoding=cp850 encoding=cp850
screenUpdateDelay=0.4 screenUpdateDelay=0.4
suspendingScreen= suspendingScreen=
autodetectSuspendingScreen=False autodetectSuspendingScreen=True
[keyboard] [keyboard]
driver=evdev driver=evdev
@ -82,24 +82,24 @@ device=AUTO
grabDevices=True grabDevices=True
ignoreShortcuts=False ignoreShortcuts=False
# the current shortcut layout located in /etc/fenrir/keyboard # the current shortcut layout located in /etc/fenrir/keyboard
keyboardLayout=test keyboardLayout=desktop
# echo chars while typing. # echo chars while typing.
charEcho=True charEcho=False
# echo deleted chars # echo deleted chars
charDeleteEcho=True charDeleteEcho=True
# echo word after pressing space # echo word after pressing space
wordEcho=True wordEcho=False
# interrupt speech on any keypress # interrupt speech on any keypress
interruptOnKeyPress=False interruptOnKeyPress=False
# timeout for double tap in sec # timeout for double tap in sec
doubleTapDelay=0.2 doubleTapDelay=0.2
[general] [general]
debugLevel=2 debugLevel=3
punctuationLevel=Some punctuationLevel=Some
numberOfClipboards=10 numberOfClipboards=10
# define the current fenrir key # define the current fenrir key
fenrirKeys=KEY_KP0 fenrirKeys=KEY_KP0,KEY_META
timeFormat=%H:%M:%P timeFormat=%H:%M:%P
dateFormat=%A, %B %d, %Y dateFormat=%A, %B %d, %Y
autoSpellCheck=True autoSpellCheck=True

View File

@ -56,4 +56,5 @@ def getTextAfterMark(mark, inText):
return '' return ''
if mark == None: if mark == None:
return '' return ''
return getTextBetweenMarks(mark, {'x':len(inText[0]),'y':len(inText)}, inText) inText = inText.split('\n')
return getTextBetweenMarks(mark, {'x':len(inText[0])-1,'y':len(inText)-1}, inText)