Closed kba closed 7 years ago
Nice. :)
I think a section should not reference itself (See ocr_carea
).
I think a section should not reference itself (See ocr_carea).
It's not, it's referring to the element which is defined in the section heading. For consistency I would leave it as it is.
I'll go ahead and merge this now to avoid conflicts, since the changes are all over the text. I'll integrate the classication above into the text.
So far, we're using the auto-generated
id=
attributes of the headings for internal linking, which is great for linking to "non-normative" sections but not ideal when referring to specific terms like classes (see #46).We're using bikeshed for building the HTML spec, which is used by both WHATWG and W3C for various specs like CSS and HTML, so it comes with a lot of shortcuts for defining and linking to various types of terms, values, interfaces etc. To make use of this, we need to map terminologies:
div
orspan
orp
but that it has exactly oneclass
attribute that starts withocr
.property
/value
terms seems the best option.property
/value
fitsocrp
. The latter are specificvalues
for the metadata propertyocr-capabilities
.To reference terms within the specs, I'd propose this scheme:
<dfn element>ocr_page</dfn>
<{ocr_page}>
<dfn property>bbox</dfn>
'bbox'
<dfn property>ocr-system</dfn>
'ocr-system'
<dfn for="ocr-capabilities">ocrp_lang</dfn>
''ocr-capabilities/ocrp_lang''
See http://kba.github.io/test/hocr-relink/ for a preview. Notice the list of terms and the backreferences if you click e.g. on http://kba.github.io/test/hocr-relink/#bbox.