nvMathViewer 1.1.1

About

nvMathViewer is an extension for JAWS that can be used to view mathematical content in LaTeX and AsciiMath notations as MathML.

These notations are widely used to write mathematical symbols and formulas in computer systems. However, understanding LaTeX and AsciiMath requires special knowledge and skills that the average user may not have, such as a simple schoolboy or a humanitarian student. In addition, reading these notations directly may not be convenient enough, because it does not provide additional opportunities for analyzing the structure of formulas.

nvMathViewer solves these problems and enables blind users to quickly view any LaTeX or AsciiMath notations using special functions of JAWS for non-visual reading mathematical content and structural navigation through it.

Note: The earliest version of JAWS that has support for reading mathematical content is 16.0 released in 2014.

Installation

First, unpack the extension archive. nvMathViewer can be installed manually or automatically.

To install the extension manually follow these steps:

  1. Open the JAWS user settings directory. To do this:
    1. Open the Windows Start menu.
    2. Move to the “All Programs” submenu and open it.
    3. Move to the group of used version JAWS and open it.
    4. Move to the “Explore JAWS” group and open it.
    5. Move to “Explore My Settings” item and press Enter.
    Windows Explorer opens with a list of files and folders (for the current user) containing user settings of JAWS.
  2. Copy the contents of the “enu” directory from the extension archive to the JAWS user settings directory. It contains three files with the same name “nvMathViewer” and different extensions. It is an English version, but there are versions in other languages in the extension archive. You can install them instead of English. If you have a multilingual version of JAWS, you can install several versions of the extension for different languages at the same time.
  3. Move to the nvMathViewer.jss file in the JAWS user settings directory and press Enter. The file should open in the Script Manager.
  4. In the Script Manager window, open the menu by pressing Alt and activate “File” → “Save” (or just press Control+S). In response, you should receive the message “Compile Complete”.
  5. In the Script Manager window, open the menu by pressing Alt and activate “File” → “Open User File”. In the standart file open dialog, select and open the myExtensions.jss file in the default directory. If there is no myExtensions.jss in this directory then you need to close this dialog by pressing Escape and find this file in the shared files directory. To do this, In the Script Manager menu, activate “File” → “Open Shared File” and then select and open the myExtensions.jss file.
  6. Move to the end of the myExtensions.jss file (Control+End) and paste or type the following string:
    use "nvMathViewer.jsb"
  7. In the Script Manager window, open the menu by pressing Alt and activate “File” → “Save” (or just press Control+S). In response, you should receive the message “Compile Complete”. After that, the Script Manager can be closed (Alt+F4).
  8. Move one level up relative to the JAWS user settings directory. To do this, in the JAWS user settings directory, press BackSpace. You will find yourself in the language independent JAWS user settings directory. Copy the “nvMathViewer” directory from the extension archive to the language independent JAWS user settings directory.

To install the extension automatically use the install.vbs script from the archive. It supports three command line arguments:

For example, to install the English version of the extension for English JAWS 2020 run in the command line:
>cscript install.vbs //nologo 2020 enu
or to install the Russian version of the extension for English JAWS 2020 run:
>cscript install.vbs //nologo 2020 enu rus

You can also just run this script and enter all arguments with dialogs.

The script will take some time to complete all operations. Wait for the message about the end of the installation process.

Initial setup

This extension adds several extra scripts to JAWS. By default they are unassigned, so you will have to add keystrokes or gestures for them yourself. The extension contains the following scripts:

Script Name Synopsis
ViewLaTeXAsInteractiveMathML View the selected LaTeX notation as interactive MathML in your browser.
ViewAsciiMathAsInteractiveMathML View the selected AsciiMath notation as interactive MathML in your browser.
ViewLaTeXAsSourceMathML View the selected LaTeX notation as the MathML source in the Virtual Viewer.
ViewAsciiMathAsSourceMathML View the selected AsciiMath notation as the MathML source in the Virtual Viewer.

To add keystrokes for these scripts follow these steps:

  1. Open the JAWS user settings directory (see “Installation” section).
  2. Move to the DEFAULT.JKM file in the JAWS user settings directory and open it with a text editor, for example Notepad. To do this, use “Open With” submenu in context menu of this file. You can also launch Notepad and open the DEFAULT.JKM file with the standart open file dialog (Control+O).
  3. In the DEFAULT.JKM file, find the “[Common Keys]” line and insert the lines for adding keystrokes after it like this:
    [Common Keys]
    %KEYSTROKE%=%SCRIPT%
    
    where For example:
    Insert+Alt+A=ViewAsciiMathAsInteractiveMathML
    
  4. Close the DEFAULT.JKM file and save the changes.

If the DEFAULT.JKM file is not in the JAWS user settings directory then just copy the ready DEFAULT.JKM file from the extension archive there.

After that, you will be able to manage keystrokes or gestures of these scripts in key map file with the Keyboard Manager of JAWS (“default” key map file). For more information about using the Keyboard Manager, read the JAWS Help → Customizing JAWS for Windows → Keyboard Manager.

Using

  1. Select the text of LaTeX or AsciiMath notation and perform one of the assigned keystrokes or gestures (see “Initial setup” section).
  2. The window of your browser or Virtual Viewer will open, where you can view the conversion result.

If there is no the selected text then the extension will try to take a text from the clipboard.

When converting LaTeX the “$” characters at both ends of the text, the “\[” characters at the beginning of the text, and the “\]” characters at the end of the text are automatically removed.

For more information about interactive navigation through mathematical content, read the JAWS Help → Using the Internet with JAWS → Navigating Web Pages → MathML.

Examples

If you select the following LaTeX notation and perform the ViewLaTeXAsInteractiveMathML script

x_{1, 2} = \frac{-b \pm \sqrt{b^2 -4ac}}{2a}

or you select the following AsciiMath notation and perform the ViewAsciiMathAsInteractiveMathML script

x_(1, 2) = (-b +- sqrt(b^2 -4ac))/(2a)

then it can be viewed in the following form:

x 1 , 2 = b ± b 2 4 a c 2 a

Version history

Licenses

nvMathViewer is a free/libre and open source software.

Links