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: quote "x_font" property #625

Closed kba closed 7 months ago

kba commented 1 year ago

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

The x_font attribute must be quoted in case it contains spaces, otherwise a parser won't know where the value ends.

Untested and unsure whether the attribute-reading code needs corresponding adaption to deal with the quotes.

manisandro commented 7 months ago

Fixed in https://github.com/manisandro/gImageReader/commit/bfe810465f9a4e0e2c76e0a058884b123d46f3bd