manisandro / gImageReader

A Gtk/Qt front-end to tesseract-ocr.
GNU General Public License v3.0
1.6k stars 188 forks source link

hOCR editor: use "scan_res" instead of "res" #624

Closed kba closed 1 year ago

kba commented 1 year ago

cf. https://github.com/kba/hocrjs/issues/68:

The problem is the res property which is not part of the hOCR spec. I think this should be scan_res, i.e. in https://github.com/manisandro/gImageReader/blob/8a046ec7bf64e996fbc81187306334fbd11873c9/qt/src/hocr/OutputEditorHOCR.cc#L268:

-     attrs["res"] = QString::number(pageInfos.resolution);
+ attrs["scan_res"] = QString::number(pageInfos.resolution);

ht @khashashin

manisandro commented 1 year ago

Thanks

khashashin commented 1 year ago

@kba @manisandro thank you for the fix 👍