This version of dvi2html
is modified for the tikzjax
project.
Note that the opentype bakoma fonts are used instead of the truetype fonts because of a glyph issue in the truetype
fonts. The unicode character U+00AD
is used to index one of the glyphs in the truetype fonts. That is a soft hyphen
which is a character that browsers will not show even though that is not what the character is in the font. The opentype
bakoma fonts also have a glyph issue. They contain invalid out of range glyph indices. As such, to use them the invalid
glyphs need to be removed. This is done in the tikzjax
project.
Run
npm install
npm run build
The original code in this project is based on code from the PyDVI and the work of @tmanderson
The goal with this project is to eventually have a complete DVI tool set written in node. Once complete, this will hopefully be used to implement TeX document conversions completely in node (particularly a highly configurable HTML/CSS/JS output).
There is a DVI Specification Explained section on the wiki of tmanderson/dviparser (sourced from a few different online pages) for reference.
- DVI Parser
- TFM Parser
- Metric management (right now, fonts are found using
kpsewhich
) - HTML/CSS/JS conversion