update wiki

This commit is contained in:
chrys87 2017-07-03 16:49:45 +02:00 committed by GitHub
parent da073404b1
commit b7982f1ba1

View File

@ -13,7 +13,7 @@ Fenrir requires several drivers to interact with the operating system.
===== Speech Drivers ===== ===== Speech Drivers =====
A speech driver is for communication with the text to speech system like [[speech-dispatcher|Speech-dispatcher]] or [[espeak|Espeak]]. \\ A speech driver is for communication with the text to speech system like [[#SpeechDispatcher|Speech-Dispatcher]] or [[http://espeak.sourceforge.net|Espeak]]. \\
See section [[#Speech|Speech]] in ''settings.conf'' for more information. See section [[#Speech|Speech]] in ''settings.conf'' for more information.
@ -27,9 +27,17 @@ Dependency's:
* speech-dispatcher (installed and configured, [[https://devel.freebsoft.org/speechd#sec2|Documentation]]) * speech-dispatcher (installed and configured, [[https://devel.freebsoft.org/speechd#sec2|Documentation]])
* python-speechd * python-speechd
==== Espeak ====
Uses espeak via python bindings.
Dependency's:
* Espeak or Espeak-ng
* [[https://launchpad.net/python-espeak|python-espeak]]
==== Generic ==== ==== Generic ====
This invokes speech via a sub-process. This is almost the same as entering the command by commandline. The performance depends on the overhead of the speech syntheses application but it is really flexible. This invokes speech via a sub-process. This is almost the same as entering the command by commandline. The performance depends on the overhead of the speech synthesis application but it is really flexible.
Dependency's: Dependency's:
* Espeak or Espeak-ng * Espeak or Espeak-ng
@ -132,7 +140,7 @@ Fenrir can run without installation. It just requires the dependencies to be ins
We recommend to try it out before installation to be sure everything works and prevent yourself from experiencing a non-talking environment. We recommend to try it out before installation to be sure everything works and prevent yourself from experiencing a non-talking environment.
===== Try Out ===== ===== Try Out =====
Fenrir does not require installation. You can try out if everything works before you want to install. In this way you can be sure that your system doesnt break or does not talking. Fenrir does not require installation. You can try it and make sure everything works before you decide to install. In this way you can be sure that your system doesnt break or stop talking.
for that you can just grab the code and run as root ''src/fenrir/fenrir'' (in foreground) or ''src/fenrir/fenrir-daemon'' (in background, that one is used by systemd for autostart) for that you can just grab the code and run as root ''src/fenrir/fenrir'' (in foreground) or ''src/fenrir/fenrir-daemon'' (in background, that one is used by systemd for autostart)
===== Install it ===== ===== Install it =====
@ -149,7 +157,8 @@ For Arch there are PKGBUILDs in the AUR:
- Download the latest stable version from the [[https://linux-a11y.org/index.php?page=fenrir-screenreader|Fenrir-Project]] site. - Download the latest stable version from the [[https://linux-a11y.org/index.php?page=fenrir-screenreader|Fenrir-Project]] site.
- Unpack the archive - Unpack the archive
- install the needed Dependencys an standard installation requires the following. - Check the needed Dependencys by running [[https://github.com/chrys87/fenrir/blob/master/check-dependencys.py|check-dependencys.py]] script
- install the needed missing dependencys an standard installation requires the following:
* python3 >= 3.3 (and all the following is needed for python3 ) * python3 >= 3.3 (and all the following is needed for python3 )
* python3-speechd (screen) * python3-speechd (screen)
* python3-dbus (screen) * python3-dbus (screen)
@ -159,7 +168,7 @@ For Arch there are PKGBUILDs in the AUR:
* python3-pyenchant (spellchecker) * python3-pyenchant (spellchecker)
* your language for aspell (aspell-<lang>) (spellchecker) * your language for aspell (aspell-<lang>) (spellchecker)
* sox (sound) * sox (sound)
* For an individual installation see [[#Support and Requirements|Support and Requirements]] or cunsult the [[https://github.com/chrys87/fenrir/blob/master/README.md|Readme]]) * For an individual installation see [[#Support and Requirements|Support and Requirements]] or consult the [[https://github.com/chrys87/fenrir/blob/master/README.md|Readme]])
- run "install.sh" as root - run "install.sh" as root
this installs fenrir as the following this installs fenrir as the following
@ -186,21 +195,22 @@ To enable auto start on system boot:
====== First Steps ====== ====== First Steps ======
If you are using Fenrir for the first time you may want to take a look at these resources: If you are using Fenrir for the first time you may want to take a look at these resources:
* [[#Keyindings|Keyindings]] * [[#Keybindings|Keybindings]]
* [[#Tutorial Mode|Tutorial Mode]] * [[#Tutorial Mode|Tutorial Mode]]
====== Features ====== ====== Features ======
===== Commands ===== ===== Commands =====
==== Keyindings ==== ==== Keybindings ====
Normal commands can invoked in to ways: Normal commands can be invoked in two ways:
- Using a Metakey ([[#Fenrir Key|FenrirKey]]) - Using a Metakey ([[#Fenrir Key|FenrirKey]])
- Shortcuts with an single key - Shortcuts with a single key
See section [[#Keyboard|Keyboard]] in ''settings.conf'' for more information.
=== Fenrir Key === === Fenrir Key ===
The Fenrir Key is for invoking screen reader commands. Fenrir can handle more than one Key as FenrirKey at the same time. The Fenrir Key is for invoking screen reader commands. Fenrir can utilize more than one FenrirKey at the same time.
By default the following keys are used: By default the following keys are used:
- Insert - Insert
- KeyPad Insert - KeyPad Insert
@ -208,7 +218,7 @@ By default the following keys are used:
=== Script Key === === Script Key ===
To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded in the filename of the script. See [[#Scripting|Scripting]] To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded in the filename of the script. See [[#Scripting|Scripting]]
===Desktop Layout=== === Desktop Layout ===
^Shortcut ^Command ^ ^Shortcut ^Command ^
|FenrirKey + H|[[#Tutorial Mode|toggle tutorial mode]]| |FenrirKey + H|[[#Tutorial Mode|toggle tutorial mode]]|
|CTRL|[[#shut up|shut up (interrupts speech)]]| |CTRL|[[#shut up|shut up (interrupts speech)]]|
@ -317,6 +327,8 @@ To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded in the
|FenrirKey + Shift + C|[[#read current clipboard|current clipboard]]| |FenrirKey + Shift + C|[[#read current clipboard|current clipboard]]|
|FenrirKey + C|[[#copy marked to clipboard|copy marked text to clipboard]]| |FenrirKey + C|[[#copy marked to clipboard|copy marked text to clipboard]]|
|FenrirKey + V|[[#paste clipboard|paste clipboard contents]]| |FenrirKey + V|[[#paste clipboard|paste clipboard contents]]|
|FenrirKey + P|[[#import clipboard from file|import clipboard from file]]|
|FenrirKey + Alt + Shift +C|[[#export clipboard to file|export clipboard to file]]|
|FenrirKey + CTRL + Shift + X|[[#Remove Marks|remove marks]]| |FenrirKey + CTRL + Shift + X|[[#Remove Marks|remove marks]]|
|FenrirKey + X|[[#Set mark|set mark]]| |FenrirKey + X|[[#Set mark|set mark]]|
|FenrirKey + Shift + X|[[#Get text between marks|announce marked text]]| |FenrirKey + Shift + X|[[#Get text between marks|announce marked text]]|
@ -325,7 +337,7 @@ To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded in the
|FenrirKey + CTRL + Up|include Alsa volume| |FenrirKey + CTRL + Up|include Alsa volume|
|FenrirKey + CTRL + Down|decrease Alsa volume| |FenrirKey + CTRL + Down|decrease Alsa volume|
===Laptop Layout=== === Laptop Layout ===
^Shortcut ^Command ^ ^Shortcut ^Command ^
|FenrirKey + H|[[#Tutorial Mode|toggle tutorial mode]]| |FenrirKey + H|[[#Tutorial Mode|toggle tutorial mode]]|
|CTRL|[[#shut up|shut up (interrupts speech)]]| |CTRL|[[#shut up|shut up (interrupts speech)]]|
@ -335,7 +347,7 @@ To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded in the
|FenrirKey + U|[[#review previous line|reviews previous line]]| |FenrirKey + U|[[#review previous line|reviews previous line]]|
|FenrirKey + O|[[#review next line|reviews next line]]| |FenrirKey + O|[[#review next line|reviews next line]]|
|FenrirKey + Shift + J|[[#review line beginning|reviews line beginning]]| |FenrirKey + Shift + J|[[#review line beginning|reviews line beginning]]|
|FenrirKey + SHFIT + L|[[#review line ending|reviews line ending]]| |FenrirKey + Shift + L|[[#review line ending|reviews line ending]]|
|FenrirKey + CTRL + J|[[#review line first character|reviews line first character]]| |FenrirKey + CTRL + J|[[#review line first character|reviews line first character]]|
|FenrirKey + CTRL + L|[[#review line last character|reviews line last character]]| |FenrirKey + CTRL + L|[[#review line last character|reviews line last character]]|
|FenrirKey + Alt + 1|[[#present first line|presents first line]]| |FenrirKey + Alt + 1|[[#present first line|presents first line]]|
@ -343,15 +355,15 @@ To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded in the
|FenrirKey + K|[[#review current word|reviews current word]]| |FenrirKey + K|[[#review current word|reviews current word]]|
|FenrirKey + J|[[#review previous word|reviews previous word]]| |FenrirKey + J|[[#review previous word|reviews previous word]]|
|FenrirKey + L|[[#review next word|reviews next word]]| |FenrirKey + L|[[#review next word|reviews next word]]|
|2 * FenrirKey + K|[[#review current word phonetic|reviews current word phonetic]]| |FenrirKey + CTRL + ALT + K|[[#review current word phonetic|reviews current word phonetic]]|
|2 * FenrirKey + J|[[#review previous word phonetic|reviews previous word phonetic]]| |FenrirKey + CTRL + ALT + J|[[#review previous word phonetic|reviews previous word phonetic]]|
|2 * FenrirKey + L|[[#review next word phonetic|reviews next word phonetic]]| |FenrirKey + CTRL + ALT + L|[[#review next word phonetic|reviews next word phonetic]]|
|FenrirKey + comma|[[#review current character|reviews current char]]| |FenrirKey + comma|[[#review current character|reviews current character]]|
|FenrirKey + M|[[#review previous character|reviews previous char]]| |FenrirKey + M|[[#review previous character|reviews previous character]]|
|FenrirKey + dot|[[#review next character|reviews next char]]| |FenrirKey + dot|[[#review next character|reviews next character]]|
|2 * FenrirKey + comma|[[#review current character phonetic|reviews current character phonetic]]| |FenrirKey + CTRL + ALT + comma|[[#review current character phonetic|reviews current character phonetic]]|
|2 * FenrirKey + M|[[#review previous character phonetic|reviews previous character phonetic]]| |FenrirKey + CTRL + ALT + M|[[#review previous character phonetic|reviews previous character phonetic]]|
|2 * FenrirKey + dot|[[#review next character phonetic|reviews next character phonetic]]| |FenrirKey + CTRL + ALT + dot|[[#review next character phonetic|reviews next character phonetic]]|
|FenrirKey + CTRL + I|[[#review up|reviews up]]| |FenrirKey + CTRL + I|[[#review up|reviews up]]|
|FenrirKey + CTRL + comma|[[#review down|reviews down]]| |FenrirKey + CTRL + comma|[[#review down|reviews down]]|
|FenrirKey + Slash|[[#exit review|exit review]]| |FenrirKey + Slash|[[#exit review|exit review]]|
@ -434,6 +446,8 @@ To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded in the
|FenrirKey + Shift + C|[[#read current clipboard|current clipboard]]| |FenrirKey + Shift + C|[[#read current clipboard|current clipboard]]|
|FenrirKey + C|[[#copy marked to clipboard|copy marked text to clipboard]]| |FenrirKey + C|[[#copy marked to clipboard|copy marked text to clipboard]]|
|FenrirKey + V|[[#paste clipboard|paste clipboard contents]]| |FenrirKey + V|[[#paste clipboard|paste clipboard contents]]|
|FenrirKey + F5|[[#import clipboard from file|import clipboard from file]]|
|FenrirKey + Alt + Shift +C|[[#export clipboard to file|export clipboard to file]]|
|FenrirKey + CTRL + Shift + X|[[#Remove Marks|remove marks]]| |FenrirKey + CTRL + Shift + X|[[#Remove Marks|remove marks]]|
|FenrirKey + X|[[#Set mark|set mark]]| |FenrirKey + X|[[#Set mark|set mark]]|
|FenrirKey + Shift + X|[[#Get text between marks|announce marked text]]| |FenrirKey + Shift + X|[[#Get text between marks|announce marked text]]|
@ -544,6 +558,10 @@ Read the content of the current element of the clipboard list
== paste clipboard == == paste clipboard ==
Past whatever element is currently selected by first, last, prev or next clipboard commands. Past whatever element is currently selected by first, last, prev or next clipboard commands.
if no special clipboard is selected the first one (last copied) is used. if no special clipboard is selected the first one (last copied) is used.
== export clipboard to file ==
This allows you to export the current clipboard to an configurable filepath. This is useful to share the clipboard with a graphical desktop.
== import clipboard from file ==
Import a clipboard from an configurable file. This is useful to share the clipboard with a graphical desktop.
==== Quick Settings ==== ==== Quick Settings ====
Fenrir provides some shortcuts to change settings temporarily and on the fly without need to permanently change the ''settings.conf'' file. Fenrir provides some shortcuts to change settings temporarily and on the fly without need to permanently change the ''settings.conf'' file.
=== toggle braille === === toggle braille ===
@ -768,29 +786,43 @@ speaks an _ as "line".
speaks an _ as underscore. speaks an _ as underscore.
for question mark an ? is appended to the word that the TTS system can announce the question correctly. for question mark an ? is appended to the word that the TTS system can announce the question correctly.
==== Custom ==== ==== Custom ====
The dict "[customDict]" is just for your own use. it does just replace the key by the value without any special functionality. This might be used to correct phonetic wrongly spoken words,make words more common or just shorter. Or even just for fun :). The dict "[customDict]" is just for your own use, it just replace the key with the value without any special functionality. This might be used to fix incorrectly spoken words, make words more common, shorter or just for fun. :)
==== Emoticons ==== ==== Emoticons ====
The Emoticons dict "[emoticonDict]" contains by default some emoticons. it replaces ":)" by "smile" or "XD" by "loool". So chatting is a little more colorful. The Emoticons dictionary "[emoticonDict]" by default contains some emoticons. it can replace ":)" with "smile" or "XD" with "loool" Making chat more colorful.
The special on that dict is that you can toggle the substitution it on or off during run time or in settings.conf. This is useful because while doing programming or other serious work you want here colons and parans not smiles. A nice feature with this dictionary is that you can toggle the substitution on or off during run time or in settings.conf. This is useful because while doing programming or other serious work you want to hear colons and parans not smiles.
====== Configuration ====== ====== Configuration ======
===== Prepare =====
===== Settings =====
You can configure Fenrir in the following places (ordered by priority): You can configure Fenrir in the following places (ordered by priority):
- /etc/fenrir/settings/settings.conf - Commandline Parameters ''-o'' see [[#Set settings coption|Set settings coption]]
- <sourceTree>/config/settings/settings.conf - /etc/fenrir/settings/settings.conf see [[#Settings|Settigns]]
- run with hard coded defaults. - <sourceTree>/config/settings/settings.conf see [[#Settings|Settigns]]
- hard coded defaults
===== Commandline Arguments =====
==== Set settings coption ====
You can specify options that overwrites the setting.conf.
This is done with ''-o <list of options>'' parameter.
The list of options has the following syntax
fenrir -o "section#setting=value;section#setting=value"
For example change the sound driver to gstreamer and disable braille
fenrir -o "sound#driver=gstreamerDriver;braille#enabled=False=False"
or change debug level to verbose
fenrir -o "general#debugLevel=3"
You can find the available sections and variables here [[#Settings]]
See Syntax [[#settings.conf syntax]]
==== settings.conf syntax ==== ==== settings.conf syntax ====
the syntax of the "settings.conf" is really simple and is similar to a "*.ini" file, there are 3 different elements. the syntax of the [[#Settings|settings.conf]] is really simple and is similar to a "*.ini" file, there are 4 different elements.
- Sections - Sections
- Settings - Settings
- Values
- Comments - Comments
A comment starts with an # and is ignored by fenrir.
# this is a comment
To group settings we have sections.
A section can look like this: A section can look like this:
[Section] [Section]
A setting looks like this: A setting looks like this:
settingName=Value settingName=Value
A comment starts with an #.
# this is a comment
Example: Example:
[sound] [sound]
@ -800,7 +832,7 @@ Example:
# Sox is default. # Sox is default.
driver=genericDriver driver=genericDriver
===== Settings =====
==== Sound ==== ==== Sound ====
The sound is configured in section ''[sound]''. The sound is configured in section ''[sound]''.
@ -836,7 +868,7 @@ The generic sound driver uses shell commands for play sound and frequencies.
''genericFrequencyCommand'' defines the command that is used playing frequencies. ''genericFrequencyCommand'' defines the command that is used playing frequencies.
genericFrequencyCommand=<your command for playing a frequence> genericFrequencyCommand=<your command for playing a frequence>
The following variable are substituted in ''genericPlayFileCommand'' and ''genericFrequencyCommand'': The following variables are substituted in ''genericPlayFileCommand'' and ''genericFrequencyCommand'':
* ''fenrirVolume'' = the current volume setting * ''fenrirVolume'' = the current volume setting
* ''fenrirSoundFile'' = the sound file for an sound icon * ''fenrirSoundFile'' = the sound file for an sound icon
* ''fenrirFrequence'' = the frequency to play * ''fenrirFrequence'' = the frequency to play
@ -987,9 +1019,9 @@ Values: Integer,
* ''0'' = display size * ''0'' = display size
* ''>0'' number of cells * ''>0'' number of cells
==== Screen ==== ==== Screen ====
The settings for screens, (TTY, PTY) is done in the ''[screen]'' section. The settings for screens, (TTY, PTY) are configured in the ''[screen]'' section.
The driver that gets the information from a screen: The driver to get the information from the screen:
driver=vcsaDriver driver=vcsaDriver
Available Drivers: Available Drivers:
* ''vcsaDriver'' using the VCSA driver (for TTYs), for Fenrir <1.5 just use ''vcsa'' * ''vcsaDriver'' using the VCSA driver (for TTYs), for Fenrir <1.5 just use ''vcsa''
@ -1001,21 +1033,21 @@ The driver updates Fenrir with changes upon the screen.
screenUpdateDelay=0.05 screenUpdateDelay=0.05
Values: in Seconds Values: in Seconds
If you want Fenrir to not be active on any screen. That can have different reasons. Maybe an X server or Wayland is running on that screen. You can make Fenrir ignore it or multiple screens seperated by '','' with: If you want Fenrir to not be active on any screen for various reasons. Maybe an X server or Wayland is running on that screen. You can make Fenrir ignore it or multiple screens seperated by '','' with:
suspendingScreen= suspendingScreen=
Values: Depends on driver: Values: Depends on driver:
* VCSA: the number of the TTY. TTY6 is ''6''. * VCSA: the number of the TTY. TTY6 is ''6''.
Example ignore TTY1 and TTY2: Example ignore TTY1 and TTY2:
suspendingScreen=1,2 suspendingScreen=1,2
There is also the ability to let Fenrir auto detect screens that running an X. So Screens running an GUI are ignored. There is also the ability to let Fenrir auto detect screens that are running an X server. So Screens running an GUI are ignored.
autodetectSuspendingScreen=True autodetectSuspendingScreen=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
==== Keyboard ==== ==== Keyboard ====
The settings for keyboard and input related configuration is located in the section ''[keyboard]'' of the ''settings.conf'' file. The settings for keyboard and input related configuration is located in the section ''[keyboard]'' of the ''settings.conf'' file.
Select the driver used to for grabbing the keybord and recieve shortcuts. Select the driver used for grabbing keybord input and for recieving shortcuts.
driver=evdevDriver driver=evdevDriver
Values: Text, available Driver Values: Text, available Driver
Available Drivers: Available Drivers:
@ -1028,23 +1060,23 @@ Values:
* ''NOMICE'' Exclude mices from handling. * ''NOMICE'' Exclude mices from handling.
* ''<Device Name>'' just use the device with the given name. * ''<Device Name>'' just use the device with the given name.
Gives Fenrir exclusive access to the keyboard and lets it control keystrokes. This is needed to consume the Fenrir related shortcuts. Gives Fenrir exclusive access to the keyboard and lets it control keystrokes. This is needed to intercept Fenrir related shortcuts.
grabDevices=True grabDevices=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
The following just make sense if you are using an second screenreader and just wanna have some hooked events. Fenrir ignores all shortcuts then. The following just make sense if you are using a second screenreader and just wanna have some hooked events. Fenrir ignores all shortcuts then.
ignoreShortcuts=False ignoreShortcuts=False
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
The current keyboard layout used for shortcuts. The current keyboard layout used for shortcuts.
keyboardLayout=desktop keyboardLayout=desktop
Values: A absolute Path to an Keyboard definition file or a Filename without extension located in ''/etc/fenrir/keyboard'' Values: An absolute Path to a Keyboard definition file or a Filename without extension located in ''/etc/fenrir/keyboard''
Announce chars while typing. Announce characters while typing.
charEcho=False charEcho=False
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Announce deleted chars Announce deleted characters
charDeleteEcho=True charDeleteEcho=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
@ -1058,71 +1090,77 @@ Values: on=''True'', off=''False''
You can filter the keys on that the speech should interrupt You can filter the keys on that the speech should interrupt
interruptOnKeyPressFilter= interruptOnKeyPressFilter=
Values: (List) empty = all keys, otherwhise interrupt on given keys Values: (List) empty = all keys, otherwise interrupt with specified keys
The timeout that is used for double tap shortcuts The timeout that is used for double tap shortcuts
doubleTapTimeout=0.2 doubleTapTimeout=0.2
Values: Seconds Values: Seconds
==== General ==== ==== General ====
Overall stuff can be configured in section ''[general]''. Overall settings can be configured from the section ''[general]''.
Set the current debug level: Set the current debug level:
debugLevel=1 debugLevel=1
Values: off=0, error=1, warning=2, info=3 Values: off=0, error=1, warning=2, info=3
the current used punctuation and dict file: the current punctuation and dict file in use:
punctuationProfile=default punctuationProfile=default
Values: Text, see available profiles in ''/etc/fenrir/punctuation'' or in ''sourceTree/config/punctuation'' Values: Text, see available profiles in ''/etc/fenrir/punctuation'' or in ''sourceTree/config/punctuation''
The current used punctuation level. The current punctuation level in use:
punctuationLevel=some punctuationLevel=some
Values: Text, See available levels in the used punctuation file. Values: Text, See available levels in the used punctuation file.
Respect pause for punctuations. Respect pause for punctuations:
respectPunctuationPause=True respectPunctuationPause=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Add a pause on Line break. Add a pause on Line break:
newLinePause=True newLinePause=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Specify the path where the clipboard should be exported to.
See [[#export clipboard to file|export clipboard to file]].
The variable ''$user'' is replaced by the current logged username.
clipboardExportPath=/tmp/fenrirClipboard
Values: Text, Systemfilepath
The number of available cipboards: The number of available cipboards:
numberOfClipboards=10 numberOfClipboards=10
Values: Integer, 1 - 999 Values: Integer, 1 - 999
Replace emoticons like :) or ;) with there names. Replace emoticons like :) or ;) with text insertions:
emoticons=True emoticons=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Define the current fenrir keys. Define the current fenrir keys:
fenrirKeys=KEY_KP0,KEY_META,KEY_INSERT fenrirKeys=KEY_KP0,KEY_META,KEY_INSERT
Values, Text list, separated by comma. Values, Text list, separated by comma.
Define the current script keys. Define the current script keys:
scriptKey=KEY_COMPOSE scriptKey=KEY_COMPOSE
Values, Text list, separated by comma. Values, Text list, separated by comma.
The timeformat that is used for output (time command) The time format to be used for (time command) output:
timeFormat=%H:%M:%P timeFormat=%H:%M:%P
Values: see python specification for [[https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior|datetime.strftime]] Values: see python specification for [[https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior|datetime.strftime]]
The date format that is used for output (date command). The date format to be used for (date command) output:
dateFormat=%A, %B %d, %Y dateFormat=%A, %B %d, %Y
Values: see python specification for [[https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior|datetime.strftime]] Values: see python specification for [[https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior|datetime.strftime]]
Enable or Disable the spellchecker while typing. Enable or Disable spellcheck whilst typing:
autoSpellCheck=True autoSpellCheck=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
The used dictionary for the spellchecker. The use of the dictionary with spellcheck:
spellCheckLanguage=en_US spellCheckLanguage=en_US
Values: Text, see aspell dictionary's. Values: Text, see aspell dictionary's.
Folder Path for your scripts "scriptKey" functionality. Folder Path for your scripts "scriptKey" functionality:
scriptPath=/usr/share/fenrir/scripts scriptPath=/usr/share/fenrir/scripts
Values: Text, Existing path on file system. Values: Text, Existing path on file system.
Overload commands or create new one without changing Fenrir default. Override commands or create new ones without changing Fenrir defaults:
commandPath=/usr/share/fenrir/commands commandPath=/usr/share/fenrir/commands
Values: Text, Existing path on file system. Values: Text, Existing path on file system.
Subfolders in commandPath are: Subfolders in commandPath are:
@ -1132,51 +1170,51 @@ Subfolders in commandPath are:
* ''onScreenUpdate'' = executed when the screen is captured * ''onScreenUpdate'' = executed when the screen is captured
==== Focus ==== ==== Focus ====
The basic focus configuration is done in section ''[focus]''. The configuration for basic focus is in the section ''[focus]''.
Follow the text cursor: Follow the text cursor:
cursor=True cursor=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Follow highlighted text changes (Highlight Tracking) Follow highlighted text changes (Highlight Tracking):
highlight=False highlight=False
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
==== Review ==== ==== Review ====
Configurations for the review mode are done in section ''[review]''. Configurations for the review mode are in the section ''[review]''.
If "next word/ char" or "prev word/char" create an linebreak announce it. If "next word/ char" or "prev word/char" create a linebreak, announce it:
lineBreak=True lineBreak=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
If "next word/ char" or "prev word/char" can not be done because you reached the end of the screen announce it. If "next word/ char" or "prev word/char" cannot be performed because you reached the end of the screen, announce it:
endOfScreen=True endOfScreen=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Leave the review mode when pressing a key Leave the review mode when pressing a key:
leaveReviewOnKeypress=False leaveReviewOnKeypress=False
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Leave the review mode when changing the screen (From TTY3 to TTY4) Leave the review mode when changing the screen (From TTY3 to TTY4):
leaveReviewOnScreenChange=True leaveReviewOnScreenChange=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
==== Promote ==== ==== Promote ====
"Promoted Lists" are configured in section ''[promote]''. "Promoted Lists" are configured in the section ''[promote]''.
Turn Promoted Lists" on or off: Turn Promoted Lists" on or off:
enabled=True enabled=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
The minimum time interval for inactivity that activates promoting. The minimum time interval of inactivity to activate promoting.
By default it promotes after 120 Seconds inactivity. By default it promotes after 120 Seconds inactivity:
inactiveTimeoutSec=120 inactiveTimeoutSec=120
Values: in Seconds Values: in Seconds
Define the list of promoted words comma seperated. Define a list of promoted words comma seperated:
list= list=
Values: text (comma seperated) Values: text (comma seperated)
Example to promote the word "nickname" or an bash prompt: Example to promote the word "nickname" or a bash prompt:
list=nickname,$:,#: list=nickname,$:,#:
==== Time ==== ==== Time ====
The automated time announcement is configured in section ''[time]''. The automated time announcement is configured in the section ''[time]''.
Time announcement is disabled by default. Time announcement is disabled by default.
Turn time announcement on or off: Turn time announcement on or off:
enabled=True enabled=True
@ -1190,20 +1228,20 @@ Should the date be announced (just on date change):
presentDate=True presentDate=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Announce after a given period of seconds Announce after a given period of seconds:
delaySec=0 delaySec=0
Value: in Seconds, 0 = Deactivated Value: in Seconds, 0 = Deactivated
Announce after to fix minutes in an hour. if delaySec is >0 onMinutes is ignored. Announce after to fix minutes in an hour. if delaySec is >0 onMinutes is ignored:
onMinutes=00,30 onMinutes=00,30
Example every 15 minutes: Example every 15 minutes:
onMinutes=00,15,30,45 onMinutes=00,15,30,45
Just play an soundicon (not interrupting) Just play a soundicon, (not interrupting):
announce=True announce=True
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
Interrupt current speech for time announcement Interrupt current speech for time announcement:
interrupt=False interrupt=False
Values: on=''True'', off=''False'' Values: on=''True'', off=''False''
====== Customization ====== ====== Customization ======
@ -1213,11 +1251,24 @@ The script key is the applications key. Usually this key can be found on the key
When you name a script, the key name appears in the script seperated by the sequence __-__. So, for example, if you have a python weather script you want assigned to the script key plus the letter w you would name the script /usr/share/fenrir/scripts/weather__-__key_w.py When you name a script, the key name appears in the script seperated by the sequence __-__. So, for example, if you have a python weather script you want assigned to the script key plus the letter w you would name the script /usr/share/fenrir/scripts/weather__-__key_w.py
Then, to access the script, simply press the script key and the letter w. Then, to access the script, simply press the script key and the letter w.
Scripts must be executable. So, make sure to chmod 755 your script when you place it in the scripts directory. Scripts must be executable. So, make sure to chmod 755 your script when you place it in the scripts directory.
The script gets some parameter from fenrir when it is executed. So that information is available in your script then.
==== Parameterlist ====
^Parameter ^Content ^
|$1|Username of the current logged in user|
==== Examples ====
Script that just speaks the current username when pressing ScriptKey + H.\\
File: ''/usr/share/fenrir/scripts/helloWorld__-__key_h.sh'':
#!/bin/bash
echo $1
===== Commands ===== ===== Commands =====
You can place your own commands in "/usr/share/fenrir/commands" (path is configurable in settings.conf). You can place your own commands in "/usr/share/fenrir/commands" (path is configurable in settings.conf).
Commands are python files with an special scheme. You can assign them to an shortcut using the filename without extension or place them in an hook trigger like OnInput or OnScreenChange. For deeper information see developer guide. Commands are python files with a special scheme. You can assign them to a shortcut using the filename without an extension or place them in a hook trigger like OnInput or OnScreenChange. For further information see developer guide.
Good Examples: [[https://github.com/chrys87/fenrir/blob/master/src/fenrir/commands/commands/date.py|"date.py"]] (announce the Date), [[https://github.com/chrys87/fenrir/blob/master/src/fenrir/commands/commands/shut_up.py|"shut_up.py"]] (interrupt output) Good Examples: [[https://github.com/chrys87/fenrir/blob/master/src/fenrir/commands/commands/date.py|"date.py"]] (announce the Date), [[https://github.com/chrys87/fenrir/blob/master/src/fenrir/commands/commands/shut_up.py|"shut_up.py"]] (interrupt output)
the basic scheme for an command is the following: the basic scheme for a command is as follows:
from core import debug from core import debug
@ -1235,23 +1286,28 @@ the basic scheme for an command is the following:
def setCallback(self, callback): def setCallback(self, callback):
pass pass
* [[https://github.com/chrys87/fenrir/blob/master/src/fenrir/commands/command_template.py|Template is here]] * [[https://github.com/chrys87/fenrir/blob/master/src/fenrir/commands/command_template.py|Template lives here]]
* The class needs to have the name "command". * The class needs to have the name "command".
* "initialize" is running once while loading the command. * "initialize" is running once whilst loading the command.
* "shutdown" is running on unload the command (like quit fenrir) * "shutdown" is running on unload like the command (quit fenrir)
* "getDescriptsion" just returns an string. That Sting is used in Tutorial Mode. * "getDescriptsion" just returns an string. That String is used in Tutorial Mode.
* "run" is executed when the command is invoked. (shortcut is pressed, or trigger is running) * "run" is executed when the command is invoked. (shortcut is pressed, or trigger isn't running)
* setCAllback is currently not used. and has no functionality yet. * setCAllback is currently not used. and has no functionality yet.
====== Trouble Shooting ====== ====== Troubleshooting ======
Fenrir does not start Fenrir does not start
- Did you installed all dependencys - Have you installed all the dependencies [[#Support and Requirements|Support and Requirements]]
- Try master, i changed many things for make it compatible to more systems - Try using master, a lot of changes take place there to make Fenrir compatible with more systems
Fenrir does not consume the shortcuts Fenrir does not utilize the shortcuts
- make sure you have python3-evdev installed - Make sure you have python3-evdev installed
- use latest Fenrir version - Use the latest Fenrir version
No Sound: No Sound:
- run script to configure pulse for Fenrir ''tools/configure_pulse.sh'' (once as user and once as root, then restart) - Run the scripts to configure pulse. found in: ''tools/configure_pulse.sh'' (once as your user and once as root. Then restart Fenrir)
- use ALSA - use ALSA
- configure pulse systemwide - Configure Pulse systemwide
No Speech:
- Run the scripts to configure pulse. found in: ''tools/configure_pulse.sh'' (once as your user and once as root. Then restart Fenrir)
- use ALSA
- Configure Pulse systemwide
- if you are using speech-dispatcher run "spd-conf" as user and as root once.