Debian Codegraph @

docs/fenrir.adoc

raw
1 == Fenrir User Manual for Slint users
2
3 Fenrir is a modern command line screen reader written in Python3. +
4 It has a modular structure, a flexible based driver model, is highly
5 configurable and easy to customize and extend.
6
7 === Credit and intended audience
8
9 This document is just a customization for Slint of the genuine
10 https://git.stormux.org/storm/fenrir/src/branch/master/docs/user.txt[Fenrir User
11 Manual] motly written by Chrys, main developer of Fenrir.
12
13 It has been adapted to its intended audience: end users of Fenrir on
14 Slint where it is already installed, thus concentrates on its setting
15 and usage. You will find more information about its features,
16 installation and how customize and troubleshoot it and contribute to its
17 development on https://git.stormux.org/storm/fenrir[the Fenrir Git
18 repository].
19
20 === Getting started with Fenrir
21
22 Fenrir is a screen reader, that reads aloud the text displayed on the
23 screen and allows to review it, like espeakup and speechd-up also
24 shipped in Slint. +
25 In Slint it is mostly used in console mode, and uses the synthesizers
26 and voices provided by Speech Dispatcher. +
27 Keyboard shortcuts are bound to commands to read the screen, review it
28 and perform other actions like modify the settings on the fly, switch
29 languages, copy and paste text, provide miscellaneous information. +
30 === Configuration file === The system-wide settings are recorded in the
31 configuration file /etc/fenrirscreenreader/settings/settings.conf, that is
32 heavily commented. Regular-user sessions, including `+fenrir -x+`, load
33 `+~/.local/share/stormux/fenrirscreenreader/settings/settings.conf+` when it
34 exists, otherwise they fall back to the system settings file. Saving settings
35 as a regular user creates or updates the user-local file. +
36 These settings are described in this user guide.
37
38 To start Fenrir once type as root:
39
40 ....
41 service start fenrir
42 ....
43
44 To enable auto start on system boot type as root:
45
46 ....
47 speak-with fenrir
48 ....
49
50 and confirm that you want to have it started at boot time.
51
52 If you are using Fenrir for the first time you may want to take a look
53 at these resources:
54
55 * link:#Keybindings[Keybindings]
56 * link:#Tutorial Mode[Tutorial Mode]
57
58 == Keybindings
59
60 Two series of key bindings are provided:
61
62 . the link:#Desktop layout[Desktop layout] uses a numeric keypad (here
63 abbreviated as keypad).
64 . the link:#Laptop layout[Laptop layout] for keyboards that do not have
65 a numeric keypad.
66
67 The layout is set in the configuration file in the section
68 link:#Keyboard[Keyboard].
69
70 === Fenrir Key
71
72 The Fenrir Key is for invoking screen reader commands. Fenrir can
73 utilize more than one FenrirKey at the same time. By default the
74 following keys are used:
75
76 . Insert
77 . KeyPad Insert
78 . Meta (Super, Windows)
79
80 === Script Key
81
82 To invoke "Scripts" the Script Key is mandatory. The shortcut is encoded
83 in the filename of the script. See link:#Scripting[Scripting]
84
85 By default the Script Key is Compose (the key between AltGr and Ctrl at
86 the right of the space bar).
87
88 For instance, pressing Script Key + L switches between the languages
89 possibly listed in the configuration file. Feel free to write you own
90 scripts to expand Fenrir features and share them!
91
92 === Desktop Layout
93
94 [cols=",",options="header",]
95 |===
96 |Shortcut |Command
97 |link:#General[General] |
98
99 |CTRL |link:#shut up[shut up (interrupts speech)]
100
101 |FenrirKey + Q |link:#quit Fenrir[quits fenrir]
102
103 |link:#Review modes[Review modes] |
104
105 |FenrirKey + KeyPad dot |link:#exit review[exit review]
106
107 |FenrirKey + KeyPad 9 |link:#review bottom[reviews bottom]
108
109 |FenrirKey + KeyPad 7 |link:#review top[reviews top]
110
111 |KeyPad 8 |link:#review current line[reviews current line]
112
113 |KeyPad 7 |link:#review previous line[reviews previous line]
114
115 |KeyPad 9 |link:#review next line[reviews next line]
116
117 |FenrirKey + KeyPad 4 |link:#review line beginning[reviews line
118 beginning]
119
120 |FenrirKey + KeyPad 6 |link:#review line ending[reviews line ending]
121
122 |FenrirKey + KeyPad 1 |link:#review line first character[reviews line
123 first character]
124
125 |FenrirKey + KeyPad 3 |link:#review line last character[reviews line
126 last character]
127
128 |FenrirKey + Alt + 1 |link:#present first line[presents first line]
129
130 |FenrirKey + Alt + 2 |link:#present last line[presents last line]
131
132 |KeyPad 5 |link:#review current word[reviews current word]
133
134 |KeyPad 4 |link:#review previous word[reviews previous word]
135
136 |KeyPad 6 |link:#review next word[reviews next word]
137
138 |FenrirKey + Shift + KeyPad 5
139 |link:#review current word phonetic[reviews current word phonetic]
140
141 |FenrirKey + Shift + KeyPad 4
142 |link:#review previous word phonetic[reviews previous word phonetic]
143
144 |FenrirKey + Shift + KeyPad 6 |link:#review next word phonetic[reviews
145 next word phonetic]
146
147 |KeyPad 2 |link:#review current character[reviews current char]
148
149 |KeyPad 1 |link:#review previous character[reviews previous char]
150
151 |KeyPad 3 |link:#review next character[reviews next char]
152
153 |FenrirKey + Shift + KeyPad 2
154 |link:#review current character phonetic[reviews current character
155 phonetic]
156
157 |FenrirKey + Shift + KeyPad 1
158 |link:#review previous character phonetic[reviews previous character
159 phonetic]
160
161 |FenrirKey + Shift + KeyPad 3
162 |link:#review next character phonetic[reviews next character phonetic]
163
164 |FenrirKey + CTRL + KeyPad 8 |link:#review up[reviews up]
165
166 |FenrirKey + CTRL + KeyPad 2 |link:#review down[reviews down]
167
168 |FenrirKey + I |link:#indent current line[indent curr line]
169
170 |FenrirKey + KeyPad 5 |link:#current screen[current screen]
171
172 |FenrirKey + KeyPad 8 |link:#current screen before cursor[current screen
173 before cursor]
174
175 |FenrirKey + KeyPad 2 |link:#current screen after cursor[current screen
176 after cursor]
177
178 |<Unbound> |link:#cursor read to end of line[cursor read to end of line]
179
180 |link:#Tutorial mode[Tutorial mode] |
181
182 |FenrirKey + H |link:#Tutorial Mode[toggle tutorial mode]
183
184 |link:#Information[Information] |
185
186 |FenrirKey + T |link:#Time[Announce time]
187
188 |FenrirKey + T +T |link:#Date[Announce date]
189
190 |FenrirKey + CTRL + <n> |link:#clear Bookmark <n>[clear bookmark number
191 <n>]
192
193 |FenrirKey + Shift + <n> |link:#set Bookmark <n>[set bookmark number
194 <n>]
195
196 |FenrirKey + <n> |link:#read Bookmark <n>[read bookmark number <n>]
197
198 |KeyPad dot |link:#cursor position[cursor position]
199
200 |<Unbound> |link:#cursor column[cursor column]
201
202 |<Unbound> |link:#cursor line number[cursor line number]
203
204 |link:#Screen Interaction[Screen Interaction] |
205
206 |FenrirKey + CTRL + Shift + C |link:#clear clipboard[clears clipboard]
207
208 |FenrirKey + Home |link:#first clipboard[first clipboard]
209
210 |FenrirKey + End |link:#last clipboard[last clipboard]
211
212 |FenrirKey + PageUp |link:#previous clipboard[previous clipboard]
213
214 |FenrirKey + PageDown |link:#next clipboard[next clipboard]
215
216 |FenrirKey + Shift + C |link:#read current clipboard[current clipboard]
217
218 |FenrirKey + C |link:#copy marked to clipboard[copy marked text to
219 clipboard]
220
221 |FenrirKey + V |link:#paste clipboard[paste clipboard contents]
222
223 |FenrirKey + P |link:#import clipboard from file[import clipboard from
224 file]
225
226 |FenrirKey + Alt + Shift +C |link:#export clipboard to file[export
227 clipboard to file]
228
229 |FenrirKey + CTRL + Shift + X |link:#Remove Marks[remove marks]
230
231 |FenrirKey + X |link:#Set mark[set mark]
232
233 |FenrirKey + Shift + X |link:#Get text between marks[announce marked
234 text]
235
236 |<Unbound> |export clipboard to X
237
238 |link:#Window mode[Window mode] |
239
240 |FenrirKey + KeyPad Slash |link:#Create Window[set window application]
241
242 |2 * FenrirKey + KeyPad Slash |link:#Remove Window[clear window
243 application]
244
245 |KeyPad Plus |link:#last incoming[read last incoming]
246
247 |link:/#Quick Settings/ toggle or switch[Quick settings: toggle or
248 switch] |
249
250 |Compose + L |link:#switch language[switch language]
251
252 |FenrirKey + F3 |link:#toggle sound[toggles sound]
253
254 |FenrirKey + F4 |link:#toggle speech[toggles speech]
255
256 |KeyPad Enter |link:#disable speech temporarily[temporarily disables
257 speech]
258
259 |FenrirKey + CTRL + P |link:#toggle punctuation level[toggles
260 punctuation level]
261
262 |FenrirKey + RightBrace |link:#toggle auto spell check[toggle auto spell
263 check]
264
265 |FenrirKey + Backslash |link:#toggle output[toggles output]
266
267 |FenrirKey + CTRL + E |link:#toggle emoticons[toggles emoticons]
268
269 |FenrirKey + KeyPad Enter |link:#toggle auto read[toggles auto read]
270
271 |FenrirKey + CTRL + T |link:#toggle auto time[toggles auto time]
272
273 |FenrirKey + KeyPad ASTERISK |link:#toggle highlight tracking[toggles
274 highlight tracking]
275
276 |link:/#Quick Settings/ speech and sound[Quick Settings: speech and
277 sound] |
278
279 |FenrirKey + Up |link:#increase speech volume[increase speech volume]
280
281 |FenrirKey + Down |link:#decrease speech volume[decrease speech volume]
282
283 |FenrirKey + Right |link:#increase speech rate[increase speech rate]
284
285 |FenrirKey + Left |link:#decrease speech rate[decrease speech rate]
286
287 |FenrirKey + Alt + Right |link:#increase speech pitch[increase speech
288 pitch]
289
290 |FenrirKey + Alt + Left |link:#decrease speech pitch[decrease speech
291 pitch]
292
293 |FenrirKey + Alt + Up |link:#increase sound volume[increase sound
294 volume]
295
296 |FenrirKey + Alt + Down |link:#decrease sound volume[decrease sound
297 volume]
298
299 |FenrirKey + CTRL + Up |increase Alsa volume
300
301 |FenrirKey + CTRL + Down |decrease Alsa volume
302
303 |link:#Spellchecker[Spell checker] |
304
305 |FenrirKey + S |link:#spell check[spell check]
306
307 |2 * FenrirKey + S |link:#add word to spell check[add word to spell
308 check]
309
310 |FenrirKey + Shift + S |link:#removes word from spell check[removes word
311 from spell check]
312
313 |FenrirKey + Backspace |link:#forward keypress[forward keypress]
314 |===
315
316 === Laptop Layout
317
318 [cols=",",options="header",]
319 |===
320 |Shortcut |Command
321 |link:#General[General] |
322
323 |FenrirKey + H |link:#Tutorial Mode[toggle tutorial mode]
324
325 |CTRL |link:#shut up[shut up (interrupts speech)]
326
327 |link:#Review modes[Review modes] |
328
329 |FenrirKey + Shift + O |link:#review bottom[reviews bottom]
330
331 |FenrirKey + Shift + U |link:#review top[reviews top]
332
333 |FenrirKey + I |link:#review current line[reviews current line]
334
335 |FenrirKey + U |link:#review previous line[reviews previous line]
336
337 |FenrirKey + O |link:#review next line[reviews next line]
338
339 |FenrirKey + Shift + J |link:#review line beginning[reviews line
340 beginning]
341
342 |FenrirKey + Shift + L |link:#review line ending[reviews line ending]
343
344 |FenrirKey + CTRL + J |link:#review line first character[reviews line
345 first character]
346
347 |FenrirKey + CTRL + L |link:#review line last character[reviews line
348 last character]
349
350 |FenrirKey + Alt + 1 |link:#present first line[presents first line]
351
352 |FenrirKey + Alt + 2 |link:#present last line[presents last line]
353
354 |FenrirKey + K |link:#review current word[reviews current word]
355
356 |FenrirKey + J |link:#review previous word[reviews previous word]
357
358 |FenrirKey + L |link:#review next word[reviews next word]
359
360 |FenrirKey + CTRL + ALT + K |link:#review current word phonetic[reviews
361 current word phonetic]
362
363 |FenrirKey + CTRL + ALT + J |link:#review previous word phonetic[reviews
364 previous word phonetic]
365
366 |FenrirKey + CTRL + ALT + L |link:#review next word phonetic[reviews
367 next word phonetic]
368
369 |FenrirKey + comma |link:#review current character[reviews current
370 character]
371
372 |FenrirKey + M |link:#review previous character[reviews previous
373 character]
374
375 |FenrirKey + dot |link:#review next character[reviews next character]
376
377 |FenrirKey + CTRL + ALT + comma
378 |link:#review current character phonetic[reviews current character
379 phonetic]
380
381 |FenrirKey + CTRL + ALT + M
382 |link:#review previous character phonetic[reviews previous character
383 phonetic]
384
385 |FenrirKey + CTRL + ALT + dot
386 |link:#review next character phonetic[reviews next character phonetic]
387
388 |FenrirKey + CTRL + I |link:#review up[reviews up]
389
390 |FenrirKey + CTRL + comma |link:#review down[reviews down]
391
392 |FenrirKey + Slash |link:#exit review[exit review]
393
394 |FenrirKey + Shift + dot |link:#cursor position[cursor position]
395
396 |FenrirKey + I +I |link:#indent current line[indent curr line]
397
398 |FenrirKey + Shift + K |link:#current screen[current screen]
399
400 |FenrirKey + Shift + I |link:#current screen before cursor[current
401 screen before cursor]
402
403 |FenrirKey + Shift + comma |link:#current screen after cursor[current
404 screen after cursor]
405
406 |<Unbound> |link:#cursor read to end of line[cursor read to end of line]
407
408 |link:#Tutorial mode[Tutorial mode] |
409
410 |FenrirKey + H |link:#Tutorial Mode[toggle tutorial mode]
411
412 |link:#Information[Information] |
413
414 |FenrirKey + T |link:#Time[Announce time]
415
416 |FenrirKey + T +T |link:#Date[Announce date]
417
418 |FenrirKey + CTRL + <n> |link:#clear Bookmark <n>[clear bookmark number
419 <n>]
420
421 |FenrirKey + Shift + 1 |link:#set Bookmark <n>[set bookmark bumber <n>]
422
423 |FenrirKey + 1 |link:#read Bookmark <n>[bookmark number <n>]
424
425 |<Unbound> |link:#cursor column[cursor column]
426
427 |<Unbound> |link:#cursor line number[cursor line number]
428
429 |link:#Screen Interaction[Screen Interaction] |
430
431 |FenrirKey + CTRL + Shift + C |link:#clear clipboard[clears clipboard]
432
433 |FenrirKey + Home |link:#first clipboard[first clipboard]
434
435 |FenrirKey + End |link:#last clipboard[last clipboard]
436
437 |FenrirKey + PageUp |link:#previous clipboard[previous clipboard]
438
439 |FenrirKey + PageDown |link:#next clipboard[next clipboard]
440
441 |FenrirKey + Shift + C |link:#read current clipboard[current clipboard]
442
443 |FenrirKey + C |link:#copy marked to clipboard[copy marked text to
444 clipboard]
445
446 |FenrirKey + V |link:#paste clipboard[paste clipboard contents]
447
448 |FenrirKey + F5 |link:#import clipboard from file[import clipboard from
449 file]
450
451 |FenrirKey + Alt + Shift +C |link:#export clipboard to file[export
452 clipboard to file]
453
454 |FenrirKey + CTRL + Shift + X |link:#Remove Marks[remove marks]
455
456 |FenrirKey + X |link:#Set mark[set mark]
457
458 |FenrirKey + Shift + X |link:#Get text between marks[announce marked
459 text]
460
461 |<Unbound> |export clipboard to X
462
463 |link:#Window mode[Window mode] |
464
465 |FenrirKey + CTRL + 8 |link:#Create Window[set window application]
466
467 |2 * FenrirKey + CTRL + 8 |link:#Remove Window[clear window application]
468
469 |FenrirKey + Semicolon |link:#last incoming[read last incoming]
470
471 |link:/#Quick Settings/ toggle or switch[Quick settings: toggle or
472 switch] |
473
474 |Compose + L |link:#switch language[switch language]
475
476 |FenrirKey + F3 |link:#toggle sound[toggles sound]
477
478 |FenrirKey + F4 |link:#toggle speech[toggles speech]
479
480 |FenrirKey + Enter |link:#disable speech temporarily[temporarily
481 disables speech]
482
483 |FenrirKey + Shift + CTRL + P |link:#toggle punctuation level[toggles
484 punctuation level]
485
486 |FenrirKey + RightBrace |link:#toggle auto spell check[toggle auto spell
487 check]
488
489 |FenrirKey + Shift + Enter |link:#toggle output[toggles output]
490
491 |FenrirKey + Shift + E |link:#toggle emoticons[toggles emoticons]
492
493 |FenrirKey + Enter |link:#toggle auto read[toggles auto read]
494
495 |FenrirKey + CTRL + T |link:#toggle auto time[toggles auto time]
496
497 |FenrirKey + Y |link:#toggle highlight tracking[toggles highlight
498 tracking]
499
500 |FenrirKey + Q |link:#quit Fenrir[quits fenrir]
501
502 |FenrirKey + T |link:#Time[Announce time]
503
504 |FenrirKey + T +T |link:#Date[Announce date]
505
506 |link:/#Quick Settings/ speech and sound[Quick Settings: speech and
507 sound] |
508
509 |FenrirKey + Up |link:#increase speech volume[increase speech volume]
510
511 |FenrirKey + Down |link:#decrease speech volume[decrease speech volume]
512
513 |FenrirKey + Right |link:#increase speech rate[increase speech rate]
514
515 |FenrirKey + Left |link:#decrease speech rate[decrease speech rate]
516
517 |FenrirKey + Alt + Right |link:#increase speech pitch[increase speech
518 pitch]
519
520 |FenrirKey + Alt + Left |link:#decrease speech pitch[decrease speech
521 pitch]
522
523 |FenrirKey + Alt + Up |link:#increase sound volume[increase sound
524 volume]
525
526 |FenrirKey + Alt + Down |link:#decrease sound volume[decrease sound
527 volume]
528
529 |FenrirKey + CTRL + Up |increases Alsa volume
530
531 |FenrirKey + CTRL + Down |decreases Alsa volume
532
533 |link:#Spellchecker[Spell checker] |
534
535 |FenrirKey + S |link:#spell check[spell check]
536
537 |FenrirKey + S +S |link:#add word to spell check[add word to spell
538 check]
539
540 |FenrirKey + Shift + S |link:#removes word from spell check[removes word
541 from spell check]
542
543 |FenrirKey + Backspace |link:#forward keypress[forward keypress]
544 |===
545
546 === General
547
548 ==== quit Fenrir
549
550 Just stops fenrir.
551
552 ==== shut up
553
554 Interrupt the current spoken.
555
556 === Review Modes
557
558 Fenrir provides a virtual cursor, with it you can navigate all over the
559 screen without changing the text cursor. +
560 Using the review feature will open the review mode automatically. +
561 The review cursor always starts from the text cursor. Attention: after
562 using the review mode, the review cursor will stay open until you use
563 the `+exit review+` shortcut. +
564 Think when using clipboard operations and similar. The review cursor is
565 always preferred over the text cursor. +
566 Fenrir sounds a bell sound if the used review command jumps to another
567 line or end of screen.
568
569 ==== exit review
570
571 You can leave the review mode by pressing the `+exit review+` shortcut.
572
573 ==== review bottom
574
575 Set the review cursor to first column in the last line.
576
577 ==== review top
578
579 Set the review cursor to the first column in the first line
580
581 ==== review current line
582
583 Set the review cursor to the beginn of the the current line and review
584 it.
585
586 ==== review previous line
587
588 Set the review cursor to the previous line and review it.
589
590 ==== review next line
591
592 Set the review cursor to the next line and review it.
593
594 ==== review line beginning
595
596 Set the review cursor to the begin of the current line
597
598 ==== review line ending
599
600 Set the review cursor to the end of the current line
601
602 ==== review line first character
603
604 Set the review cursor the first char (that is not space) in the current
605 line and review it.
606
607 ==== review line last character
608
609 Set the review cursor the last char (that is not space) in the current
610 line and review it.
611
612 ==== review current word
613
614 Sets the review cursor to the beginning of the current word and review
615 it.
616
617 ==== review previous word
618
619 Sets the review cursor to the beginning of the previous word and review
620 it.
621
622 ==== review next word
623
624 Sets the review cursor to the beginning of the next word and review it.
625
626 ==== review current word phonetic
627
628 Sets the review cursor to the beginning of the current word and spell it
629 phonetic.
630
631 ==== review previous word phonetic
632
633 Sets the review cursor to the beginning of the previous word and spell
634 it phonetic.
635
636 ==== review next word phonetic
637
638 Sets the review cursor to the beginning of the next word and spell it
639 phonetic.
640
641 ==== review current character
642
643 Does not change the review cursor. Just announce the current char.
644
645 ==== review previous character
646
647 Sets review cursor to the previous column and review it
648
649 ==== review next character
650
651 Sets review cursor to the next column and review it
652
653 ==== review current character phonetic
654
655 Does not change the review cursor. Just announce the current char
656 phonetic.
657
658 ==== review previous character phonetic
659
660 Sets review cursor to the previous column and announce the char
661 phonetic.
662
663 ==== review next character phonetic
664
665 Sets review cursor to the next column and announce the char phonetic.
666
667 ==== review up
668
669 Set the review cursor in the same column one line above the current one
670 and review it.
671
672 ==== review down
673
674 Set the review cursor in the same column one line below the current one
675 and review it. A mark defines a point of origin or end to prepare to
676 copy or paste a block of text. +
677 Examples where you need marks are:
678
679 * copy to clipboard
680 * set window application
681 * set bookmark 1 - X
682
683 ==== Set mark
684
685 How to set a mark:
686
687 . navigate with review or textcursor to the position you want to set the
688 mark. Attention: if a review cursor is set, that is the prefered. If you
689 want to use text cursor, be sure that you are not in review mode.
690 . press shortcut for `+set mark+`
691
692 you can set two marks (begin and end). Some commands allow some simpler
693 usecases just using the whole line if only one mark is set. you may want
694 to try this out.
695
696 ==== Get text between marks
697
698 To get the text that is currently between your marks press shortcut for
699 `+marked text+`. +
700 === Remove Marks === You can remove all current marks by pressing the
701 shortcut for `+remove marks+`. Changing the screen also removes the
702 marks.
703
704 === Screen Interaction
705
706 Fenrir provides several methods to interact with the current screen.
707
708 ==== forward keypress
709
710 This just forwards the next shortcut to the screen Fenrir shortcut or
711 not. This is useful if the currently pressed shortcut is also in use by
712 Fenrir.
713
714 ==== Clipboard
715
716 Fenrir provides a clipboard with multible items represented by a list.
717 You navigate throught the list and paste the selected clipboard.
718
719 ===== copy marked to clipboard
720
721 To copy something to the clipboard you need to set one or two marks. if
722 you set one mark, the text between the mark and your current cursor is
723 copied to clipboard. Setting two marks just copies the text between the
724 marks into the clipboard. If you copy something it is always placed as
725 the first item on your clipboard.
726
727 ===== clear clipboard
728
729 You can remove all items from the current clipboard by
730 `+clear clipboard+` functionality.
731
732 ===== first clipboard
733
734 This moves quick to the first item of the clipboard.
735
736 ===== last clipboard
737
738 This moves quick to the last item of the clipboard.
739
740 ===== previous clipboard
741
742 Go to previous item in the clipboard.
743
744 ===== next clipboard
745
746 Go to next item on the clipboard.
747
748 ===== read current clipboard
749
750 Read the content of the current item of the clipboard.
751
752 ===== paste clipboard
753
754 Pass whatever item is currently selected by first, last, prev or next
755 clipboard commands. if no special clipboard is selected the (last
756 copied) is used.
757
758 ===== export clipboard to file
759
760 This allows you to export the current clipboard to a configurable
761 filepath. This is useful to share the clipboard with a graphical
762 desktop.
763
764 ===== import clipboard from file
765
766 Import a clipboard from a configurable file. This is useful to share the
767 clipboard with a graphical desktop.
768
769 === Quick Settings: toggle or switch
770
771 Fenrir provides shortcuts to change settings temporarily and on the fly
772 without the need to permanently change the `+settings.conf+` file.
773
774 ==== switch language
775
776 switch between the languages listed in the line beginning with langages=
777 in `+setting.conf+` during run time. The next language after the current
778 one will be used.
779
780 ==== toggle braille
781
782 Enables and disables Braille. This is not persistent stored in your
783 `+settings.conf+` but during run time.
784
785 ==== toggle sound
786
787 Enables and disables sound. This is not persistent stored in your
788 `+settings.conf+` but during run time.
789
790 ==== toggle speech
791
792 Enables and disables speech. This is not persistent stored in your
793 `+settings.conf+` but during run time.
794
795 ==== disable speech temporarily
796
797 Disables the speech until next key press. it might be useful if you want
798 to listen to music or similar. As soon as a key is pressed it is going
799 to be enabled again.
800
801 ==== toggle punctuation level
802
803 Cycle between all available punctuation levels. This is not persistent
804 stored in your `+settings.conf+` but during run time.
805
806 ==== toggle auto spell check
807
808 Enables and disables automatic spellchecker (when typing). This is not
809 persistent stored in your `+settings.conf+` but during run time.
810
811 ==== toggle emoticons
812
813 Enables and disables emoticons. This is not persistent stored in your
814 `+settings.conf+` but during runtime.
815
816 ==== toggle output
817
818 Enables and disables all output at once (sound, Braille, speech). This
819 is not persistent stored in your `+settings.conf+` but during run time.
820
821 ==== toggle auto read
822
823 Enables and disables what is automatically spoken. This is not
824 persistent stored in your `+settings.conf+` but during run time.
825
826 ==== toggle auto time
827
828 Enables and disables auto time functionality. This is not persistent
829 stored in your `+settings.conf+` but during run time.
830
831 ==== toggle highlight tracking
832
833 Enables and disables highlight tracking. This is not persistent stored
834 in your `+settings.conf+` but during run time.
835
836 === Quick Settings: speech and sound
837
838 ==== increase speech volume
839
840 Increase the volume of the speech. This is not persistent stored in your
841 `+settings.conf+` but during runtime.
842
843 ==== decrease speech volume
844
845 Decrease the volume of the speech. This is not persistent stored in your
846 `+settings.conf+` but during runtime.
847
848 ==== increase speech rate
849
850 Increase the rate of the speech. This is not persistent stored in your
851 `+settings.conf+` but during runtime.
852
853 ==== decrease speech rate
854
855 Decrease the rate of the speech. This is not persistent stored in your
856 `+settings.conf+` but during runtime.
857
858 ==== increase speech pitch
859
860 Increase the pitch of the speech. This is not persistent stored in your
861 `+settings.conf+` but during runtime.
862
863 ==== decrease speech pitch
864
865 Decrease the pitch of the speech. This is not persistent stored in your
866 `+settings.conf+` but during runtime.
867
868 ==== increase sound volume
869
870 Increase the volume of the sound. This is not persistent stored in your
871 `+settings.conf+` but during runtime.
872
873 ==== decrease sound volume
874
875 Decrease the volume of the sound. This is not persistent stored in your
876 `+settings.conf+` but during runtime.
877
878 === Window Mode
879
880 Fenrir supports window mode, a window is a partial area of the screen.
881
882 ==== Create Window
883
884 To create a window you need to do the following:
885
886 . set a beginning mark (as the start of the window)
887 . set an end mark (where the window should end)
888 . press `+set window application+` shortcut.
889
890 Now Fenrir ignores anything outside of the window. +
891 === Remove Window === You can remove the window by pressing
892 `+the clear window application+` shortcut. Now Fenrir will read
893 everything on the screen again.
894
895 === Tracking Modes
896
897 Different types of tracking are currently supported See section
898 link:#Focus[Focus] in `+settings.conf+` for more information.
899
900 ==== Cursor Tracking
901
902 This follows the text cursor. This is the typical way an application
903 works. This is used by:
904
905 * almost any shell such as (Bash, Zsh, sh)
906 * vim
907 * nano
908 * emacs
909 * mutt
910 * tintin++
911
912 ==== Highlight Tracking
913
914 In some applications there are no text cursors. In those applications
915 cursor changes are represented by different colors or attributes
916 (underlined or bold). This mode tracks and announces these changes for
917 you. This is used by:
918
919 ....
920 * wifi-menu
921 * dialog
922 * alpine
923 ....
924
925 === Tutorial Mode
926
927 Fenrir provides a Tutorial mode. When you enter tutorial mode, screen
928 reader commands are intercepted and explained instead of executing them.
929 `+Arrow up+` and `+Arrow Down+` let you navigate through a list of all
930 available commands with shortcuts and description. Pressing escape
931 leaves the tutorial mode.
932
933 === Information
934
935 ==== Time
936
937 Announces the current Time.
938
939 ==== Date
940
941 Announces the current Date.
942
943 ==== Bookmarks
944
945 Bookmarks provide quick access to part of the screen without the need to
946 navigate to the area. By default Fenrir provides 10 bookmarks. Those can
947 be set and accessed via shortcut. This is useful for status lines or
948 other information where the position does not change.
949
950 ===== set Bookmark <n>
951
952 You need to set the bookmark first. For that you have to set one or two
953 lines for use.
954
955 . Set marks (one or two)
956 . press shortcut for `+set bookmark <n>+`. <n> represents the number 1 -
957 10 (set bookmark 0 for the tenth bookmark).
958
959 ===== read Bookmark <n>
960
961 If a bookmark is set you can access the area just by pressing the
962 `+bookmark <n>+` shortcut. <n> represents the number 1 - 10. Bookmarks
963 are dynamic. That means the content changes with the screen.
964
965 ===== clear Bookmark <n>
966
967 to remove a bookmark just press the `+clear bookmark <n>+` shortcut. <n>
968 represents the number 1 - <n>. Afterward the bookmark is no longer
969 available.
970
971 ==== cursor position
972
973 You can get information about the current cursor and its position by
974 using the "cursor position" functionality.
975
976 ==== indent current line
977
978 Announce the current indent level of the current line. It represents the
979 number of trailing spaces of the line.
980
981 ==== current screen
982
983 Reads all the current screen from the beginning to the end.
984
985 ==== current screen before cursor
986
987 Reads current screen from the beginning of the screen to the current
988 cursor position.
989
990 ==== current screen after cursor
991
992 Read anything after current cursor position to the end.
993
994 ==== cursor read to end of line
995
996 Read from the current cursor position to the end of the current line.
997
998 ==== cursor column
999
1000 Read the current X position of a cursor (column of the current line).
1001
1002 ==== cursor line number
1003
1004 Read the current Y position of a cursor (line number).
1005
1006 ==== present first line
1007
1008 Reads just the first line. this is maybe useful for status information.
1009
1010 ==== present last line
1011
1012 Presets the last line. This is maybe useful for status information.
1013
1014 ==== last incoming
1015
1016 Repeat the last automatically incoming text.
1017
1018 === Input
1019
1020 ==== Echo
1021
1022 Fenrir provides different methods of echoing content:
1023
1024 * Word: Will speak each word after you push space
1025 * Character: speak any letter you type on the screen
1026 * Delete Character: speaks the character prior to the cursor when you
1027 push backspace
1028
1029 ==== Silence on Key press
1030
1031 ==== Spellchecker
1032
1033 Fenrir has a built-in spellchecker, it can invoke automatically while
1034 typing or be called by a shortcut. Commands to add or remove the current
1035 word to the dictionary are included. As using the spellchecker is
1036 enhanced usage. You will need dictionary aspell-<language>. See section
1037 link:#General[General] in `+settings.conf+` for more information.
1038
1039 ===== spell check
1040
1041 Invokes the spellcheck on the word that contains the Review or text
1042 cursor.
1043
1044 ===== add word to spell check
1045
1046 Adds the word under the Review or Text cursor to the dictionary.
1047
1048 ===== removes word from spell check
1049
1050 Removes the word under the Review or Text cursor from the dictionary.
1051
1052 === Announcements
1053
1054 ==== Emoticons
1055
1056 If you want to replace ":)" emoticons with "smile" in speech you can use
1057 this feature. It can be toggled on or off. You can define emoticons in a
1058 dictionary, please see Emoticon Dictionary. See section
1059 link:#General[General] in `+settings.conf+` to see how to enable or
1060 disable this feature.
1061
1062 ==== Time
1063
1064 Announce the time at periodical increments, To track the time easily.
1065 You can define 2 different ways of time announcements.
1066
1067 . periodic
1068 . on fix minutes
1069
1070 The settings proposed below can be implemented editing in the
1071 link:#Configuration file[configuration file]
1072
1073 Example periodic, every 20 minutes "delaySec=20":
1074
1075 ....
1076 [time]
1077 enabled=True
1078 presentTime=True
1079 presentDate=True
1080 delaySec=20
1081 onMinutes=
1082 announce=True
1083 interrupt=False
1084 ....
1085
1086 Example on fix minutes in an hour. example every quarter "delaySec=0"
1087 and "onMinutes=00,15,30,45":
1088
1089 ....
1090 [time]
1091 enabled=True
1092 presentTime=True
1093 presentDate=True
1094 #delaySec is respected before onMinutes so it need to be set to 0
1095 delaySec=0
1096 onMinutes=00,15,30,45
1097 announce=True
1098 interrupt=False
1099 ....
1100
1101 === Dictionary
1102
1103 You can make use of different kinds of built-in dictionary's. A
1104 dictionary has a name and list of keys and values separated by :===:
1105 Example to be set in the link:#Configuration file[configuration file]
1106
1107 ....
1108 [customDict]
1109 Chrys:===:Chrys is cool
1110 lollipop:===:lolli
1111 ....
1112
1113 that means that every instance "chrys" is displayed, speech will say
1114 Chrys is cool. "lollipop" is spoken as "lolli". Before making changes to
1115 a dictionary we recommend making a backup of your current dictionary in
1116 case future updates overwrite your local changes.
1117
1118 ==== Punctuation
1119
1120 The default punctuation settings are recorded in thd directory
1121 /etc/fenrirscreenreader/punctuation/default.conf
1122
1123 ===== Level
1124
1125 The punctuation level dict contains lists with "what punctuation is
1126 spoken in what level". the default one looks like this:
1127
1128 ....
1129 [levelDict]
1130 none:===:
1131 some:===:.-$~+*-/\@
1132 most:===:.,:-$~+*-/\@!#%^&*()[]}{<>;
1133 all:===:!"#$%& \'()*+,-./:;<=>?@[\\]^_`{|}~
1134 ....
1135
1136 the level "none" has no values. so it should not speak any punctuation
1137 (sadly this is not respected by every TTS system) if "some" is the
1138 current level the following are spoken: dot dash dollar tilde plus star
1139 slash backslash at. same for most and all, you can add new levels. if
1140 you cycle punctuation levels they are recognized. the default
1141 punctuation level is set in settings.conf. The default is "some".
1142
1143 ===== Punctuation
1144
1145 The punctuation dictionary "[punctDict]" contains how the punctuation is
1146 spoken. Example:
1147
1148 ....
1149 [punctDict]
1150 _:===:line
1151 ....
1152
1153 speaks an _ as "line".
1154
1155 ....
1156 [punctDict]
1157 _:===:underscore
1158 ....
1159
1160 speaks an _ as underscore. for question mark an ? is appended to the
1161 word that the TTS system can announce the question correctly.
1162
1163 ==== Custom
1164
1165 The dict "[customDict]" is just for your own use, it just replace the
1166 key with the value without any special functionality. This might be used
1167 to fix incorrectly spoken words, make words more common, shorter or just
1168 for fun. :)
1169
1170 ==== Emoticons
1171
1172 The Emoticons dictionary "[emoticonDict]" by default contains some
1173 emoticons. it can replace ":)" with "smile" or "XD" with "loool" Making
1174 chat more colorful. A nice feature with this dictionary is that you can
1175 toggle the substitution on or off during run time or in settings.conf.
1176 This is useful because while doing programming or other serious work you
1177 want to hear colons and perryns not smiles.
1178
1179 == Configuration
1180
1181 You can configure Fenrir in the following places (ordered by priority):
1182
1183 . Commandline Parameters `+-o+` see link:#Set settings options[Set
1184 settings options]
1185 . /etc/fenrirscreenreader/settings/settings.conf see
1186 link:#Settings[Settings]
1187 . hard coded defaults
1188
1189 === Commandline Arguments
1190
1191 Fenrir supports several command-line options:
1192
1193 ....
1194 fenrir [OPTIONS]
1195 ....
1196
1197 ==== Available Options
1198
1199 `+-h, --help+`::
1200 Show help message and exit.
1201
1202 `+-v, --version+`::
1203 Show version information and exit.
1204
1205 `+-f, --foreground+`::
1206 Run Fenrir in the foreground instead of as a daemon.
1207
1208 `+-s, --setting SETTING-FILE+`::
1209 Path to a custom settings file.
1210
1211 `+-o, --options SECTION#SETTING=VALUE;..+`::
1212 Override settings file options (see below for details).
1213
1214 `+-d, --debug+`::
1215 Enable debug mode. Debug information will be logged.
1216
1217 `+-p, --print+`::
1218 Print debug messages to screen in addition to logging them.
1219
1220 `+-F, --force-all-screens+`::
1221 Force Fenrir to respond on all screens, ignoring the ignore_screen setting. This temporarily overrides screen filtering for the current session.
1222
1223 `+-i, -I, --ignore-screen <SCREEN>+`::
1224 Ignore specific screen(s). Can be used multiple times to ignore multiple screens. This is equivalent to setting ignore_screen in the configuration file and will be combined with any existing ignore settings.
1225
1226 ==== Set settings options
1227
1228 You can specify options that overwrite the setting.conf. This is done
1229 with `+-o <list of options>+` parameter. The list of options have the
1230 following syntax
1231
1232 ....
1233 fenrir -o "section#setting=value;section#setting=value"
1234 ....
1235
1236 For example changing the sound driver to gstreamer and disabling Braille
1237
1238 ....
1239 fenrir -o "sound#driver=gstreamerDriver;braille#enabled=False=False"
1240 ....
1241
1242 or change the debug level to verbose
1243
1244 ....
1245 fenrir -o "general#debugLevel=3"
1246 ....
1247
1248 Example using force all screens option:
1249
1250 ....
1251 fenrir -F
1252 ....
1253
1254 You can find the available sections and variables here #Settings See
1255 Syntax link:#settings.conf syntax[#settings.conf syntax]
1256
1257 === Remote Control
1258
1259 Fenrir includes a powerful remote control system that allows external applications and scripts to control Fenrir through Unix sockets or TCP connections.
1260
1261 ==== Configuration
1262
1263 Enable remote control in settings.conf:
1264
1265 ....
1266 [remote]
1267 enable=True
1268 driver=unixDriver
1269 enable_settings_remote=True
1270 enable_command_remote=True
1271 ....
1272
1273 ==== Using socat with Unix Sockets
1274
1275 The `+socat+` command provides the easiest way to send commands to Fenrir:
1276
1277 ===== Instance Discovery
1278
1279 ....
1280 # List registered Fenrir instances and their socket paths
1281 echo "ls" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1282 ....
1283
1284 In X terminal mode (`+fenrir -x+`), multiple Fenrir instances can run at the
1285 same time. Each instance has a private socket at
1286 `+/tmp/fenrirscreenreader-<pid>.sock+`, and one instance may also own the
1287 standard control socket. Use `+ls+` or `+command ls+` on the standard socket to
1288 find the private socket for a specific instance. Commands sent to the standard
1289 socket are handled by its owner when possible; otherwise they are forwarded to a
1290 registered private socket, preferring the sender's Fenrir ancestor when one can
1291 be found.
1292
1293 ===== Basic Speech Control
1294
1295 ....
1296 # Interrupt current speech
1297 echo "command interrupt" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1298
1299 # Speak custom text
1300 echo "command say Hello, this is a test message" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1301
1302 # Temporarily disable speech (until next keystroke)
1303 echo "command tempdisablespeech" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1304 ....
1305
1306 ===== Settings Control
1307
1308 ....
1309 # Enable highlight tracking mode
1310 echo "setting set focus#highlight=True" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1311
1312 # Change speech rate
1313 echo "setting set speech#rate=0.8" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1314
1315 # Change punctuation level (none/some/most/all)
1316 echo "setting set general#punctuation_level=all" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1317
1318 # Voice and TTS control
1319 echo "setting set speech#voice=en-us+f3" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1320
1321 # Multiple settings at once
1322 echo "setting set speech#rate=0.8;sound#volume=0.7;general#punctuation_level=most" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1323
1324 # Reset all settings to defaults
1325 echo "setting reset" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1326 ....
1327
1328 ===== Clipboard Operations
1329
1330 ....
1331 # Place text into clipboard
1332 echo "command clipboard This text will be copied to clipboard" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1333
1334 # Export clipboard to file
1335 echo "command exportclipboard" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1336 ....
1337
1338 ===== Application Control
1339
1340 ....
1341 # Quit Fenrir
1342 echo "command quitapplication" | socat - UNIX-CLIENT:/tmp/fenrirscreenreader-daemon.sock
1343 ....
1344
1345 ==== Command Reference
1346
1347 ===== Available Commands
1348
1349 *Speech Commands:*
1350
1351 * `+command say <text>+` - Speak the specified text
1352 * `+command interrupt+` - Stop current speech
1353 * `+command tempdisablespeech+` - Disable speech until next key press
1354 * `+ls+` / `+list+` / `+command ls+` / `+command list+` - List registered Fenrir instances
1355
1356 *Clipboard Commands:*
1357
1358 * `+command clipboard <text>+` - Add text to clipboard
1359 * `+command exportclipboard+` - Export clipboard to file
1360
1361 *Window Commands:*
1362
1363 * `+command window <x1> <y1> <x2> <y2>+` - Define window area
1364 * `+command resetwindow+` - Reset to full screen
1365
1366 *VMenu Commands:*
1367
1368 * `+command vmenu <menu_path>+` - Set virtual menu context
1369 * `+command resetvmenu+` - Reset virtual menu
1370
1371 *Application Commands:*
1372
1373 * `+command quitapplication+` - Quit Fenrir
1374
1375 ===== Available Settings
1376
1377 *Settings Commands:*
1378
1379 * `+setting set <section>#<key>=<value>+` - Set configuration value
1380 * `+setting reset+` - Reset all settings to defaults
1381 * `+setting save [path]+` - Save current settings
1382
1383 *Key Settings You Can Control:*
1384
1385 *Speech Settings:*
1386 * `+speech#enabled=True/False+` - Enable/disable speech
1387 * `+speech#rate=0.1-1.0+` - Speech rate (speed)
1388 * `+speech#pitch=0.1-1.0+` - Speech pitch (tone)
1389 * `+speech#volume=0.1-1.0+` - Speech volume
1390 * `+speech#voice=voice_name+` - Voice selection (e.g., "en-us+f3")
1391 * `+speech#module=module_name+` - TTS module (e.g., "espeak-ng")
1392
1393 *General Settings:*
1394 * `+general#punctuation_level=none/some/most/all+` - Punctuation verbosity
1395 * `+general#auto_spell_check=True/False+` - Automatic spell checking
1396 * `+general#emoticons=True/False+` - Enable emoticon replacement
1397
1398 *Sound Settings:*
1399 * `+sound#enabled=True/False+` - Enable/disable sound
1400 * `+sound#volume=0.1-1.0+` - Sound volume
1401
1402 *Focus Settings:*
1403 * `+focus#cursor=True/False+` - Follow text cursor
1404 * `+focus#highlight=True/False+` - Follow text highlighting
1405
1406 *Keyboard Settings:*
1407 * `+keyboard#char_echo_mode=0-2+` - Character echo (0=none, 1=always, 2=capslock only)
1408 * `+keyboard#word_echo=True/False+` - Echo complete words
1409
1410 *Screen Settings:*
1411 * `+screen#ignore_screen=1,2,3+` - TTY screens to ignore
1412
1413 ==== settings.conf syntax
1414
1415 the syntax of the link:#Settings[settings.conf] is quite simple and
1416 similar to a "*.ini" file, there are 4 different elements.
1417
1418 . Sections
1419 . Settings
1420 . Values
1421 . Comments
1422
1423 A comment starts with a # and is ignored by Fenrir.
1424
1425 ....
1426 # this is a comment
1427 ....
1428
1429 To group settings we have sections. A section can look like this:
1430
1431 ....
1432 [Section]
1433 ....
1434
1435 A setting looks like this:
1436
1437 ....
1438 settingName=Value
1439 ....
1440
1441 Example:
1442
1443 ....
1444 [sound]
1445 # Turn sound on or off:
1446 enabled=True
1447 # Select the driver used to play sounds, choices are genericDriver and gstreamerDriver.
1448 # Sox is default.
1449 driver=genericDriver
1450 ....
1451
1452 === Settings
1453
1454 ==== Sound
1455
1456 The sound is configured in section `+[sound]+`.
1457
1458 Turn sound on or off:
1459
1460 ....
1461 enabled=True
1462 ....
1463
1464 Values: on=`+True+`, off=`+False+`
1465
1466 Select the driver used to play sounds. The genericDriver using Sox is
1467 the default.
1468
1469 ....
1470 driver=genericDriver
1471 ....
1472
1473 Available Drivers:
1474
1475 * `+genericDriver+` using the generic driver, for Fenrir <1.5 just use
1476 `+generic+`
1477 * `+gstreamerDriver+` using the gstreamer, for Fenrir <1.5 just use
1478 `+gstreamer+`
1479
1480 These are the pack of sounds used for sound icons.
1481
1482 ....
1483 theme=default
1484 ....
1485
1486 By default we ship two sound packs.
1487
1488 . `+default+` opus encoded, for newer Sox versions
1489 . `+default-wav+` wav encoded, just for compatibility
1490
1491 Sound packs are located at /usr/share/sounds/fenrirscreenreader/
1492 User sound packs in `+~/.local/stormux/fenrir/sounds/+` are loaded before
1493 system sound packs.
1494
1495 Sound volume controls how loud the sounds for your selected sound pack
1496 are.
1497
1498 ....
1499 volume=1.0
1500 ....
1501
1502 Values: `+0.0+` is quietest, `+1.0+` is loudest.
1503
1504 ===== Generic Driver
1505
1506 The generic sound driver uses shell commands for play sound and
1507 frequencies.
1508
1509 `+generic_play_file_command+` defines the command that is used to play a
1510 sound file.
1511
1512 ....
1513 generic_play_file_command=<your command for playing a file>
1514 ....
1515
1516 `+generic_frequency_command+` defines the command that is used playing
1517 frequencies.
1518
1519 ....
1520 generic_frequency_command=<your command for playing a frequence>
1521 ....
1522
1523 The following variables are substituted in `+generic_play_file_command+`
1524 and `+generic_frequency_command+`:
1525
1526 * `+fenrir_volume+` = the current volume setting
1527 * `+fenrir_sound_file+` = the sound file for an sound icon
1528 * `+fenrir_frequency+` = the frequency to play
1529 * `+fenrir_duration+` = the duration of the frequency
1530
1531 Example generic_play_file_command (default)
1532
1533 ....
1534 generic_play_file_command=play -q -v fenrir_volume fenrir_sound_file
1535 ....
1536
1537 Example generic_frequency_command (default)
1538
1539 ....
1540 generic_frequency_command=play -q -v fenrir_volume -n -c1 synth fenrir_duration sine fenrir_frequency
1541 ....
1542
1543 ==== Speech
1544
1545 Speech is configured in section `+[speech]+`. Turn speech on or off:
1546
1547 ....
1548 enabled=True
1549 ....
1550
1551 Values: on=`+True+`, off=`+False+`
1552
1553 # Select speech driver, options are speechdDriver (default),
1554 genericDriver, dectalkDriver, dectalkUsbDriver, litetalkDriver,
1555 doubletalkDriver or tripletalkDriver: driver=speechdDriver
1556 #driver=genericDriver
1557 #driver=dectalkDriver
1558 #driver=dectalkUsbDriver
1559 #driver=litetalkDriver
1560 #driver=doubletalkDriver
1561 #driver=tripletalkDriver
1562
1563 This Selects the driver used to generate speech output.
1564
1565 We recommend top keep the default in Slint to benefit of all available
1566 synthesizers and associated voices
1567
1568 The rate selects how fast Fenrir will speak.
1569
1570 ....
1571 rate=0.5
1572 ....
1573
1574 Values: Range Minimum:`+0.0+` is slowest, Maximum:`+1.0+` is fastest.
1575
1576 Pitch controls the pitch of the voice.
1577
1578 ....
1579 pitch=0.5
1580 ....
1581
1582 Values: Range Minimum:`+0.0+` is lowest, Maximum:`+1.0+` is highest.
1583
1584 A Pitch for capital letters can be set.
1585
1586 ....
1587 capital_pitch=0.9
1588 ....
1589
1590 Values: Range Minimum:`+0.0+` is lowest, Maximum:`+1.0+` is highest.
1591
1592 The Volume controls the loudness of the voice.
1593
1594 ....
1595 volume=1.0
1596 ....
1597
1598 Values: Range Minimum:`+0.0+` is quietest, Maximum:`+1.0+` is loudest.
1599
1600 The Module sets here selects the synthesizer to use by
1601 speech-dispatcher. If not set, the one set in
1602 /etc/speech-dispatcher/speechd.conf will be used. +
1603 TO list the available modules, type:
1604
1605 ....
1606 spd-list -s
1607 ....
1608
1609 To be able to switch languages on the fly, set below a module that
1610 supports all languages between which you want to be able to switch. +
1611 To make this choice type:
1612
1613 ....
1614 spd-list
1615 ....
1616
1617 Example of module setting:
1618
1619 ....
1620 module=espeak-ng
1621 ....
1622
1623 Voice selects the voice you want to use. This setting won't hold if you
1624 switch languages on the fly (see below) or also set the language. +
1625 To find out which voices are available, for a given module, type:
1626
1627 ....
1628 spd-say -o <module> -L
1629 ....
1630
1631 For instance:
1632
1633 ....
1634 spd-say -o rhvoice -L
1635 ....
1636
1637 If you use the module espeak-ng or espak-ng-mbrola-generic , you can
1638 also run:
1639
1640 ....
1641 espeak-ng-list-voices
1642 ....
1643
1644 Example using the pico module:
1645
1646 ....
1647 voice=virginie
1648 ....
1649
1650 Languages lists the languages among which to switch pressing:
1651
1652 ....
1653 Compose+l
1654 ....
1655
1656 The Compose key is the one between AltrGr and Ctrl on the right of the
1657 space bar. +
1658 For the module in use, the languages available can be listed with
1659 typing:
1660
1661 ....
1662 spd-list -ls <module>
1663 ....
1664
1665 For instance:
1666
1667 ....
1668 spd-list -ls espeak-ng-mbrola-generic
1669 ....
1670
1671 Be careful: all languages listed below should be provided by the module
1672 in use, else switching languages on the fly won't be possible. Example
1673 using the pico module:
1674
1675 ....
1676 languages=en-GB fr-FR es-ES it-IT
1677 ....
1678
1679 You can also set the language to use by default, which doesn't need to
1680 be listed among the ones you might want to switch (but then you will
1681 need to restart fenrir to get it back). +
1682 It will supersede the voice that you might have also set. Example using
1683 the pico module:
1684
1685 ....
1686 language=de-DE
1687 ....
1688
1689 Serial hardware speech drivers use a serial device. Set an explicit path.
1690
1691 ....
1692 hardware_device=/dev/ttyACM0
1693 hardware_device=/dev/ttyUSB0
1694 hardware_device=/dev/ttyS0
1695 ....
1696
1697 Hardware speech drivers use 9600 baud by default.
1698
1699 ....
1700 hardware_baud_rate=9600
1701 ....
1702
1703 The `+doubletalkDriver+` targets DoubleTalk LT-style serial devices. It does
1704 not support the internal DoubleTalk PC ISA card.
1705 The `+dectalkUsbDriver+` autodetects the native Access Solutions DECtalk USB,
1706 USB ID `+0dd0:2001+`. It requires PyUSB and a libusb backend and ignores the
1707 serial device and baud-rate settings. From a source checkout, install the USB
1708 dependencies with `+python3 -m pip install '.[dectalk_usb]'+`. A non-root
1709 Fenrir process needs a local udev rule granting its account read/write access
1710 to `+0dd0:2001+`; do not make the device world-writable. Other USB hardware
1711 speech synthesizers are supported only when Linux exposes them as a serial tty
1712 such as `+/dev/ttyACM0+` or `+/dev/ttyUSB0+`.
1713
1714 Read new text as it occurs auto_read_incoming=True Values: on=`+True+`,
1715 off=`+False+`
1716
1717 ==== Screen
1718
1719 The settings for screen access are configured in the `+[screen]+`
1720 section. `+vcsaDriver+` is used for Linux TTYs, and `+ptyDriver+` is
1721 used by X11 terminal mode.
1722
1723 The driver to get the information from the screen:
1724
1725 ....
1726 driver=vcsaDriver
1727 ....
1728
1729 Available Drivers:
1730
1731 * `+vcsaDriver+` using the VCSA driver (for TTYs), for Fenrir <1.5 just
1732 use `+vcsa+`
1733
1734 The encoding of the screen
1735
1736 ....
1737 encoding=cp850
1738 ....
1739
1740 Values:`+cp850+` is used for Western languages like USA or Europe.
1741
1742 The driver updates Fenrir with changes on the screen.
1743
1744 ....
1745 screen_update_delay=0.05
1746 ....
1747
1748 Values: in Seconds
1749
1750 If you want Fenrir to not be active on any screen for various reasons.
1751 Maybe an X server or Wayland is running on that screen. You can make
1752 Fenrir ignore it or multiple screens seperated by `+,+` with:
1753
1754 ....
1755 suspendingScreen=
1756 ....
1757
1758 Values: Depends on driver:
1759
1760 * VCSA: the number of the TTY. TTY6 is `+6+`.
1761
1762 Example ignore TTY1 and TTY2:
1763
1764 ....
1765 suspendingScreen=1,2
1766 ....
1767
1768 There is also the ability to let Fenrir auto detect screens that are
1769 running an X server. So Screens running an GUI can be ignored.
1770
1771 ....
1772 autodetectSuspendingScreen=True
1773 ....
1774
1775 Values: on=`+True+`, off=`+False+`
1776
1777 ==== Keyboard
1778
1779 The settings for keyboard and input related configuration is located in
1780 the section `+[keyboard]+` of the `+settings.conf+` file.
1781
1782 Select the driver used for grabbing keybord input and for recieving
1783 shortcuts.
1784
1785 ....
1786 driver=evdevDriver
1787 ....
1788
1789 Values: Text, available Driver Available Drivers:
1790
1791 * `+evdevDriver+` uses the evdev input system of linux, for Fenrir <1.5
1792 just use `+evdev+`
1793
1794 You can let Fenrir know about what input devices are to be used.
1795
1796 ....
1797 device=ALL
1798 ....
1799
1800 Values:
1801
1802 * `+ALL+` use all devices with key capabilities.
1803 * `+NOMICE+` Exclude mices from handling.
1804 * `+<Device Name>+` just use the device with the given name.
1805
1806 Gives Fenrir exclusive access to the keyboard and lets it control
1807 keystrokes. This is needed to intercept Fenrir related shortcuts.
1808
1809 ....
1810 grab_devices=True
1811 ....
1812
1813 Values: on=`+True+`, off=`+False+`
1814
1815 The following makes sense if you are using a second screenreader and
1816 want to have some hooked events. Fenrir ignores all shortcuts then.
1817
1818 ....
1819 ignore_shortcuts=False
1820 ....
1821
1822 Values: on=`+True+`, off=`+False+`
1823
1824 The current keyboard layout used for shortcuts.
1825
1826 ....
1827 keyboard_layout=desktop
1828 ....
1829
1830 Values: An absolute Path to a Keyboard definition file or a Filename
1831 without extension located in `+/etc/fenrirscreenreader/keyboard+`
1832
1833 Announce characters while typing.
1834
1835 ....
1836 charEcho=False
1837 ....
1838
1839 Values: on=`+True+`, off=`+False+`
1840
1841 Announce deleted characters
1842
1843 ....
1844 char_delete_echo=True
1845 ....
1846
1847 Values: on=`+True+`, off=`+False+`
1848
1849 Announce word after pressing space
1850
1851 ....
1852 word_echo=False
1853 ....
1854
1855 Values: on=`+True+`, off=`+False+`
1856
1857 Interrupt speech on any keypress
1858
1859 ....
1860 interrupt_on_key_press=False
1861 ....
1862
1863 Values: on=`+True+`, off=`+False+`
1864
1865 You can filter the keys that speech should interrupt
1866
1867 ....
1868 interrupt_on_key_press_filter=
1869 ....
1870
1871 Values: (List) empty = all keys, otherwise interrupt with specified keys
1872
1873 The timeout that is used for double tap shortcuts
1874
1875 ....
1876 double_tap_timeout=0.2
1877 ....
1878
1879 Values: Seconds
1880
1881 ==== General
1882
1883 Overall settings can be configured from the section `+[general]+`.
1884
1885 Set the current debug level:
1886
1887 ....
1888 debugLevel=1
1889 ....
1890
1891 Values: off=0, error=1, warning=2, info=3
1892
1893 the current punctuation and dict file in use:
1894
1895 ....
1896 punctuation_profile=default
1897 ....
1898
1899 Values: Text, see available profiles in `+/etc/fenrirscreenreader/punctuation+` or
1900 in `+sourceTree/config/punctuation+`
1901
1902 The current punctuation level in use:
1903
1904 ....
1905 punctuation_level=some
1906 ....
1907
1908 Values: Text, See available levels in the used punctuation file.
1909
1910 Respect pause for punctuations:
1911
1912 ....
1913 respect_punctuation_pause=True
1914 ....
1915
1916 Values: on=`+True+`, off=`+False+`
1917
1918 Add a pause on Line break:
1919
1920 ....
1921 new_line_pause=True
1922 ....
1923
1924 Values: on=`+True+`, off=`+False+`
1925
1926 Specify the path where the clipboard should be exported to. See
1927 link:#export clipboard to file[export clipboard to file]. The variable
1928 `+$user+` is replaced by the current logged username.
1929
1930 ....
1931 [clipboard]
1932 clipboard_export_path=/tmp/fenrirClipboard
1933 ....
1934
1935 Values: Text, Systemfilepath
1936
1937 The number of available clipboards:
1938
1939 ....
1940 [clipboard]
1941 number_of_clipboards=10
1942 ....
1943
1944 Values: Integer, 1 - 999
1945
1946 Replace emoticons like :) or ;) with text insertions:
1947
1948 ....
1949 emoticons=True
1950 ....
1951
1952 Values: on=`+True+`, off=`+False+`
1953
1954 Define the current Fenrir keys:
1955
1956 ....
1957 fenrir_keys=KEY_KP0,KEY_META,KEY_INSERT
1958 ....
1959
1960 Values, Text list, separated by comma.
1961
1962 Define the current script keys:
1963
1964 ....
1965 scriptKey=KEY_COMPOSE
1966 ....
1967
1968 Values, Text list, separated by comma.
1969
1970 The time format to be used for (time command) output:
1971
1972 ....
1973 timeFormat=%H:%M:%P
1974 ....
1975
1976 Values: see python specification for
1977 https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior[datetime.strftime]
1978
1979 The date format to be used for (date command) output:
1980
1981 ....
1982 dateFormat=%A, %B %d, %Y
1983 ....
1984
1985 Values: see python specification for
1986 https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior[datetime.strftime]
1987
1988 Enable or Disable spellcheck whilst typing:
1989
1990 ....
1991 auto_spell_check=True
1992 ....
1993
1994 Values: on=`+True+`, off=`+False+`
1995
1996 The use of the dictionary with spellcheck:
1997
1998 ....
1999 spell_check_language=en_US
2000 ....
2001
2002 Values: Text, see aspell dictionary's.
2003
2004 Folder Path for your scripts "scriptKey" functionality:
2005
2006 ....
2007 script_path=/usr/share/fenrirscreenreader/scripts
2008 ....
2009
2010 Values: Text, Existing path on file system. User scripts in
2011 `+~/.local/stormux/fenrir/+` are loaded before this configured path.
2012
2013 Override commands or create new ones without changing the Fenrir
2014 defaults:
2015
2016 ....
2017 command_path=/usr/share/fenrirscreenreader/commands
2018 ....
2019
2020 Values: Text, Existing path on file system. Subfolders in command_path
2021 are:
2022
2023 * `+commands+` = to create shortcut commands
2024 * `+onInput+` = executed while typing
2025 * `+onScreenChange+` = executed on change the screen (change from TTY4
2026 to TTY6)
2027 * `+onScreenUpdate+` = executed when the screen is captured
2028
2029 ==== Focus
2030
2031 The configuration for basic focus is in the section `+[focus]+`. Follow
2032 the text cursor:
2033
2034 ....
2035 cursor=True
2036 ....
2037
2038 Values: on=`+True+`, off=`+False+`
2039
2040 Follow highlighted text changes (Highlight Tracking):
2041
2042 ....
2043 highlight=False
2044 ....
2045
2046 Values: on=`+True+`, off=`+False+`
2047
2048 ==== Review
2049
2050 Configurations for the review mode are in the section `+[review]+`.
2051
2052 If "next word/ char" or "prev word/char" create a linebreak, announce
2053 it:
2054
2055 ....
2056 lineBreak=True
2057 ....
2058
2059 Values: on=`+True+`, off=`+False+`
2060
2061 If "next word/ char" or "prev word/char" cannot be performed because you
2062 reached the end of the screen, announce it:
2063
2064 ....
2065 endOfScreen=True
2066 ....
2067
2068 Values: on=`+True+`, off=`+False+`
2069
2070 Leave the review mode when pressing a key:
2071
2072 ....
2073 leaveReviewOnKeypress=False
2074 ....
2075
2076 Values: on=`+True+`, off=`+False+`
2077
2078 Leave the review mode when changing the screen (From TTY3 to TTY4):
2079
2080 ....
2081 leave_review_on_screen_change=True
2082 ....
2083
2084 Values: on=`+True+`, off=`+False+`
2085
2086 ==== Time
2087
2088 The automated time announcement is configured in the section `+[time]+`.
2089 Time announcement is disabled by default. Turn time announcement on or
2090 off:
2091
2092 ....
2093 enabled=True
2094 ....
2095
2096 Values: on=`+True+`, off=`+False+`
2097
2098 Should the time be announced:
2099
2100 ....
2101 presentTime=True
2102 ....
2103
2104 Values: on=`+True+`, off=`+False+`
2105
2106 Should the date be announced (just on date change):
2107
2108 ....
2109 presentDate=True
2110 ....
2111
2112 Values: on=`+True+`, off=`+False+`
2113
2114 Announce after a given period of seconds:
2115
2116 ....
2117 delaySec=0
2118 ....
2119
2120 Value: in Seconds, 0 = Deactivated
2121
2122 Announce after fixed minutes in an hour. if delaySec is >0 onMinutes is
2123 ignored:
2124
2125 ....
2126 onMinutes=00,30
2127 ....
2128
2129 Example every 15 minutes:
2130
2131 ....
2132 onMinutes=00,15,30,45
2133 ....
2134
2135 Just play a soundicon, (not interrupting):
2136
2137 ....
2138 announce=True
2139 ....
2140
2141 Values: on=`+True+`, off=`+False+`
2142
2143 Interrupt current speech for time announcement:
2144
2145 ....
2146 interrupt=False
2147 ....
2148
2149 Values: on=`+True+`, off=`+False+`
2150
2151 == Customization
2152
2153 === Scripting
2154
2155 Scripts can be in any language, bash, python, sh or others. Place your
2156 personal scripts in `+~/.local/stormux/fenrir/+`, or place system scripts in
2157 the directory /usr/share/fenrirscreenreader/scripts/ (the path is configurable
2158 in settings.conf). The script key is the
2159 applications key. Usually this key can be found on the keyboard located
2160 just left of the right most control key. When you name a script, the key
2161 name appears in the script seperated by the sequence [.underline]#-#.
2162 So, for example, if you have a python weather script you want assigned
2163 to the script key plus the letter w you would name the script
2164 ~/.local/stormux/fenrir/weather[.underline]##-##key_w.py
2165 Then, to access the script, simply press the script key and the letter
2166 w. Scripts must be executable. So, make sure to chmod 755 your script
2167 when you place it in the scripts directory. The script gets some
2168 parameters from fenrir when it is executed. So that information is
2169 available in your script then.
2170
2171 ==== Parameterlist
2172
2173 [cols=",",options="header",]
2174 |===
2175 |Parameter |Content
2176 |$1 |Username of the current logged in user
2177 |===
2178
2179 ==== Examples
2180
2181 Script that just speaks the current username when pressing ScriptKey +
2182 H. +
2183 File: `+/usr/share/fenrirscreenreader/scripts/helloWorld__-__key_h.sh+`:
2184
2185 ....
2186 #!/bin/bash
2187 echo $1
2188 ....
2189
2190 === Commands
2191
2192 You can place your own commands in
2193 "/usr/share/fenrirscreenreader/commands" (path is configurable in
2194 settings.conf). Commands are python files with a special scheme. You can
2195 assign them to a shortcut using the filename without an extension or
2196 place them in a hook trigger like OnInput or OnScreenChange. For further
2197 information see developer guide. Good Examples:
2198 https://git.stormux.org/storm/fenrir/src/branch/master/src/fenrirscreenreader/commands/commands/date.py["date.py"]
2199 (announce the Date),
2200 https://git.stormux.org/storm/fenrir/src/branch/master/src/fenrirscreenreader/commands/commands/shut_up.py["shut_up.py"]
2201 (interrupt output) the basic scheme for a command is as follows:
2202
2203 ....
2204 from core import debug
2205 ....
2206
2207 ....
2208 class command():
2209 def __init__(self):
2210 pass
2211 def initialize(self, environment):
2212 self.env = environment
2213 def shutdown(self):
2214 pass
2215 def getDescription(self):
2216 return _('No description found')
2217 def run(self):
2218 pass
2219 def setCallback(self, callback):
2220 pass
2221 ....
2222
2223 * https://git.stormux.org/storm/fenrir/src/branch/master/src/fenrirscreenreader/commands/command_template.py[Template
2224 lives here]
2225 * The class needs to have the name "command".
2226 * "initialize" is running once whilst loading the command.
2227 * "shutdown" is running on unload like the command (quit fenrir)
2228 * "getDescriptsion" just returns an string. That String is used in
2229 Tutorial Mode.
2230 * "run" is executed when the command is invoked. (shortcut is pressed,
2231 or trigger isn't running)
2232 * setCAllback is currently not used. and has no functionality yet.
2233
2234 == Troubleshooting
2235
2236 Below are fenric instructions that do not all apply to Slint.
2237
2238 Slint users may request help on the Slint mailing list.
2239
2240 === Fenrir does not start
2241
2242 . Have you installed all the dependencies
2243 link:#Support and Requirements[Support and Requirements]
2244 . Try using master, a lot of changes take place there to make Fenrir
2245 compatible with more systems
2246
2247 === Fenrir does not utilize the shortcuts
2248
2249 . Make sure you have python3-evdev installed
2250 . Use the latest Fenrir version
2251 . Make sure that Fenrir has permission to /dev/input/* and /dev/uinput
2252 (or run it as root)
2253
2254 === No sound at all
2255
2256 . Run the script to configure Pulseaudio once as root and once as your
2257 user. This will setup Pulseaudio but require a restart of Pulseaudio.
2258 The script is located in `+tools/configure_pulse.sh+`
2259 . Use ALSA
2260 . https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/[Configure
2261 Pulse system wide] (Not recommended)
2262 . Use gstreamerDriver: change `+settings.conf+` in the section `+sound+`
2263 the line `+driver=genericDriver+` to `+driver=gstreamerDriver+`
2264 . Use wave sound-icons: change `+settings.conf+` in the section
2265 `+sound+` the line `+theme=default+` to `+theme=default-wav+`
2266 . Use most current version of http://sox.sourceforge.net/[sox] with opus
2267 support
2268 . Try https://github.com/i-rinat/apulse[apulse] (not tested by myself
2269 but might work). Please give me feedback if you try it out.
2270
2271 === You get sound-icons but no speech
2272
2273 . If you are using speech-dispatcher run "spd-conf" once as user and as
2274 root.
2275 . You can test if speech-dispatcher works by invoking it as root +
2276 `+sudo spd-say "hello world"+`
2277
2278 === Bugreports and feature requests
2279
2280 Please report Bugs and feature requests to:
2281 https://git.stormux.org/storm/fenrir/issues
2282
2283 for bugs please provide a link:#Howto create a debug file[debug] file
2284 that shows the issue.
2285
2286 ==== How-to create a debug file
2287
2288 . Start fenrir in debug mode +
2289 `+sudo fenrir -d+`
2290 . Do your stuff to reproduce the problem
2291 . Stop fenrir (`+fenrirKey + q+`)
2292
2293 the debug file is located in `+/tmp/fenrir.log+`. If another Fenrir debug
2294 instance is already using it, check `+/tmp/fenrir2.log+`,
2295 `+/tmp/fenrir3.log+`, etc.
2296
2297 Please be as precise as possible to make it easy to solve the problem.