Skip to content

Latest commit

 

History

History
52 lines (32 loc) · 2.21 KB

README.md

File metadata and controls

52 lines (32 loc) · 2.21 KB

Web Accessibility Toolbar

This repo contains the Web Accessibility Toolbar (WAT) including an Inno Setup file for creating a "setup.exe"-style installer.

There's reference documentation that explains what you can do with the toolbar and includes keyboard shortcuts.

Currently this repo does not contain the source for the toolbar DLL, but this is only the "shell" for the code; you can change virtually anything by editing the scripts and then building the setup program with Inno Setup.

Editable Files

These are the files that you can edit to modify the WAT.

Accessibility_Toolbar.xml

This is an xml file which creates the menu's and menu items in the WAT UI. You can add/remove/modify the UI via this file. The text labels for the UI controls are provided via variable (res_id) references to the Translation.ini

For example: The WAT > Structure > headings feature is represented as this in the XML file:

<item resid="head1_struc" image="-1" />

Translation.ini

Contains all the text strings provided in the UI and the functions. Also includes mappings to invoke the scripts and inbuilt features via the UI.

Scripts directory

The majority of the WAT functionality is powered by JS or WS files. (WS just being a windows scripting host version -- but written in JS). You can think of the features as bookmarklets, as this is how most of them started life. You can modify an exsiting feature by changing its corresponding script file.

For example: The WAT > Structure > headings is powered by Headings.js, so you hack on that script to change the behaviour of the feature.

Icons directory

Icons can be added to menus/menu buttons/menu items.

For example: The Structure menu button (from the XML file Accessibility_Toolbar.xml)

<button type="button" resid="Structure" accesskey="6" image="structure.bmp">

Building

Open Accessibility_Toolbar_x86.iss with Inno Setup -- we recommend using the QuickStart Pack as this contains many useful add-ons.