| 1 |
Braille Lite Driver for BRLTTY |
| 2 |
|
| 3 |
This is a beta driver for the Blazie Engineering Braille Lite. |
| 4 |
written by Nikhil Nair, |
| 5 |
with additions from Nicolas Pitre <[email protected]> |
| 6 |
and Pete De Vasto, |
| 7 |
further modifications by Stéphane Doyon <[email protected]>, |
| 8 |
starting August 2001. |
| 9 |
|
| 10 |
Both BrailleLite 18 and 40 should work, and there is now code that should |
| 11 |
auto-detect the display type. |
| 12 |
|
| 13 |
Edit braille.h to select baudrate and some features. |
| 14 |
|
| 15 |
On the BrailleLite, you should type 345-chord and p-chord to enter the |
| 16 |
"speech box mode" required by BRLTTY. You should type the same sequence |
| 17 |
to exit that mode whenever you wish to return to the BrailleLite internal |
| 18 |
functions. |
| 19 |
|
| 20 |
Be sure your BrailleLite's serial port baudrate and the value configured |
| 21 |
in the braille.h file are the same. |
| 22 |
|
| 23 |
The Braille Lite 40 has two advance bars on it. Brltty has been set up |
| 24 |
so that moving the display left or right works the same as it does |
| 25 |
when the unit is in its internal notetaker mode. |
| 26 |
|
| 27 |
See help.src for a description of the key bindings. |
| 28 |
|
| 29 |
History: |
| 30 |
Stéphane Doyon, April 2002, version 0.5.10: |
| 31 |
-Act as if kbemu was off in any context other than CMDS_SCREEN (in |
| 32 |
particular typing a key won't throw you out of preferences menu |
| 33 |
anymore). |
| 34 |
Stéphane Doyon, March 2002, version 0.5.9: |
| 35 |
-Added "kbemu" driver parameter, so can start with kbemu already active. |
| 36 |
Stéphane Doyon, February 2002, version 0.5.8: |
| 37 |
-Added CMD_LEARN, CMD_NXPROMPT/CMD_PRPROMPT and CMD_SIXDOTS. Several |
| 38 |
VAL_PASSKEY effects were done through special cases: moved them |
| 39 |
back into cmdtrans. Identified special/reserved and free bindings. |
| 40 |
Cleaned out some #if 0s. |
| 41 |
Stéphane Doyon, January 2002, version 0.5.7: |
| 42 |
-Added bindings for CR_CUTAPPEND and CR_CUTLINE. Replaced CMD_CUT_BEG, |
| 43 |
CMD_CUT_END and CMD_CSRJMP by CR_ equivalents. Added CR_SETMARK and |
| 44 |
CR_GOTOMARK. These are a bit nasty: they reuse existing command dot |
| 45 |
patterns from within o-chord. Well practically all the patterns are |
| 46 |
taken! |
| 47 |
Stéphane Doyon, January 2002, version 0.5.6: |
| 48 |
-Fixed dot combinations with dots 7-8 on BL40 (for typing caps and ctrl). |
| 49 |
Stéphane Doyon, December 2001, version 0.5.5: |
| 50 |
-META is back. Now use VPC modifiers on VALPASSCHAR when TEXTTRANS |
| 51 |
not defined. Fixed uppercase that always locked active. Sub-commands |
| 52 |
of 35-chord no longer need to be chorded. |
| 53 |
Stéphane Doyon, November 2001, version 0.5.4: |
| 54 |
-Now using new generic VAL_PASS* mechanism for typing in keys, rather |
| 55 |
than having the driver itself insert stuff into the console. We |
| 56 |
no longer have the META function though, but we have ESCAPE. |
| 57 |
Stéphane Doyon and Dave Mielke, September 2001, version 0.5.3: |
| 58 |
-closebrl: don't clear display, use TCSADRAIN. |
| 59 |
-Slight API and name changes for BRLTTY 3.0. Commands can no longer be |
| 60 |
assumed to be chars, changed type of cmdtrans. |
| 61 |
-Fixed binding for switching virtual terminal with o-chord... it was wrong. |
| 62 |
Stéphane Doyon, September 2001, version 0.5.2: |
| 63 |
-Added baudrate parameter. Fixed up initialization, in particular a bug |
| 64 |
with use of qbase buffer uninitialized. |
| 65 |
Stéphane Doyon, September 2001, version 0.5.1: |
| 66 |
-Added bindings for CMD_BACK and CR_MSGATTRIB. |
| 67 |
Stéphane Doyon, August 2001 |
| 68 |
-Added a version number, as many people have been playing with this |
| 69 |
driver. Arbitrarily started at 0.5. |
| 70 |
-Made the help more compact, and remove the duplication of the key |
| 71 |
bindings list from README. |
| 72 |
-Use separate help files for BL18 and BL40, automatically generated from |
| 73 |
brltty_genhelp.txt. |
| 74 |
-Option USE_TEXTTRANS in braille.h, allows mapping of braille keyboard |
| 75 |
input to characters to be performed using the output text translation |
| 76 |
table (use definable) instead of the hardcoded US table. Useful if you |
| 77 |
don't use the US table or if you want to enter characters numbered |
| 78 |
>127 (such as accents for me). Obviously your output dot translation |
| 79 |
table must not have duplicate representations for characters you want |
| 80 |
to type. If that option is selected, dot 8 no longer generates a META |
| 81 |
key. |
| 82 |
-Added DOT8SHIFT for use with USE_TEXTTRANS: 26-chord means the next |
| 83 |
input char should be looked up with dot8 added. |
| 84 |
-Added bindings for search forward/backward (NXSEARCH), move by |
| 85 |
paragraphs (NXBLNKLN), switch to next/previous virtual terminal |
| 86 |
(SWITCHVT_NEXT). |
| 87 |
-Added a binding (246) for escape. Sometimes you want escape alone, or |
| 88 |
followed by delete... and the META key doesn't do it as it expects a |
| 89 |
character to combine the META to. |
| 90 |
-Made the "restart driver" command dangerous (required chord), as it |
| 91 |
tended to kill the driver for me if I continued typing while it |
| 92 |
resets... |
| 93 |
-Modified repeat count so that you can give the command right away, no |
| 94 |
need to do e-chord. You can do a one-digit repeat of a movement key in |
| 95 |
three strokes now. |
| 96 |
-Abused the repeat count function to allow switching directly to a VT |
| 97 |
given it's number: o-chord then VT number then s-chord or :-chord. |
| 98 |
NB: Changed to v-chord / #-chord. |
| 99 |
-Fixed a very nice little bug that caused the internal cursor to go off |
| 100 |
the display during g-chord with advance bar left. |
| 101 |
-Fixed a statement that caused a portability problem. |
| 102 |
-Fixed k-chord which activated but did not toggle off keyboard emulation. |
| 103 |
-Renamed brltty_genhelp.txt to help.src and brlttyhelp?.txt to help?.txt. |
| 104 |
|
| 105 |
Anecdotes on weird bugs: |
| 106 |
|
| 107 |
The code: |
| 108 |
for (i = 0; i < blitesz; rawdata[i++] = blitetrans[rawdata[i]]); |
| 109 |
can, in some (not yet quite clear) circumstances and under other |
| 110 |
processor architectures, not have the desired effect: all the text |
| 111 |
appears shifted by one cell. Supposedly the behavior for such a construct |
| 112 |
is undefined with gcc. So we put the i++ outside the assignment |
| 113 |
statement. |
| 114 |
|
| 115 |
The code: |
| 116 |
int_cursor = MAX (int_cursor - blitesz / 4, 1); |
| 117 |
did not have the intended effect. int_cursor was signed and blitesz |
| 118 |
unsigned. The compiler somehow decided to evaluate the comparison as if |
| 119 |
the first argument was unsigned, which caused the MAX strategy to fail |
| 120 |
and the cursor to go off the display. Declaring blitesz as signed fixed |
| 121 |
it. |