Reading indentation level

By Codeofdusk, 13 August, 2015

Forum
macOS and Mac Apps

Hello, In the following text:

class dummy(object):
    "A dummy Python class."
    def __init__(self):
        pass
    def a(self,*args,**kwargs):
        "Do stuff."
        pass
    def b(self,*args,**kwargs):
        "Do other stuff."
        pass

NVDA can be configured to say "four spaces", "eight spaces", or "no indent". How can I get VoiceOver to do this?

Options

Comments

By Jonathan Chacón on Friday, August 28, 2015 - 23:46

Hello,

I developed a basic AppleScript to detect the indentation with VoiceOver.

You can find it in my personal web site:
http://www.programaraciegas.net/?p=166

It is in Spanish but you can use the translation options if you want to read the article.
You can use the script with a shortCut for VoiceOver.