<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mindtrove &#187; validation</title>
	<atom:link href="http://mindtrove.info/tag/validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://mindtrove.info</link>
	<description>Collecting ideas since 1980</description>
	<lastBuildDate>Thu, 01 Jul 2010 01:58:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Validate your accessibility</title>
		<link>http://mindtrove.info/validate-your-accessibility/</link>
		<comments>http://mindtrove.info/validate-your-accessibility/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 00:46:00 +0000</pubDate>
		<dc:creator>Peter Parente</dc:creator>
				<category><![CDATA[Accessibility]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[accerciser]]></category>
		<category><![CDATA[at-spi]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://pithy.tumblr.com/post/23941873</guid>
		<description><![CDATA[Eitan committed a new plug-in for Accerciser that makes it dirt simple to find basic accessibility problems. You know, the ones that cause grief for apps like Orca, GOK, On-Board, etc. To use it, run Accerciser, point it at part of a GUI, click validate, and wait for the report. The rules in the plug-in [...]]]></description>
			<content:encoded><![CDATA[<p>Eitan <a href="http://monotonous.org/?p=48">committed a new plug-in</a> for Accerciser that makes it dirt simple to find basic accessibility problems. You know, the ones that cause grief for apps like Orca, GOK, On-Board, etc. To use it, run Accerciser, point it at part of a GUI, click validate, and wait for the report.</p>
<p>The rules in the plug-in aren’t the greatest right now. But the plug-in is extensible with new rule sets called <em>schemas</em>. For instance, you could have a “Desktop” schema to check basic GUI problems, a “Web” schema to test document accessibility, and an “Orca” schema to check a program’s fitness for Orca scripting. The sky’s the limit, and I’m sure Eitan, Will, and company will come up with quite a few useful tests.</p>
<p>To ward off any fear brought on by the word “schema,” I should note that they’re really just Python modules with simple, three-method classes in them. For example:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">class</span> CheckFocusable<span style="color: black;">&#40;</span>Validator<span style="color: black;">&#41;</span>:
  <span style="color: #ff7700;font-weight:bold;">def</span> condition<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, acc<span style="color: black;">&#41;</span>:
    <span style="color: #808080; font-style: italic;"># only test accessibles that have the action interface</span>
    <span style="color: #ff7700;font-weight:bold;">return</span> acc.<span style="color: black;">queryAction</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>      
  <span style="color: #ff7700;font-weight:bold;">def</span> after<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, acc, state, view<span style="color: black;">&#41;</span>:
    <span style="color: #808080; font-style: italic;"># check an accessible after checking its descendants</span>
    <span style="color: #808080; font-style: italic;"># acc is the accessible</span>
    <span style="color: #808080; font-style: italic;"># state is a dictionary of whatever you need to store across tests</span>
    <span style="color: #808080; font-style: italic;"># view logs errors, warnings, etc.</span>
    <span style="color: #ff7700;font-weight:bold;">pass</span>
  <span style="color: #ff7700;font-weight:bold;">def</span> before<span style="color: black;">&#40;</span><span style="color: #008000;">self</span>, acc, state, view<span style="color: black;">&#41;</span>:
    <span style="color: #808080; font-style: italic;"># check an accessible before checking its descendants</span>
    s = acc.<span style="color: black;">getState</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
    <span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #ff7700;font-weight:bold;">not</span> s.<span style="color: black;">contains</span><span style="color: black;">&#40;</span>STATE_FOCUSABLE<span style="color: black;">&#41;</span>:
      view.<span style="color: black;">error</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'actionable widget is not focusable'</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>No more excuses for inaccessible apps now, right? <img src='http://mindtrove.info/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://mindtrove.info/validate-your-accessibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
