Expand description
The reader of a table of cells: read_grid reads the body of a cells
environment into the table’s grid, at lowering.
Every rule that lowers a table calls read_grid, and nothing stores
its result. It reads the table in two passes. The first pass collects the
names of the rows and columns, then reads the instructions in order,
keeping a current row and column, and places every cell whose rectangle
is closed, which fixes the table’s size. The second pass gives each cell
spanning “to the end” (\merge{2-}) the end of the table as finally
built. Then the cells are checked for overlaps, and the later of two
overlapping cells is left out.
§The result
A Grid: the table’s model, which is the payload of the
flm.pres.cells node the rule stages (CellsPayload); the content of
each cell, in the order of the model’s entries (CellContent); every
problem found, each with the dropped mark for what it left out, where it
left something out (Problem); and the cell styles the table’s tokens
refer to.
Structs§
- Grid
- A table of cells as its reader reads it (
read_grid). - Problem
- One problem the reader found in a table: the Error to report and, where the reader left something out, the dropped mark to place for it.
Enums§
- Cell
Content - The content of one cell of a
Grid: the nodes of the document that hold it.
Functions§
- read_
grid - Reads the table of cells
node— acellsenvironment — against the style declarationsstyles.