mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-29 05:24:28 +00:00
* Adding plain latex equations to table cells Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com> * Adding test files Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com> --------- Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>
174 lines
4.6 KiB
JSON
Vendored
174 lines
4.6 KiB
JSON
Vendored
{
|
|
"schema_name": "DoclingDocument",
|
|
"version": "1.5.0",
|
|
"name": "table_with_equations",
|
|
"origin": {
|
|
"mimetype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
"binary_hash": 6528760837820727976,
|
|
"filename": "table_with_equations.docx"
|
|
},
|
|
"furniture": {
|
|
"self_ref": "#/furniture",
|
|
"children": [],
|
|
"content_layer": "furniture",
|
|
"name": "_root_",
|
|
"label": "unspecified"
|
|
},
|
|
"body": {
|
|
"self_ref": "#/body",
|
|
"children": [
|
|
{
|
|
"$ref": "#/tables/0"
|
|
},
|
|
{
|
|
"$ref": "#/texts/0"
|
|
}
|
|
],
|
|
"content_layer": "body",
|
|
"name": "_root_",
|
|
"label": "unspecified"
|
|
},
|
|
"groups": [],
|
|
"texts": [
|
|
{
|
|
"self_ref": "#/texts/0",
|
|
"parent": {
|
|
"$ref": "#/body"
|
|
},
|
|
"children": [],
|
|
"content_layer": "body",
|
|
"label": "paragraph",
|
|
"prov": [],
|
|
"orig": "",
|
|
"text": ""
|
|
}
|
|
],
|
|
"pictures": [],
|
|
"tables": [
|
|
{
|
|
"self_ref": "#/tables/0",
|
|
"parent": {
|
|
"$ref": "#/body"
|
|
},
|
|
"children": [],
|
|
"content_layer": "body",
|
|
"label": "table",
|
|
"prov": [],
|
|
"captions": [],
|
|
"references": [],
|
|
"footnotes": [],
|
|
"data": {
|
|
"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": "The next cell has an equation",
|
|
"column_header": true,
|
|
"row_header": false,
|
|
"row_section": false
|
|
},
|
|
{
|
|
"row_span": 1,
|
|
"col_span": 1,
|
|
"start_row_offset_idx": 0,
|
|
"end_row_offset_idx": 1,
|
|
"start_col_offset_idx": 1,
|
|
"end_col_offset_idx": 2,
|
|
"text": "$A= \\pi r^{2}$",
|
|
"column_header": true,
|
|
"row_header": false,
|
|
"row_section": false
|
|
},
|
|
{
|
|
"row_span": 1,
|
|
"col_span": 1,
|
|
"start_row_offset_idx": 1,
|
|
"end_row_offset_idx": 2,
|
|
"start_col_offset_idx": 0,
|
|
"end_col_offset_idx": 1,
|
|
"text": "The next cell has another equation",
|
|
"column_header": false,
|
|
"row_header": false,
|
|
"row_section": false
|
|
},
|
|
{
|
|
"row_span": 1,
|
|
"col_span": 1,
|
|
"start_row_offset_idx": 1,
|
|
"end_row_offset_idx": 2,
|
|
"start_col_offset_idx": 1,
|
|
"end_col_offset_idx": 2,
|
|
"text": "$x=\\frac{-b \\pm \\sqrt{b^{2}-4ac}}{2a}$",
|
|
"column_header": false,
|
|
"row_header": false,
|
|
"row_section": false
|
|
}
|
|
],
|
|
"num_rows": 2,
|
|
"num_cols": 2,
|
|
"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": "The next cell has an equation",
|
|
"column_header": true,
|
|
"row_header": false,
|
|
"row_section": false
|
|
},
|
|
{
|
|
"row_span": 1,
|
|
"col_span": 1,
|
|
"start_row_offset_idx": 0,
|
|
"end_row_offset_idx": 1,
|
|
"start_col_offset_idx": 1,
|
|
"end_col_offset_idx": 2,
|
|
"text": "$A= \\pi r^{2}$",
|
|
"column_header": true,
|
|
"row_header": false,
|
|
"row_section": false
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"row_span": 1,
|
|
"col_span": 1,
|
|
"start_row_offset_idx": 1,
|
|
"end_row_offset_idx": 2,
|
|
"start_col_offset_idx": 0,
|
|
"end_col_offset_idx": 1,
|
|
"text": "The next cell has another equation",
|
|
"column_header": false,
|
|
"row_header": false,
|
|
"row_section": false
|
|
},
|
|
{
|
|
"row_span": 1,
|
|
"col_span": 1,
|
|
"start_row_offset_idx": 1,
|
|
"end_row_offset_idx": 2,
|
|
"start_col_offset_idx": 1,
|
|
"end_col_offset_idx": 2,
|
|
"text": "$x=\\frac{-b \\pm \\sqrt{b^{2}-4ac}}{2a}$",
|
|
"column_header": false,
|
|
"row_header": false,
|
|
"row_section": false
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"annotations": []
|
|
}
|
|
],
|
|
"key_value_items": [],
|
|
"form_items": [],
|
|
"pages": {}
|
|
} |