table_get
Read a table's grid from a .docx by table number in the main story or a paragraph address in any story, returning cells, spans, merges, and paragraph addresses.
Instructions
One table's grid: its rows of cells, each with its first grid column (col), span (w:gridSpan), vmerge (null, "restart" or "continue") and the addresses of its own paragraphs. A nested table is a table of its own, numbered after the one holding it; an empty w:tbl takes a number and has no rows. table numbers the main story only; at works in any story (a footnote's table is numbered within that footnote's story).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Instead of `table`: any paragraph address in the table, in any story (`fn3/p1#…`, `hdr1.default/p1#…`); the reply's `table` is then numbered within that story. | |
| doc | Yes | Path to the .docx. | |
| table | No | Table number in the main story, 1-based in document order (the `cell.table` of a paragraph row); text-box and DrawingML tables are not counted. Tables of notes, headers and footers are reached with `at`. |