You are on page 1of 6

LaTeXVoice: Software For Creating And Editing

Latex Documents, Designed For Visually Impaired


Users
J. Prada Sanmiguel L. C. Martini
Department of Communications - Decom Department of Communications - Decom
University of Campinas - Unicamp University of Campinas - Unicamp
São Paulo, Brazil São Paulo, Brazil
pradajul@decom.fee.unicamp.br martini@decom.fee.unicamp.br

Abstract— In this paper we present the application LaTeXVoice, write the text and then using a LaTeX compiler language is
which is a software tool that allows reading, creating, editing and implemented out document. Other advantages founded in
compiling LaTeX files, through the integration of accessibility LaTeX are:
features aimed at visually impaired people. The main objective of
this project is the development of an interactive platform, which  LaTeX allows you to create truly professional-looking
allows people with any degree of visual impairment, they can documents.
produce easy and friendly a scientific paper in PDF (Portable
Document Format) using the LaTeX language. This application  LaTeX guides the author to concentrate on the content
uses speech synthesis and audible interactive controls, which are and logic of the ideas and not their appearance,
specially adapted to the needs and constraints that can get to allowing obtaining well-structured documents.
have a visually impaired person. Currently, the program's  Create and edit LaTeX math equations using a fairly
interface supports three languages (Spanish, English and
robust set of instructions, while generating visually
Portuguese), however in the future seeks to extend its support. To
date, it is not known to the authors of this paper the existence of a
pleasing results.
similar application that allows visually impaired person to create  Structures or sections of the document, such as
any kind of scientific paper involving mathematical equations. references, tables of contents, citations, etc., can be
easily generated throughout the document.
Keywords- visually impaired people, latex, scientific papers.
 The insertion of the sequential numbering of chapters
I. INTRODUCTION and sections is performed automatically.
Today people with some degree of visual impairment have  The computational resources required for the process
difficulty using computer tools, because even though there are of writing and compiling code are few.
different types of software, such as screen readers and
magnifiers, they still do not allow overcoming all obstacles to II. LATEXVOICE SOFTWARE
accessibility and usability found in these programs [4]
LaTeXVoice is an integrated development environment
Nowadays people with visual impairment have limitations (IDE Integrated Development Environment) that generates
when read, edit and create documents such as scientific books LaTeX documents, see Fig. 1. This application is targeted for
and articles containing mathematical equations, because the users with visual impairments as it implements a number of
tools currently available for this purpose are not fully capabilities and features that make it fully accessible for this
accessible to the user. For these reasons we developed this type of users. As accessibility and usability features may be
application LaTeXVoice, who taking advantage of the LaTeX mentioned the following
language for composing scientific texts, implements a text
 LaTeX allows you to create truly professional-looking
editor with LaTeX own functions, adapted to the use of a
documents.
visually impaired person.
LaTeX is a typesetting system for document preparation,  The program's user interface can be fully controlled
widespread in academic environments such as universities, using the keyboard.
which allows producing scientists and mathematical documents  The user controls and wizards were developed
of high typographical quality, as well as other types of considering the physical limitations that can have a
documents, from letters to full books. Unlike most text editors user with visual impairment.
known as Microsoft Word, Writer, Free Office, etc., in our case
the use of LaTeX is more advantageous, since this is based on  Implementation of a voice synthesizer that provides
the concept: let publishers worry about the edition and the the user with audible feedback. These feedbacks help
authors for the content, meaning that the author only needs to
guide the visually impaired through each of the  Voices SAPI5, depending on user preference.
options of the application. Windows by default includes a US English voice;
additional voices can be purchased no market.
 Audible Help Messages, which can be accessed by the
user at any time. They provide information about the III. LATEXVOICE FEATURES
condition and performance of each system options.
LaTeXVoice arose from the need to create a tool that would
 Talking Text Editor developed according to the enable and facilitate the visually impaired users to create and
specific needs of a person with visual impairment. edit technical documents containing mathematical equations.
This editor has commands and functions that make it Because it was necessary for the application to permit the
possible for anyone with some degree of visual author to focus their attention on the content and the logical
impairment can produce text comfortable and friendly distribution of ideas, not in appearance, and in turn, the
way. document obtained were well structured, with a professional
appearance.
 The application has the ability to generate LaTeX code
automatically, using different types of wizards, this For these reasons it was chosen as the language to LaTeX
greatly facilitates the configuration process of format for documents created with LaTeXVoice program.
document parameters, thus avoiding the generation of However, the use of LaTeX presents some difficulties
errors in the compilation process program. inexperienced users with the language, and even worse if the
target audience is the application visually impaired users. Some
 Natural language processing, which enables playback of these problems are:
instructions and mathematical equations in a
compressible and natural language humans.  Setting the document by means of commands and
instructions, this can produce errors when compiling
 Implementation of schemes for high-contrast colors the document.
for visually impaired users.
 The user needs to have prior knowledge of logic,
 Compatibility with standard Microsoft SAPI5 structure and syntax of the statements used in LaTeX.
