hocr-javascript
hocr-javascript copied to clipboard
switch inline style to use height and width instead
Hi! I stumbled across your library and am really glad I did. I noticed your inline style application applies a right and bottom property. When I pull up your sample letter it looks like this in Chrome:

I think you are intending to set the bounding box for each word, in which case instead of right and bottom, the CSS properties width and height should be used, so that properties like outline and background will be able to determine the box dimensions. When I apply the changes in this pull request, the letter looks like this:

From what I can see of the code it looks like that's more what you intended for the effect of the library. If not, feel free to close/ingore this PR.
Thanks again!