You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only reason I have been using .hocr.html instead of .hocr is because it should be possible to render hOCR documents as HTML, either plain or with some javascript to make it pretty. When opening .hocr files locally in a browser, media type is assumed to be text/plain and rendered as such. This is not a problem when serving files with a server that properly sets Content-Type to something the browser recognizes as HTML - application/hocr or text/vnd.hocr+xml or similar would not work BTW.
Since I (unfortunately) have very little to do with hOCR these days - we use PAGE-XML as the processing format and ALTO for archiving and presentation - I would be open to adapting IANA considerations to whatever benefits the community of actual users of the format.
Activity
kba commentedon Jan 6, 2026
The only reason I have been using
.hocr.htmlinstead of.hocris because it should be possible to render hOCR documents as HTML, either plain or with some javascript to make it pretty. When opening.hocrfiles locally in a browser, media type is assumed to betext/plainand rendered as such. This is not a problem when serving files with a server that properly setsContent-Typeto something the browser recognizes as HTML -application/hocrortext/vnd.hocr+xmlor similar would not work BTW.Since I (unfortunately) have very little to do with hOCR these days - we use PAGE-XML as the processing format and ALTO for archiving and presentation - I would be open to adapting IANA considerations to whatever benefits the community of actual users of the format.
milahu commentedon Jan 8, 2026
to make it pretty, see my hocr-to-epub-fxl
the conversion from hocr to html is done ahead of time
so readers dont require javascript