fix: add table raw content when no table structure model is used (#1815)

* add table raw cells when no table structure model was used

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>

* Add RichTableCell instance for tables with missing structure.

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

* Update test GT

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>

---------

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Co-authored-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
Michele Dolfi
2025-10-02 13:46:42 +02:00
committed by GitHub
parent f0b630e24e
commit 4f295ed051
34 changed files with 6835 additions and 3389 deletions

View File

@@ -829,6 +829,16 @@
"content_layer": "body",
"name": "list",
"label": "list"
},
{
"self_ref": "#/groups/12",
"parent": {
"$ref": "#/tables/6"
},
"children": [],
"content_layer": "body",
"name": "rich_cell_group_7_0_0",
"label": "unspecified"
}
],
"texts": [
@@ -25408,7 +25418,11 @@
"parent": {
"$ref": "#/body"
},
"children": [],
"children": [
{
"$ref": "#/groups/12"
}
],
"content_layer": "body",
"label": "table",
"prov": [
@@ -25431,10 +25445,43 @@
"references": [],
"footnotes": [],
"data": {
"table_cells": [],
"num_rows": 0,
"num_cols": 0,
"grid": []
"table_cells": [
{
"row_span": 1,
"col_span": 1,
"start_row_offset_idx": 0,
"end_row_offset_idx": 1,
"start_col_offset_idx": 0,
"end_col_offset_idx": 1,
"text": "",
"column_header": false,
"row_header": false,
"row_section": false,
"fillable": false,
"ref": {
"$ref": "#/groups/12"
}
}
],
"num_rows": 1,
"num_cols": 1,
"grid": [
[
{
"row_span": 1,
"col_span": 1,
"start_row_offset_idx": 0,
"end_row_offset_idx": 1,
"start_col_offset_idx": 0,
"end_col_offset_idx": 1,
"text": "",
"column_header": false,
"row_header": false,
"row_section": false,
"fillable": false
}
]
]
},
"annotations": []
}