Tables, Figures and Document Structure
In this article
- Name the relationships a table, a figure and a section carry (cell to header, rows across a page break, caption to figure, block to heading, content to page furniture) and the wrong answer each loss causes.
- Store those relationships as block fields of the canonical document: a parent, a table as cells with row, column and page, a caption linked to its figure, a furniture marker, a page and bounding box.
- Explain linearization and why the text a later component reads is rendered from the stored blocks, never stored in their place.
- Terms defined here: linearization.
Overview
Here is the part of page 32 of Brightline's router manual manual-bl-r7 that holds the row for error code E-42, as its text layer stores it. Brightline is a home-internet provider with a support assistant on its website; the company, its manuals and their pages are made up.
Page 32
BL-R7 User Manual
E-42 The BL-R7 cannot reach the network Check the cable in the WAN port.
Back panel of the BL-R7Before you read on: a component that sees only these four lines is asked "what does E-42 mean, and what should the customer do?" What can it answer for sure?
Not much. It has the words but not which part is the meaning and which the action: the header row "Code Meaning Action" is printed on page 31. It does not know the row sits under the headings "Troubleshooting" > "Error codes", also on earlier pages. "Page 32" and "BL-R7 User Manual" look like two more rows of the table, though they are the running footer and header that repeat on every page. And "Back panel of the BL-R7" is just a line after a row: nothing ties it to the drawing of the router's back panel below the table, and the drawing itself is not in the text at all.
Every gap is a missing relationship, not a missing word. The fix: store each relationship as a field, and produce any plain text from those fields.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- What order alone cannot say
- Sections: every block knows its parent
- Tables: a grid, not a run of text
- Figures, captions and page furniture
- The block graph
- Linearization: text rendered from the structure
- A real parser stores the same pattern
- Common mistakes
- Sources
- Check yourself, 13 questions