Zpravodaj Československého sdružení uživatelů TEXu, ISSN 1211-6661, eISSN 1213-8185, http://bulletin.cstug.cz/
Issue homepage: http://bulletin.cstug.cz/bul20001-3.shtml, URL to PDF: http://bulletin.cstug.cz/pdf/bul_0013.pdf
Volume 10, Number 1–3, pages 4447, 2000. BibTEX source; DOI:10.5300/2000-1-3/44
Published by CSTUG, printed and distributed by Konvoj, s. r. o.
DVIBRAILLE (in Czech)
Abstract: To convert a DVI file into braille, we have to do these four steps.
  1. Convert a DVI file to a plain text.
  2. Lines can be maximaly 32 characters long, so we have to split them and words, which are too long, have to be split too.
  3. Put Brailles' marks into the text. (Mark the text.)
  4. Convert the text to a character set which is suitable for printing on a braille printer.
The first step can be done with help of the perl module DVIParse (available from any CPAN site in the authors/id/JANPAZ/ directory). The callbacks are defined for each of the DVI instructions in the module. Thus the only thing which you have to do is to program them. For the next step the perl module from the same author, called hyphenation (available on the same site as the DVIParse), can be used. There is defined the function hyphenate in the module. It takes a word as its argument and returns an array of numbers saying where the word can be hyphenated. The third step seems to be the hardest. Firstly we have to know the semantics of the text to put brailles' marks correctly, for example a fraction 3/4. In the plain text the fraction takes 3 lines. The program doesn't know if it is a fraction or if there is underlined number 3 in the text and by chance there is number 4 under it. Each of these possibilities is marked differently. The last step is easy. You can do it with help of the script cstocs (in the case you are converting a czech text).
In my opinion this way is suitable only for converting a plain text not for structured text or text with higher mathematics.
DVIBRAILLE
Author
Jiří Tesař
Cited-by CrossRef


Webpage prepared by editors of the journal.