synthetic voices, allowing the user to use the kind of
voice you prefer.  Some errors or formatting problems are not detected
by the compiler LaTeX, and can only be detected by
viewing the document directly.
 Mathematical equations summarized or reproduced
linearly are difficult to understand for blind users.
To solve the problems listed above, LaTeXVoice
implements a series of wizards that allow users to configure
and create a document quickly and friendly, without the need
for prior knowledge of LaTeX language, since most of the
instructions and commands are generated internally by the
application. On the other hand, users are more familiar with
LaTeX, can directly write the code in the application, without
the need to use wizards for this purpose. LaTeXVoice wizards
allow:
 Setting the preamble of the document, which have
parameters such as the type of document, type of
paper, the margins of the page, the font size, etc., see
Fig. 2.
 Setting the title, abstract, keywords, and authors of the
document.
Figure 1. Software LaTeXVoice
 Inserting headers and footnotes page.
For proper operation of LaTeXVoice there are some  Creating, editing and inserting mathematical
minimum system requirements, which are listed below: equations, tables, lists and figures.
 Windows XP or higher operating system.  Creating, editing and inserting references. The
 Distribution LaTeX/MikTeX 2.9 or higher, which is bibliography reference format is set automatically by
freely available on internet. the application, depending on the type of this:
congress, article, book, etc.
 Libraries Microsoft Speech API (SAPI - Speech
Application Programming Interface), which are  Setting the text formatting: type, size, style and color.
normally included in the Windows OS.
Figure 3. LaTexVoice system structure.

A. Build Process
When you create a new document, are created a number of
files and folders which allow automatically organize each
document related files like folders for figures, tables,
mathematical equations, references, etc., see Fig. 4.

Figure 2. Wizard to configure the document preamble.

IV. SYSTEM STRUCTURE


The LaTeXVoice application is structured as shown in Fig.
3, the first stage consists of the graphical interface and wizards
and a second that uses external resources, such as audio
libraries to implement resources and accessibility options, and
compiler for the interpretation and compilation of LaTeX code.
Figure 4. Directory structure of a project LaTeXVoice.
Microsoft Speech API (SAPI): Speech Application
Programming Interface (SAPI) is a set of libraries developed by
Microsoft to allow the use of TTS (Text to Speech) in Windows Moreover, the document settings are stored in XML files,
applications. LaTeXVoice uses these libraries to implement which are then read to generate the LaTeX code to be compiled
audible feedbacks, which allow the application to be accessible by the program.
to users with visual impairments. The process of compiling a project LaTeXVoice basically
Text to Speech Voices: Language and speech quality of the consists of the following steps:
application depends directly on the TTS voices installed on the  Reading XML configuration files for the LaTeX
Windows operating system, so the user is free to install and use document preamble.
the TTS voice of your choice, being only necessary that this
version is compatible with Windows SAPI5. In the market there  Reading XML file with the authors, title, keywords (if
are various companies such as Ivona Software, AT & T Natural any) of the document.
Voices, Nuance Vocalizer Voice, Acapela Group, etc., which
 Reading XML files with the references of the
offer different options TTS.
document.
Audio: The application uses a set of audio files in WAV and
MP3 formats, which are used to play sounds and messages in  Creation of an intermediate code, which is then
some parts of the program. translated into LaTeX language.

MiKTeX Compiler: MiKTeX is a TeX/LaTeX distribution  Creating a temporary file TEX, this contains the
for Windows that provides the necessary tools to create configuration and content of the document.
documents using TeX/LaTeX language. LaTeXVoice use this  The temporary files are sent to the TEX compiler
tool to interpret and compile LaTeX (File TeX) code and create MikTeX and generate a PDF document.
PDF documents.
 The audible MikTeX compiler returns a message
indicating the creation of the PDF file, if any
compilation errors, the program will prompt the user
through an audible message, type, description and the
position of the error.
V. CREATING AND READING MATHEMATICAL EQUATIONS
A big problem for the visually impaired during the process
of creating scientific content is writing mathematical
expressions, as mathematical notation must be shown in such a
way that the general structure of an equation can be quickly
transmitted to the reader of the document [5]. For example, in
(1) represents a mathematical equation with a notation that is
easily and quickly performed by the reader, on the other hand,
this does not happen with the equation in (2), which has the
same meaning of equation in (1), but uses a different
representation.

For the visually impaired write the (2) is easier, since this Figure 6. Wizard to select and insert symbols and mathematical functions
only uses plain text, however, your understanding will be more
difficult, both to him and to the reader. Equation (1) is further
illustrated, but his writing and comprehension is a major To read the mathematical equations, the system parses the
challenge for the visually impaired person. equation, identifying operators, functions, symbols, variables
and characters to generate a text string, which is played by the
LaTeXVoice implements a system for creating content using synthesizer in a natural language for humans. For example, in
LaTeX mathematical language, which by audible attendees, the (3):
user creates and generates the equation in the correct format
without having to worry about the prior knowledge of LaTeX
commands for this purpose. Fig. 5 and Fig. 6 describe the
assistants used to create mathematical equations. which would normally be summarized as:
to, equal to, backslash, sqrt, open
bracket, open bracket, b, backslash,
over, two, close bracket, close
bracket
in LaTeXVoice is reproduced as follows:
a, equal to, square root, b, divided
by two
This type of reading makes the process of editing and
creating mathematical equations, and in turn makes the visually
impaired have a mental image of the closest to reality
mathematical equation.
For further processing and playback of the mathematical
equation, LaTeXVoice does the following:
 Capturing the mathematical equation.
