* fix: handle OneCellAnchor images in Excel backend
Add support for OneCellAnchor image positioning in _find_images_in_sheet().
Previously, only TwoCellAnchor images had their position extracted; images
with OneCellAnchor (the default when inserting images in Excel) would
default to bounding box (0,0,0,0), placing them all at the top-left
corner regardless of their actual position.
Now OneCellAnchor images use the anchor cell as their bounding box
origin, correctly preserving the image's position in the output document.
* DCO Remediation Commit for Br1an67 <932039080@qq.com>
I, Br1an67 <932039080@qq.com>, hereby add my Signed-off-by to this commit: cd878618ff
Signed-off-by: Br1an67 <932039080@qq.com>
---------
Signed-off-by: Br1an67 <932039080@qq.com>
* fix(backend): improve Excel table detection with BFS and configurable tolerance
Replaces the bounding-box strategy with a Flood Fill (BFS) algorithm to correctly detect non-rectangular tables. Reverts span flattening to preserve semantic structure. Adds 'gap_tolerance' option to backend.
Signed-off-by: Rashidul Islam <rasidulislam71@gmail.com>
* fix(backend): improve Excel table detection with BFS and configurable tolerance
Replaces the bounding-box strategy with a Flood Fill (BFS) algorithm to correctly detect non-rectangular tables. Reverts span flattening to preserve semantic structure. Adds 'gap_tolerance' option to backend.
Signed-off-by: Rashidul Islam <rasidulislam71@gmail.com>
* chore: reverse unnecessary file changes
Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
---------
Signed-off-by: Rashidul Islam <rasidulislam71@gmail.com>
Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
Co-authored-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
* fix: xlsx doc parsing, now returning values instead of formulas
Signed-off-by: glypt <8trash-can8@protonmail.ch>
* fix: add test for better coverage of xlsx backend
Signed-off-by: glypt <8trash-can8@protonmail.ch>
* fix: add the total of ducks as a formula in the tests/data
This also adds the test that the value 310 is contained in the table.
Without the fix from the previous commit, it would return "B7+C7"
Signed-off-by: glypt <8trash-can8@protonmail.ch>
---------
Signed-off-by: glypt <8trash-can8@protonmail.ch>
* fix(xlsx): deal with chartsheets in workbooks
Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
* tests(xlsx): align test file names
Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
---------
Signed-off-by: Cesar Berrospi Ramis <ceb@zurich.ibm.com>
* feat: added excel backend
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* first msexcel backend
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added tooling for the cli
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* first working version for excel parsing of tables
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added proper typing for mypy
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added proper typing for mypy
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* refactor EXCEL to XLSX
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the unit tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* ran poetry lock
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* adding images to output [WIP]
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted the code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the mypy
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the msexcel
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the msexcel (2)
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the mypy
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added tests for merged cells in excel
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted the code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com>