From 4c7e5eb4447a843909cbc66c02322a59044ee8f0 Mon Sep 17 00:00:00 2001 From: Oksana Belyaeva Date: Tue, 26 Sep 2023 15:45:03 +0300 Subject: [PATCH] Esl 137 added boxes into table (#333) * ESL-137 added box extraction skeleton into scan table extraction * ESL-138 ESL-137 a lot of table changes - added CellWithMeta - change output table structure, remove CellProperies in output - change logic bbox extraction from image tables after debugging - change output in CSV, HTML, TABBY, PDF, SCAN readers - change all tests with tables - fixed styles * ESL-137 chnaged draw table script * ESL-148 added script of table word boxes drawing * TLDR-471 added angle rotation from PdfImageReader and Tables * ESL-137 fixed unit-tests * ESL-137 fixed after review; removing some unused functions - fixed after review - removing some unused functions * ESL-137 update docs * ESL-137 after review --- .../docx_reader/data_structures/cell_property.py | 13 +++++++++++++ dedoc/version.py | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 dedoc/readers/docx_reader/data_structures/cell_property.py diff --git a/dedoc/readers/docx_reader/data_structures/cell_property.py b/dedoc/readers/docx_reader/data_structures/cell_property.py new file mode 100644 index 00000000..ba4d172e --- /dev/null +++ b/dedoc/readers/docx_reader/data_structures/cell_property.py @@ -0,0 +1,13 @@ + + +class CellProperty: + """ + This class holds information about the table cell. + """ + def __init__(self, colspan: int, rowspan: int, invisible: bool) -> None: + """ + :param cell: class which should contain the following attributes: colspan, rowspan, invisible. + """ + self.colspan = colspan + self.rowspan = rowspan + self.invisible = invisible diff --git a/dedoc/version.py b/dedoc/version.py index 7602829c..e2bd0728 100644 --- a/dedoc/version.py +++ b/dedoc/version.py @@ -1 +1 @@ -__version__ = "" +__version__ = "0.11.2"