The equation is A = \ sqrt {{b \ over 2}}
Figure 5. Wizard for creating and editing mathematical equations.  Parameter identification and separation.
A = \sqrt { { b \over 2 } }
 Allocation audio, see Tab. 1.
TABLE 1. ALLOCATION AUDIO TO THE PARAMETERS OF A MATHEMATICAL Moreover, when a new document is created, they are
EQUATION created a series of XML files, which will store information
related to the document settings, for example document type,
Parameter Audio number of columns, document title, margins, information about
A a authors, etc.
= Equal to These files allow the user to press for example Ctrl + F2,
\sqrt Square root learn about writers, such as:
{
{ First author, name, Julian Prada
b b Sanmiguel, institution, Unicamp,
\over Divided by department, Decom ... etc.
2 two Another example would be when you press Ctrl + F3, the
} program could talk:
} Document Type: Article in two
columns, page size: A4, upper margin,
 Creating text string to play two centimeters ... etc.
a, equal to, square root, b, divided by This type of support allows the visually impaired to quickly
two. access, information and document settings, allowing the user to
mentally visualize the format and final appearance of the
 Playing the mathematical equation. document.
VI. TALKING TEXT EDITOR VIII. CONCLUSIONS
LaTeXVoice implements an audible text editor, which is This article was submitted an application that allows and
based on the text editor for the visually impaired program facilitates visually impaired create and edit scientific
known as Dosvox [3]. This editor uses a speech synthesizer to documents using LaTeX language. This tool allows the
play in real time, the text the user will write and provides deficient to create well-structured documents with a
immediate feedback that notifies you when certain action such professional look.
as copy, cut, paste, select, etc., is performed. Moreover, the
editor is adapted to recognize and interpret LaTeX code, so this Wizards implemented in LaTeXVoice allow the visually
allows specific actions depending on the LaTeX sentence impaired, set the main parameters of the document without the
recognized. Fig. 7 shows the basic structure of the text editor. need for prior knowledge of the structure and syntax of LaTeX
commands and instructions.
Using wizards decreases the generation of errors at compile
time of the document, as the LaTeX code is generated internally
by the program, so the user does not interact directly with this.
Moreover the learning curve of the program also decreases
dramatically because prior knowledge of LaTeX is not required
to use the application.
LaTeXVoice help the visually impaired in creating and
editing mathematical equations, as the wizard created for this
purpose, gives a reading of the equation in a language
comprehensible to humans, allowing the deficient, have better
mental visualization equation that is writing.
The text editor implemented in LaTeXVoice was developed
taking into account the specific needs of the visually impaired,
which makes the process of writing and reading the document
is quite easy and natural for users with disabilities.
Figure 7. Text editor structure Use TTS for synthesizing and playing text makes the user to
use the program in the language and voice playback quality on
VII. SYSTEM USER SUPPORT your preference. Currently LaTeXVoice is available in English,
LaTeXVoice contains audible helpful information which can Spanish and Portuguese, but soon will have support for more
be heard by pressing the F1 key, this information will vary languages.
depending on the window that is currently visible and active. It
also has an audible tutorial where users are taught to handle the
program interface and provides information about each REFERENCES
available instruction LaTeX.
[1] J. Prada. “Desenvolvimento de um Programa Aplicativo de Uso para [4] J. A. Borgues. “Dosvox – Uma nova realidade educacional para
Deficientes Visuais que Proporciona a Implementação de Cálculo de Deficientes Visuais”. Jornal Benjamim Constant, Rio de Janeiro, Brazil,
Formas Matemáticas num Editor de Texto”. Master Thesis. University of 1996, vol. 3.
Campinas, SP, Brazil, 2010. [5] S. Eberli, Samer. “O Software Livre como Alternativa para a Inclusão
[2] J. Prada. Mathematics software programming resources aimed at Digital do Deficiente Visual”. Master Thesis. University of Campinas,
visually impaired users - Matvox. Advances in Information Technology SP, Brazil, 2006.
and Applied Computing, ICISCA, Bali, Indonesia, 2012, vol. 1, pp 310- [6] P. Mejia, “Application of Mathematical Finance Program designed for
314. visually impaired users”, Advances in Information Technology and
[3] M. Pinheiro. “Edivox – Editor de textos para deficientes visuais”, Applied Computing, ICISCA, Bali, Indonesia, 2012, vol. 1, pp 315-320.
Bachelor computer thesis. IM/UFRJ, Brazil. 2004

You might also like