0.1.5 • Published 7 years ago
hocr-dom-jsdom v0.1.5
HocrDOM
Extend DOM to handle hOCR
hocr-dom
The main package, contains code for querying hOCR elements and parsing / accesing properties.
See the README for API docs.
In short, in the browser, you will only need
HocrDOM.extendPrototypes(window)
After this, you can use document.queryHocrAll
on document and elements, as
well as access properties via their hocr
property.
hocr-dom-jsdom
Contains a browser-independent HTML parser with built-in hOCR support, thanks to jsdom.