Lesson 15: Importing Source Formats II: LaTeX, XML, NIMAS, and EPUB
Lesson at a glance
Learning objectives
By the end of this lesson you will be able to:
- Explain the special math consequence of importing LaTeX.
- Distinguish general XML from NIMAS XML.
- Treat EPUB as its own packaged-publication workflow.
- Write a post-import checklist for each format.
Tip
More practice: Lab 2, Lab 3: When LaTeX Misbehaves, and a NIMAS-style set in the sample files.
How to use this lesson
This lesson continues from Lesson 14 with the four formats that need the most care: LaTeX, general XML, NIMAS XML, and EPUB. Keep the key rule from Lesson 14 in mind throughout: the file extension tells you how the source is encoded, and the source structure tells you what BrailleBlaster can preserve.
NIMAS also has its own full lesson in the transcriber track (Lesson 20). Here you only need to be able to recognize NIMAS and keep it separate from general XML.
Importing LaTeX
What LaTeX is
LaTeX is a markup system commonly used for technical and mathematical documents.
For example:
\section{Energy}
The formula is $E=mc^2$.
LaTeX communicates both document structure and mathematical notation through commands.
LaTeX has a special math consequence
When LaTeX is opened in BrailleBlaster, LaTeX mathematics is converted into ASCII Math in the relevant workflow.
The current BrailleBlaster documentation notes an important exception involving NIMAS XML, TXT, BRL, and ZIP file types.
Therefore:
Do not assume that seeing LaTeX source commands in the original file means those commands will remain visible after import.
The mathematics enters BrailleBlaster’s math workflow and must be checked there.
What to check
After opening a LaTeX document:
- section and heading structure;
- equations;
- fractions;
- superscripts and subscripts;
- mathematical symbols;
- displayed mathematics;
- math translation;
- Print View;
- Braille View.
Worked Demonstration — LaTeX
Source:
\section{Motion}
\[
v = \frac{d}{t}
\]
Expected workflow
- Open the
.texfile. - Verify that
Motionbecame the intended heading. - Inspect the imported equation.
- Verify the fraction structure.
- Check the mathematical representation.
- Check the resulting braille.
Do not assume that a visually correct Print View guarantees a correct mathematical braille representation.
Practice
Import:
\section{Fractions}
\[
\frac{3}{4} + \frac{1}{2} = \frac{5}{4}
\]
Answer Key
Check:
- The heading.
- The three fractions.
- The mathematical operators.
- The imported math structure.
- The resulting braille.
Importing General XML
XML is not automatically NIMAS
XML stands for eXtensible Markup Language.
XML is a framework for representing structured information. An XML file may use a publisher’s own vocabulary and tags.
For example:
<section>
<h1>Energy</h1>
<p>Energy can change from one form to another.</p>
</section>
The fact that the file ends in .xml does not tell the transcriber that it is NIMAS.
An XML file might instead be:
- publisher-created XML;
- a custom educational XML vocabulary;
- an XML export from another application;
- NIMAS XML;
- another specialized XML format.
Why general XML needs separate treatment
A custom XML file may contain tags such as:
<chapter>
<title>Plants</title>
<paragraph>Plants need light.</paragraph>
</chapter>
The transcriber must determine what those tags mean.
For example:
- Does
<title>represent a heading? - Does
<paragraph>represent ordinary body text? - Does
<item>represent a list item? - Is a
<table>actually structured as a table? - Are page numbers represented?
- Is mathematical information present?
- Are images and captions represented?
The XML tags themselves do not automatically determine the final braille formatting.
Worked Demonstration — General XML
Source:
<chapter>
<title>Birds</title>
<paragraph>Birds have feathers.</paragraph>
<paragraph>Many birds can fly.</paragraph>
</chapter>
The intended structure might be:
Birds
Birds have feathers.
Many birds can fly.
Expected workflow
- Determine what XML vocabulary is being used.
- Identify the semantic meaning of the tags.
- Open the XML in BrailleBlaster.
- Inspect how the tags were mapped.
- Verify the heading structure.
- Verify the paragraph structure.
- Check Braille View.
- Manually correct anything that did not map as intended.
Practice
Given:
<section>
<heading>Weather</heading>
<item>Rain</item>
<item>Snow</item>
</section>
Determine:
- Which element is probably a heading?
- Which elements are probably list items?
- What must be verified after import?
Answer Key
<heading>is probably a heading.<item>elements are probably list items.- Verify that BrailleBlaster actually imported them as the intended styles and list structure. Check indentation, continuation lines, and Braille View.
Importing NIMAS XML
NIMAS is a specific XML workflow
NIMAS is an XML-based standard used for accessible instructional materials.
It is important to distinguish:
General XML is not automatically NIMAS.
NIMAS has a particular structure and intended use, and BrailleBlaster provides specialized tools for NIMAS files.
NIMAS-specific features
Depending on the source and workflow, NIMAS can provide structured information for:
- headings;
- lists;
- tables;
- page information;
- images;
- mathematical material;
- production notes;
- document navigation.
BrailleBlaster has operations specifically associated with NIMAS files.
These include:
- Book Tree navigation;
- Production Note Manager;
- NIMAS-specific formatting;
- handling of structured source information;
- MathML-related processing.
Production Notes
NIMAS files may contain publisher production notes.
The transcriber should review these notes and determine how they should be handled rather than automatically assuming that every production note belongs in the final braille.
BrailleBlaster’s Production Note Manager provides options for handling production notes.
NIMAS practice
After opening a NIMAS file:
- Inspect the Book Tree.
- Review production notes.
- Check automatically imported headings.
- Check page numbers.
- Check lists.
- Check tables.
- Check mathematical material.
- Review images and descriptions.
- Proofread the resulting braille.
Key distinction
General XML
Determine what the XML structure means.
NIMAS XML
Use the standardized structure and NIMAS-specific BrailleBlaster tools, then verify the automated formatting.
Importing EPUB Specifically
EPUB is its own import workflow
BrailleBlaster supports EPUB e-books (.epub) as an input format.
EPUB should be treated separately from both general XML and NIMAS.
An EPUB is a packaged electronic publication. It can contain multiple structured content files along with navigation, styles, images, metadata, and other resources.
Opening an EPUB
- Select File > Open.
- Select the
.epubfile. - Allow BrailleBlaster to import the publication.
- Inspect the imported structure.
- Check chapter boundaries.
- Check headings.
- Check lists and tables.
- Check images and captions.
- Check links and footnotes.
- Check mathematics if present.
- Proofread the resulting braille.
Why EPUB needs careful review
An EPUB may contain:
- multiple XHTML/HTML content documents;
- navigation information;
- stylesheets;
- images;
- metadata;
- embedded resources;
- mathematical content;
- footnotes;
- hyperlinks.
The EPUB importer therefore has to reconstruct a usable document from a packaged electronic publication.
Worked Demonstration — EPUB
Imagine an EPUB containing:
Chapter 1
Chapter 2
Chapter 3
Each chapter contains:
- headings
- paragraphs
- lists
- one image
- a caption
Check 1 — Navigation
Do the chapters appear in the correct order?
Check 2 — Headings
Do the chapter titles have appropriate heading levels?
Check 3 — Lists
Are list items actually structured as lists?
Check 4 — Figures
Is the image present or represented appropriately?
Is the caption separated from any transcriber-generated description?
Check 5 — Page Structure
Does the imported document need print-page information or other production formatting added?
Source Citations
- BrailleBlaster current documentation — supported opening formats and file-import behavior, including Markdown, OpenDocument, LaTeX, XML, EPUB, and other supported formats.
- BrailleBlaster FAQ — supported Markdown, ODT, DOCX, HTML, EPUB3, XML, and TXT files.
- BrailleBlaster User Manual — LaTeX, Pandoc-supported document types, and mathematical import/conversion.
- BrailleBlaster User Manual — NIMAS-specific operations, Book Tree, and Production Note Manager.
- BrailleBlaster release information — EPUB importer and NIMAS/XML improvements.