Reading indentation level

Forum
macOS & 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

Submitted by Tyflos Accessi… on Thursday, August 13, 2015

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.