kba / hocr-spec

The hOCR Embedded OCR Workflow and Output Format
http://kba.github.io/hocr-spec/1.2/
72 stars 20 forks source link

nobr #68

Open kba opened 7 years ago

kba commented 7 years ago

If necessary, the markup may use the following non-standard tags:

  • <{nobr}> to indicate that line breaking is not permitted for the enclosed content

This is indeed non-standard and was never part of any HTML spec. Has anyone an example when it would be necessary to indicate that linebreaking is not allowed? Why not white-space: nowrap; CSS?

amitdo commented 7 years ago

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nobr https://developer.mozilla.org/en/docs/Web/HTML/Element/wbr

amitdo commented 7 years ago

https://html.spec.whatwg.org/multipage/semantics.html#the-wbr-element http://caniuse.com/#search=wbr

kba commented 7 years ago

wbr is not tthe problem, nobr is.

amitdo commented 7 years ago

The title of this issue is 'nobr and wbr'...

amitdo commented 7 years ago

wbr is not tthe problem, nobr is.

Actually it is if you want to support any version of IE.

kba commented 7 years ago

Actually it is if you want to support any version of IE.

image

Seriously though, you have a point, I'm not sure how well hOCR and IE go together, that might warrant its own issue.

amitdo commented 7 years ago

hOCR was design in 2007. At that time IE was the dominant player.

hOCR should suppert IE11.

If we ever publish hOCR v2.0, it would be reasonable to drop support for that loved :laughing: browser .

wanghaisheng commented 7 years ago

" it would be reasonable to drop support for that lovely 😆 browser ." +1