Debian Codegraph @

Documents/README.Introduction

raw
1 ~~~~~~~~~~~~~~~~~~~~~~
2 Introduction to BRLTTY
3 ~~~~~~~~~~~~~~~~~~~~~~
4
5 .. include:: prologue.rst
6
7 You can look up a full listing of all of your braille device's key bindings at:
8 `<https://brltty.app/doc/KeyBindings/index.html>`_
9
10 With one exception, this document applies to using BRLTTY with any braille device.
11 The exception is that, when key bindings are given,
12 it assumes that the braille device has a braille keyboard.
13 If it doesn't, then, as mentioned above,
14 you can look up your device's corresponding key bindings online.
15
16 Many *chords* (combining a dot key combination with the Space key) are toggles.
17 Repeatedly pressing any of these key bindings alternately turns the corresponding feature on and off.
18 Adding the Dot7 key forces the feature to be turned off,
19 and adding the Dot8 key forces the feature to be turned on.
20
21 Useful Key Bindings
22 ===================
23
24 Space + h (dots 125)
25 Go to the help screen.
26 It's a toggle, so pressing it again returns to the actual screen.
27 This screen is only shown on the braille display.
28 It contains a full listing of all of your braille device's key bindings.
29
30 Space + l (dots 123)
31 Enter learn mode.
32 It's a toggle, so pressing it again leaves learn mode.
33 Additionally, if you don't do anything for 10 seconds then learn mode is automatically terminated.
34 When in learn mode, pressing any key combination shows, on the braille display, what it'll do without actually doing it.
35
36 Space + p (dots 1234)
37 Go to `the preferences menu`_.
38 It's a toggle, so pressing it again returns to the actual screen.
39 Adding the Dot8 key saves the current settings.
40 Adding the Dot7 key restores the settings as of the most recent time that they were saved.
41
42 Space + g (dots 1245)
43 Toggle between computer braille and contracted braille.
44 Adding the Dot7 key forces computer braille,
45 and adding the Dot8 key forces contracted braille.
46
47 Space + t (dots 2345)
48 Toggle cursor tracking on/off.
49 When cursor tracking is on, any motion of the cursor drags the braille display to the new screen location.
50
51 Space + i (dots 24)
52 Toggle the skipping of identical lines on/off.
53 This feature is especially useful for compressing multiple contiguous blank lines into a single one.
54
55 Space + b (dots 12)
56 Toggle the skipping of blank braille windows on/off.
57 This feature is especially useful for skipping over the blank ends of short lines when panning.
58
59 The Preferences Menu
60 ====================
61
62 The preferences menu contains a lot of settings that let you customize how BRLTTY behaves.
63 It's internal to BRLTTY so it doesn't show up on the actual screen -
64 it's only presented on the braille display.
65
66 The Dot Keys
67 ------------
68
69 The dot keys can be used to navigate the preferences menu:
70
71 Dots 1 and 4
72 In the same way as they (when combined with the Space key) move the cursor up/down when using a conventional screen reader,
73 these dot keys move up/down within the current submenu.
74 In other words, Dot1 moves to the previous item and Dot4 moves to the next item.
75
76 Dots 3 and 6
77 In a similar way to how they (when combined with the Space key) move the cursor left/right when using a conventional screen reader,
78 these dot keys select the previous/next possible setting for the current item.
79 The setting choices wrap,
80 so Dot3, when the first choice is selected, wraps to the last one,
81 and Dot6, when the last choice is selected, wraps to the first one.
82
83 Dot 2
84 Move to the first item.
85
86 Dot 5
87 Move to the last item.
88
89 Dot 7
90 Go up one submenu level.
91 If in the main menu then exit and return to the actual screen.
92
93 Dot 8
94 Exit and return to the actual screen.
95
96 The Routing Keys
97 ----------------
98
99 The routing keys can be used to change the setting for the current item:
100
101 * If the setting is a discrete set of choices, e.g. ``Yes`` or ``No``,
102 then each successive group of routing keys selects those choices.
103 For example:
104
105 * If there are two choices
106 then keys 1,3,5,... select the first one
107 and keys 2,4,6,... select the second one.
108
109 * If there are three choices
110 then keys 1,4,7,... select the first one,
111 keys 2,5,8,... select the second one,
112 and keys 3,6,9,... select the third one.
113
114 * If the setting is a number then the routing keys behave like a scroll bar.
115
116 * The leftmost key selects the lowest possible value.
117 * The rightmost key selects the highest possible value.
118 * The inner keys select an evenly distributed value within the range.
119
120 Exiting the Preferences Menu
121 ----------------------------
122
123 These are the ways to exit the preferences menu:
124
125 Dot7
126 Go up one level when in the main menu.
127
128 Dot8
129 Exit the preferences menu.
130
131 Space + p (dots 1234)
132 Preferences Menu enter/exit toggle.
133
134 Space + p (dots 1234) + Dot8
135 Save the current settings.
136
137 None of these methods close `Submenus`_.
138 This means that going back to the preferences menu later resumes at the same place.
139
140 The ``Save on Exit`` item is at the top of the main menu.
141 It specifies whether or not (``Yes`` or ``No``)
142 the current settings are to be saved when exiting the preferences menu.
143 If it's set to ``No`` then you can still manually save the current settings with Space + p (dots 1234) + Dot8.
144
145 Submenus
146 --------
147
148 The preferences menu is a tree structure of menus.
149 The one at the root (or top) is known as the main menu.
150
151 If an item ends with an ASCII right arrow (``-->``)
152 then it's the name of a submenu.
153 For example::
154
155 Braille Presentation -->
156
157 Pressing Dot3, Dot6, or any routing key on this kind of item opens the submenu.
158 If it's closed then the braille display is placed on the first item.
159 If it's open then the braille display is placed on the current item.
160
161 The first item of each submenu always is
162 an ASCII left arrow (``<--``),
163 followed by the word ``Close``,
164 followed by the name of the submenu.
165 For example::
166
167 <-- Close Braille Presentation
168
169 Pressing Dot3, Dot6, or any routing key on this kind of item closes the submenu.
170
171 Another way to leave a submenu is to press Dot7.
172 Leaving a submenu this way leaves it open.
173
174 Additional Notes
175 ----------------
176
177 The default is that only relevant items are shown.
178 In the Braille Presentation submenu, for example,
179 Computer Braille Cell Type is only shown when Braille Variant is set to Computer,
180 and Expand Current Word is only shown when Braille Variant is set to Contracted.
181 This can be changed by setting Show All Items (in the Menu Options submenu) to Yes.
182
183 Table selection changes are currently not saved along with the other settings.
184 These include:
185
186 * The current text (computer braille) table.
187 * The current attributes table.
188 * The current contraction table.
189 * The current keyboard table.
190
191 The Braille Keyboard
192 ====================
193
194 Dots 7 and 8
195 ------------
196
197 Dots 7 and 8 are special because
198 the Dot7 key is Backspace and the Dot8 key is Enter.
199 If either of these keys is pressed together with other dot keys then it functions as itself.
200 If you need to type either just dot 7 or just dot 8
201 then combine the corresponding key with the Space key.
202 So:
203
204 Dot7
205 Press the Backspace key.
206
207 Dot8
208 Press the Enter key.
209
210 Space + Dot7
211 Type dot 7.
212
213 Space + Dot8
214 Type dot 8.
215
216 Typing
217 ------
218
219 Characters are typed by pressing either the Space key or any combination of the dot keys.
220 This can be disabled in order to avoid inadvertently typing a character by accidentally pressing keyboard keys.
221
222 Space + Dots13 + Dot7
223 Disable typing.
224
225 Space + Dots13 + Dot8
226 Enable typing.
227
228 The following typing modes are supported:
229
230 Space + Dots46 + Dot7
231 Switch to interpreting the characters being typed as regular text.
232 The dot combination is back-translated through the currently selected text (computer braille) table.
233 This is the default.
234
235 Space + Dots46 + Dot8
236 Switch to interpreting the characters being typed as Unicode braille patterns.
237
238 Special Keys
239 ------------
240
241 The special keys on a normal keyboard can be individually pressed as follows:
242
243 Space + Dots45 (conventional screen reader binding)
244 The Forward Tab key.
245
246 Space + Dot3 (conventional screen reader binding)
247 The Cursor Left key.
248
249 Space + Dot6 (conventional screen reader binding)
250 The Cursor Right key.
251
252 Space + Dot1 (conventional screen reader binding)
253 The Cursor Up key.
254
255 Space + Dot4 (conventional screen reader binding)
256 The Cursor Down key.
257
258 Space + Dots23 (conventional screen reader binding)
259 The Page Up key.
260
261 Space + Dots56 (conventional screen reader binding)
262 The Page Down key.
263
264 Space + Dot2
265 The Home key.
266
267 Space + Dot5
268 The End key.
269
270 Space + Dots35 (low i)
271 The Insert key.
272
273 Space + Dots256 (low d)
274 The Delete key.
275
276 Space + Dots26 (low e)
277 The Escape key.
278
279 Space + a routing key
280 In most cases, a function key can be pressed by pressing the corresponding routing key along with the Space key.
281 For example, the ``F1`` key can be pressed by pressing Space + the leftmost routing key.
282
283 Modifier Keys
284 -------------
285
286 A subset of the modifier keys, the most common being Control and Left Alt, have been defined for most braille devices.
287 Especially for those braille devices for which no modifier keys have been defined,
288 but also for those for which only some of them have been defined,
289 a general scheme for supporting sticky modifiers is provided.
290
291 The key combinations for these modifiers all consist of Space + Dot8 + one of the other dot keys.
292 They are as follows:
293
294 Space + Dot8 + Dot1
295 The GUI (Windows, Command) key.
296
297 Space + Dot8 + Dot4
298 The Shift key.
299
300 Space + Dot8 + Dot2
301 The Left Alt (Meta) key.
302
303 Space + Dot8 + Dot5
304 The Right Alt (AltGr) key.
305
306 Space + Dot8 + Dot3
307 The Control key.
308
309 Space + Dot8 + Dot6
310 The Uppercase key.
311
312 Space + Dot8 + Dot7
313 Unlock and clear all of the modifiers.
314 This is especially useful when you forget how the various modifiers have been set.
315
316 Each modifier can be cycled through these three states:
317
318 First Press
319 Temporarily set the modifier.
320 It'll only apply to the next typed character.
321
322 Second Press
323 Lock the modifier.
324 It'll apply to all typed characters until it's cleared.
325
326 Third Press
327 Unlock and clear the modifier.
328
329 What does BRLTTY mean?
330 ======================
331
332 Since people are asking, let's answer it here.
333
334 The ``BRL`` part means **braille**.
335 The ``TTY`` part actually does mean **tty**, which needs a bit of an explanation.
336 The most important thing to know, though, is that it has nothing at all to do with the ``tty`` devices that deaf people use to communicate over phone lines.
337
338 BRLTTY began its life on the Linux platform.
339 That platform has virtual consoles, which, among other things,
340 allow multiple, simultaneous login sessions.
341 These virtual consoles, way back in the early days, emulated serially-connected terminals.
342 They can still do that, of course, but, these days, they can do a whole lot more.
343
344 Serially-connected terminals, especially those that used paper (as opposed to a screen), were commonly known as teletypes (or teletypewriters).
345 That's where the term ``tty`` comes from.
346 This may well also be the reason that the devices that deaf people use to communicate over phone lines are called ``ttys``,
347 i.e. they, too, behave very much like serially-connected terminals.
348
349 For a historical perspective regarding the term ``tty``, you might read:
350 `<https://en.wikipedia.org/wiki/Teleprinter>`_
351