-
-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for serial Papenmeier displays #2679
Comments
Attachment PAPENMEIER_SERIAL.PY added by halim on 2012-09-24 06:57 |
Comment 2 by halim on 2012-10-10 09:18
|
Comment 3 by halim on 2012-10-14 06:35
|
Comment 4 by jteh on 2012-10-26 03:01 |
Comment 5 by halim (in reply to comment 4) on 2012-12-06 10:02 |
Attachment papenmeier_serial.2.py added by halim on 2012-12-06 10:05 |
Comment 6 by halim on 2012-12-06 11:53 |
Attachment papenmeier_serial.3.py added by halim on 2012-12-06 11:55 |
Comment 7 by halim on 2012-12-06 12:07 |
Attachment papenmeier_serial.4.py added by halim on 2012-12-06 12:07 |
Attachment papenmeier_serial.5.py added by halim on 2012-12-06 14:18 |
Comment 8 by halim on 2012-12-06 14:22 |
Comment 9 by ragb on 2012-12-06 14:37 On the braille driver constructor
|
Comment 10 by halim on 2012-12-06 15:40 |
Attachment papenmeier-serial.py added by halim on 2012-12-07 06:53 |
Attachment papenmeier_serial.6.py added by halim on 2012-12-07 06:57 |
Comment 11 by halim on 2012-12-07 06:58 |
Attachment papenmeier_serial.7.py added by halim on 2012-12-07 07:57 |
Comment 12 by jteh on 2012-12-07 11:10 |
Comment 13 by aliminator on 2012-12-07 16:02 |
Comment 14 by halim on 2012-12-07 16:47 @jteh: some of your suggestions from the review process of 1265 are included in current driver as well. Hope to get more useful feedback from you :-). |
Comment 15 by jteh on 2012-12-10 05:24 brl_poll and brl_poll2 make a lot of read(1) calls. This is very inefficient. If at all possible, you should try to read several bytes at once. For example, if you know the length returned by a particular command, read that many bytes. At the very least, inWaiting() should give you the number of bytes currently waiting to be read, so you can read that many. In the !BrailleDisplayDriver class: The description attribute should have a translators comment above it:
I missed this when reviewing the other Papenmeier driver. :) In the constructor, you set self.numcells and you then have _get_numCells return this. This isn't necessary. Just use self.numCells directly and remove _get_numCells altogether. nit: The constructor sets dic = -1 at the top of the loop, but then initialises this inside the loop anyway. I'd probably remove the one outside the loop.
nit: Use a tuple instead of a list here; i.e. parentheses instead of square brackets. Tuples are more lightweight unless you need the extra features of mutable lists.
nit: Can be simplified to just: Could you explain what's going on in executeGesture; i.e. changing "r1,left" to "left2"? At the very least, the subsequent ifs should probably be elifs. Also, I'm wondering whether this code would be better in the gesture class. Consider changing the multiple if checks in brl_keyname into a dict lookup, though whether you do this is up to you. As always, thanks for your great work. |
Comment 16 by halim on 2012-12-10 12:13
|
Comment 17 by jteh (in reply to comment 16) on 2012-12-14 10:06
Strange. Are you saying you get more or less than 10 bytes from read(10)?
I wonder whether it might be less confusing to just map r1+right to the same script in the gesture map? |
Comment 18 by halim on 2012-12-17 07:55 |
Attachment papenmeier_serial.8.py added by halim on 2012-12-17 07:57 |
Attachment papenmeier_serial.9.py added by halim on 2012-12-18 07:47 |
Comment 19 by halim on 2012-12-18 07:52
|
Comment 20 by aliminator on 2012-12-18 08:41 |
Attachment userguide.diff added by aliminator on 2012-12-18 08:42 |
Comment 21 by halim on 2012-12-20 07:13 |
Attachment papenmeier_serial.py added by halim on 2012-12-20 07:13 |
Comment 22 by aliminator on 2013-01-07 10:02 Could you please merge it into main if there are no more points to fix? |
Comment 23 by jteh on 2013-01-07 11:19 |
Comment 24 by jteh on 2013-01-09 01:13
|
Comment 25 by halim on 2013-01-09 08:42
|
Comment 26 by jteh (in reply to comment 25) on 2013-01-09 09:53
Yeah. Using plus means the order is indeterminate. I never thought there'd be a case where it mattered. If it does, comma is fine.
How does the User Guide for the display refer to it? How do other screen readers refer to it? The problem is that the documentation mentions reportf as a key binding, but reportf seems NVDA specific and a user won't know where to find it. |
Comment 27 by aliminator on 2013-01-09 12:24 |
Comment 28 by jteh on 2013-01-09 22:13 |
Comment 29 by halim on 2013-01-10 06:53 |
Comment 30 by aliminator on 2013-01-10 08:01 |
Comment 31 by jteh on 2013-01-10 08:13 I guess I'm happy for it to be left as reportf if there's really no better name. We can change it if it confuses users. |
Comment 32 by aliminator on 2013-01-10 08:26 clarifies this. |
Comment 33 by jteh on 2013-01-11 01:34 Thanks for your work once again. |
Reported by jteh on 2012-09-19 10:52
Spun off #1265. Filing now so we don't forget.
A driver for serial Papenmeier displays was provided in #1265. #426 must first be implemented and then the driver updated accordingly. The driver also probably needs some other fixes similar to those suggested for the non-serial driver.
Blocked by #426, #1265
The text was updated successfully, but these errors were encountered: