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
Have ability to show line number of document on Braille display #5941
Comments
Hi, @dkager: Any ideas on what we can do? Thanks. |
hi |
its already 7 years avilable in jaws so no reason not to add this. |
I expect NVDA can figure out line numbers in some way. So in that sense it can be done, though doing it only because another screen reader can do it is probably not good enough. For example, I find that I can get along by checking what line I'm on in Notepad++ through the status bar. Technically it should be possible by extending braille.TextInfoRegion. It may require some work to make this compatible with braille.Region.focusToHardLeft, because presumably the line number should be visible at the very start of the line without being part of the text. |
Hi Ilan and participants, I meant that perhaps these two functions of braille.py can be modified: |
hi imagine asking every time what is the line number i mentioned jaws because thats what i'm used to as a programmer . |
When I'm programing, I'm not looking at the line number each time. El 10/05/2016 a las 17:56, shevetonline escribió:
|
Back when I used a screen reader that showed the line numbers in Notepad++ if enabled, I actually disabled them because it got in the way. So my question was if there are people who do want to see all line numbers all the time, or if it would be enough to manually query for this. If you personally find this useful then I would welcome the additional functionality. |
Let's simplify here. If "Report line numbers" is enabled in Document Formatting preferences, line numbers get spoken at the start of the line (if the application supports retrieving this info). I don't personally find this useful--even as a programmer myself, I prefer to query the line on demand in the status bar--but the point is that it is included as an option for speech. We should just present the same information in braille depending on the same setting. The only change I'd suggest is that we should just braille the number with no "line" prefix as we have for speech. Addressing a specific point:
IMO, we shouldn't worry about focusToHardLeft for this. Those that want this probably do always want to see the line number without having to scroll back. It also gets ugly when you scroll to the next or previous line: should we skip the line number or not? And scrolling back is even worse, since it'd be very asymmetric. |
Hi, replying to Jamie, imo your suggestion makes sense since it El 11/05/2016 a las 0:40, James Teh escribió:
|
Let's keep the scope narrow here, since this seems to be quite important
to the original reporter and broadening scope introduces more complexity.
|
OK, I can create a branch for this if it would be faster, not instead. El 11/05/2016 a las 7:43, James Teh escribió:
|
You don't need to worry about isMultiline or the like, since this applies to any TextInfoRegion. It's actually a FormatField attribute, not a ControlField attribute, so you'll want to do this in getFormatFieldBraille. There's a snag, though: you only want to do it for the first format field on the line. getFormatFieldBraille doesn't currently know about that, so that'll require an additional argument. |
Hi, thanks for the explanation. I'm looking this. El 11/05/2016 a las 8:12, James Teh escribió:
|
Hi, unfortunately, I can't test this at home since I don't have a def getFormatFieldBraille(field, formatConfig): El 11/05/2016 a las 8:12, James Teh escribió:
|
Hi, finally I have designed the code as follows, and it works for me:
|
Hi, I have created a pull request for this at |
… preferences, line numbers are now shown on a braille display. (#5941)
It is possible to have NVDA read line numbers in Word and other documents, however this information is not displayed on a connected Braille display and there is currently no setting to allow this information to be displayed. (Feature request).
The text was updated successfully, but these errors were encountered: