-
-
Notifications
You must be signed in to change notification settings - Fork 632
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
Concise speaking of indentation #373
Comments
Comment 2 by jteh on 2009-07-24 06:23 |
Comment 3 by jteh on 2009-12-08 06:04 |
Comment 4 by jteh on 2009-12-08 06:05 |
Comment 6 by orcauser on 2011-05-02 18:43 Thank you. |
Comment 7 by jteh on 2011-05-03 06:24 There are a few changes I think need to be made (and I'm happy to do this when I get some time):
|
Comment 8 by jteh on 2011-05-03 06:27 |
Attachment indentation.patch added by orcauser on 2011-05-04 19:24 |
Comment 9 by orcauser on 2011-05-04 19:27 Please see updated patch, is this the sort of thing you were thinking of? |
Comment 10 by jteh on 2011-05-05 08:58 Personally, I'd prefer if NVDA didn't say "no indent" unless the indentation actually changes. Right now, whenever you focus a document, you'll hear it, which is rather annoying. I think it's fair to assume that there is no indentation unless otherwise specified or there was a change. Mesar, Mick, your thoughts? This is a bit tricky to implement, as checking for the translated "no indent" string is a bit ugly. calculateTextIndentation() would have to return "" or similar to indicate no indent and then speakTextInfo() would convert this to the "no indent" message. |
Comment 11 by jteh on 2011-05-05 09:02 |
Comment 12 by orcauser on 2011-05-05 18:53 In Orca one can assign a shortcut to toggle reporting of indentation, Having the shortcut allows for flexibility with the terminal problem, since the user can toggle without bringing up the dialogue, maybe this is the compromize we can settle on. |
Comment 13 by jteh (in reply to comment 12) on 2011-05-05 21:32
We'd still report it if there was anything other than no indentation. Right now, I hear "no indent" every time I land in an editable text field, which seems rather superfluous.
Yeah, that might be a good idea.
True. I'd like to solve this one another way if we can, so I'll see what I can come up with. |
Comment 14 by jteh on 2011-06-09 03:28 |
Comment 15 by jteh on 2011-06-28 04:46 Mick, I'm sure we discussed something else to do here too. Can you remember what it was? :( |
Comment 16 by jteh on 2011-09-05 03:35 |
Comment 17 by mdcurran on 2011-10-11 01:28 |
Comment 18 by jteh on 2011-10-25 03:11 I'm not really sure of the best way to handle interspersed control and format fields. The original implementation didn't really handle this at all and also had a few other bugs I didn't spot earlier. My new implementation just gathers all indentation, regardless of interspersed fields, and then speaks it before any content. This means that if you have a link beginning with two spaces at the start of the line, you won't know whether the spaces were inside the link; you'll hear "2 space link blah". Similarly, if you have one space which is underlined followed by one space which is not, you won't know where the underline occurs; you will hear "2 space underline no underline blah". I don't know whether this is ideal or not. I also need to add code to make sure indentation is spoken in the default language. Currently, it will be spoken in the language specified by the initial format field, which is bad since it uses user interface strings. |
Comment 19 by orcauser (in reply to comment 18) on 2011-10-25 06:50
Yeah, sorry, the request was due to indentation in a simple text editor,
Idealy we should hear:
underlined space, no underline space bla. This feature will be mostly used by technical writers/programmers, and this level of info would be very useful. thank you. |
Comment 20 by jteh (in reply to comment 19) on 2011-10-25 07:01
You gave it a good shot and did very well. Thanks for trying and getting this started.
This is what Mick and I came up with yesterday. However, it occurred to me: what if the next line has the same level of real indentation but has different fields? In this example, the next line could have two spaces but no underline. Should that be treated as a new level of indentation or not? |
Comment 21 by jteh on 2011-10-25 07:02 |
Comment 22 by orcauser (in reply to comment 21) on 2011-10-25 07:25
Unfortunately, I think it should be treated as different, the meta info Replying to jteh:
Is there an alternative path? Coming back to the link example: It isnt pleasant, but what if they simply heard space, space. Thanks. |
Comment 23 by jteh on 2011-10-31 08:41 |
Comment 24 by orcauser on 2011-10-31 08:44 |
Comment 25 by jteh on 2011-10-31 21:15 |
Reported by jteh on 2009-07-24 05:15
Currently, NVDA only reads up to five tabs at the start of a line, even if there are more. Also, spaces are never read in text, which, although normally not desirable, is essential at the start of lines when working with code indented with spaces. NVDA should be able to optionally announce the number of tabs and spaces by which text is indented.
Blocked by #845
The text was updated successfully, but these errors were encountered: