Accessibility testing using Linux

Posted:
Tagged with:

Note: I’m mostly a Windows user so if anyone has any tips or suggestions, I will gratefully receive them.

Linux Mint Cinnamon

I installed Linux Mint (external website) (Cinnamon) on to an Acer Aspire 5552 (AMD Athlon II X2 processor P320) with 3GB of memory (ex-Windows 7 laptop) to test how well I could use Linux to audit websites and remediate documents.

I was then able to install some Chrome extensions to help with auditing websites.

Screen readers

Windows has Jaws and NVDA, IOS has Voiceover, and Android has Talkback, but these are not available for Linux.

There are several screen readers available for Linux:
Orca Screen Reader (external website) – good for graphical environments
Fenrir (external website) - good for command line (ideal for Raspberry Pi OS as it takes up little SD card space or RAM)
Emacspeak (external website) - good for command line

Colour Contrast Checkers

I would normally use TPGi’s Colour Contrast Analyser (external website) in Windows, so I installed Gpick (external website) which I used alongside the Contrast Finder (external website) website to allow me to manually check for colour contrast.

Installing screen readers on Linux Mint Cinnamon

Orca Screen Reader

The Orca Screen Reader comes as part of the accessibility package of Linux Mint and does not need to be installed.

Orca can be opened or closed using the Windows key + Alt + S directly, or Alt + F2, which opens the equivalent to the Windows dialog box and then orca entered as a command, then Enter.

Enter a command dialog box

Orca can also be started by going into the Accessibility settings and the Visual tab where the Screen reader can be toggled on and off.

Screen reader toggle within Visual tab on Accessibility

When Orca Screen Reader is running the preferences can be accessed using “Orca Modifier” + Space, where the “Orca Modifier” is the Insert key on a desktop, and the Caps Lock key on a laptop.

Screen Reader Preferences

This may not work, so Alt + F2, which opens the equivalent to the Windows dialog box and then
orca -s entered as a command, then Enter (this works even if the screen reader is off).

Enter a command dialog box

I then checked in the General tab to make sure that Keyboard Layout was set to Laptop (which it was).

Screen Reader Preferences dialog general tab

I then went into the Voice tab and using the Rate slider, I made the speech quicker.

Voice tab on Screen Reader Preferences

Fenrir Screen Reader

To install Fenrir, I opened up the Synaptic Package Manager, Searched for Fenrir

Synaptic Package Manager having searched for Fenrir

I then clicked on the check box and selected Mark for Installation and selected Mark in the Mark additional required changes? dialog box.

Then I clicked Apply, then I clicked Apply in the Apply the following changes? dialog box

Apply the following changes dialog box

And the relevant software was installed, then I clicked Close on the Changes applied dialog box

Changes applied dialog box

Emacspeak Screen Reader

I followed the same steps in the Synaptic Package Manager as I did with Fenrir, but searched for Emacspeak, sadly the install failed, and I had to remove it.

I’m going to use Orca for the testing as I’m used to using a GUI.

GPick Colour Contrast Checker

To install Gpick, I followed the same installation steps using the Synaptic Package Manager, and I searched for Gpick.

Auditing a website

I was struggling to use the laptop with LibreOffice open to edit my audit document, so I ended up using GoogleDocs (external website) to edit the audit document to speed things up, but it was still too slow to be used effectively so, I downloaded and installed Linux Mint Xfce.

Linux Mint Xfce

Orca Screen Reader

The Orca Screen Reader comes as part of the accessibility package of Linux Mint and does not need to be installed.

To use Orca Screen Reader within Xcfe, you go to Accessibility and tick the checkbox “Enable assistive technologies”

Assistive technologies, start with session, enable assistive technologies

I was not able to open and close Orca using the normal keys and discovered that the Keyboard Layout was set to Desktop

Setting keyboard layout in screen reader preferences Linux Xfce

I set the Keyboard Layout to Laptop.

Orca can normally be opened or closed using the Windows key + Alt + S directly but I was unable to get that command to work in Xfce – it worked really well in Cinnamon!

So I used Alt + F2, which opens the equivalent to the Windows dialog box and then orca entered as a command, then Enter.

Application Finder dialog box

When Orca is running the preferences can be accessed by Alt + F2 and entering

orca -s

Screen reader preferences dialog box

I then went into the Voice tab and using the Rate slider, I made the speech quicker.

Screen reader preferences Voice tab

To turn off Orca, I used Alt + F2 (to open the dialog box and entered

pkill orca

High Contrast

Ctrl + H will put the PC into High Contrast mode when at the Login screen – I couldn’t see any difference to be honest!

Chrome browser extensions

The Chrome extensions I installed:
Accessibility Insights for Web (external website) - accessibility testing tool
Alt or not (external website) - see alt text on Twitter/X
ARC Toolkit (external website) - accessibility testing tool
axe DevTools (external website) - Web Accessibility Testing - accessibility testing tool
HeadingsMap (external website) - shows all the headings in a sidebar
Stylus (external website) – - create, edit, and manage personalised CSS stylesheets. I added custom CSS to test spacing and show focus indicator (external website)
WAVE Evaluation Tool (external website)
Web Developer (external website)

Code for Stylus

I added the Focus Style and Testing WCAG 1.4.12 Text Spacing CSS in Stylus.

JavaScript Bookmarklets

I also added the Adrian Roselli 24x24 bookmarklet.

Auditing a website

Using Xfce was far more successful as my laptop was running as it should be, and I was able to test the website and audit the report.

Auditing PDFs

As PAC 2024 (external website) does not currently work on Linux, even under WINE, I used Grackle Go to audit the PDF I found during my website audit.

Remediating PDFs

While there is software that can read or edit PDFs on Linux, I’ve not found any that will remediate PDFs to a level that they can pass PAC 2024.

Useful links

Accessibility Insights for Web (external website)
Alt or not (external website)
ARC Toolkit (external website)
axe DevTools (external website)
Basic Orca Tutorial (external website)
Emacspeak (external website)
Fenrir (external website)
GrackleDocs Grackle GO (external website)
HeadingsMap (external website)
Introduction to Orca Screen reader for Linux (external website)
Linux Mint (external website)
Orca Screen Reader (external website)
Stylus (external website)
Survey of Screen-Readers in Linux Operating Systems (external website)
WAVE Evaluation Tool (external website)
• Web Developer (external website)

Share on:

TwitterLinkedIn

Site preferences

Please feel free to display our site, your way by finding the preferences that work best for you. We do not track any data or preferences at all, should you select any options in the groups below, we store a small non-identifiable token to your browser's Local Storage, this is required for your preferencesto persist across pages accordion be present on repeat visits. You can remove those tokens if you wish, by simply selecting Unset, from each preference group.

Theming

Theme
Code block theme

Code theme help

Code block themes can be changed independent of the site theme.

  • Default: (Unset) Code blocks will have the same theme as the site theme.
  • Light 1: will be default for users viewing the light theme, this maintains the minimum 7:1 (WCAG Level AAA) contrast ratio we have used throughout the site, it can be quite difficult to identify the differences in colour between various syntax types, due to the similarities in colour at that contrast ratio
  • Light 2: drops the contrast for syntax highlighting down to WCAG Level AA standards (greater than 4.5:1)
  • Dark: Syntax highlighting has a minimum contrast of 7:1 and due to the dark background differences in colour may appear much more perceivable

Motion

Motion & animation

Motion & animation help

  • Default (Unset): Obeys device settings, if present. If no preference is set, there are subtle animations on this site which will be shown. If you have opted for reduce motion, smooth scrolling as well as expanding and collapsing animations will no longer be present, fading transtitions and micro animations will still be still present.
  • None: All animations and transitions are completely removed, including fade transitions.

Links

Underline all links

Underline all links help

  • Default (Unset): Most links are underlined, with a few exceptions such as: the top level links in the main navigation (on large screens), cards, tags and icon links.
  • Yes: Will add underlines to the exceptions outlined above, resulting in every link being underlined

Text and paragraphs

Font size (main content)

Font size help

This setting does not apply to the site's header or footer regions

  • Default (Unset): Font sizes are set to site defaults
  • Selecting Large or Largest will increase the font size of the main content, the size of the increase depends on various factors such as your display size and/or zoom level. The easiest way to determine which option suits you best would be to view this text after clicking either size's button
Letter spacing

Letter spacing help

  • Default (Unset): Default letter spacing applies
  • Increased: Multiplies the font size by 0.12 and adds the sum as spacing between each character
Line height

Line height help

  • Default (Unset): all text has a minimum line height of 1.5 times the size of the text
  • Increased: all text has a line height of twice the size of the text
Line width

Line width help

  • Default (Unset): all text has a maximum line width of 80 REM units (this averages around 110 characters per line)
  • Decreased: all text has a maximum line width of 55 CH units (this averages around 80 characters per line)
Paragraph spacing

Paragraph spacing help

  • Default (Unset): The space between paragraphs is equivalent to 1.5 times the height of the paragraph's text
  • Increased: The space between paragraphs is equivalent to 2.25 times the height of the paragraph's text
Word spacing preference

Word spacing help

  • Default (Unset): No modifications to word spacing are present
  • Increased: Spaces between words are equivalent to 0.16 times the font size