The hOCR Embedded OCR Workflow and Output Format
This repository contains the hOCR format specification originally written by Thomas Breuel.
1.0
English
1.1
English, 中文 (Chinese)
1.2
English
There is no formal body. Feel free to use the Github issues for discussion and questions. Pull requests are very welcome.
For quick questions you can use the hocr-spec gitter channel.
To build the spec, you will need to have installed:
To install the python requirements:
pip3 install --user -r requirements.txt
The Makefile will first look for a local bikeshed installation and fallback to docker to use the bikeshed docker container to build the spec.
To change the spec, adapt
<VERSION>/spec.md
to change the body of the spec<VERSION>/spec.before.html
to change
<VERSION>/spec.after.html
to change
<VERSION>/defs.yml
to change the definition lists for elements and propertiesThen run make VERSION=<VERSION>
to build that spec.
Examples:
1.2
version: make VERSION=1.2
or simply make
1.2-zh
version: make VERSION=1.2-zh
The goal of this project is to make the hOCR specification more accessible and easier to maintain.