* feat: add-image group serialization in html
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>
* Added Return value for crop_text method in segmentedPdfPage Class
Signed-off-by: rahuldas-dev <r.das699@gmail.com>
* fix: added return value of crop_text method along with return type annotation plus doc string
Signed-off-by: rahuldas-dev <r.das699@gmail.com>
---------
Signed-off-by: rahuldas-dev <r.das699@gmail.com>
* docs: Recommend installing all groups for mypy to work properly
Signed-off-by: Eugene <fogaprod@gmail.com>
* chore: Fix some incomplete type defs
Signed-off-by: Eugene <fogaprod@gmail.com>
---------
Signed-off-by: Eugene <fogaprod@gmail.com>
* Add chart tabular data serialization to HTML serializer
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
* Fixing pre-commit issues
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
* Fixed table serialization for tabular chart data
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
* test for loading doctags with chart data
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
* Improved loading doctags test with chart example, added tests for chart serialization into html and md
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
---------
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
Co-authored-by: Maksym Lysak <mly@zurich.ibm.com>
* iunitial attempt at HTML serializer
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* first version, to be tested thoroughly
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the new test
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* rewrote carefully the export-to-html into new framework
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the inline list-items
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the inline code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* migrated the table html code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the picture HTML serializer
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the html for Form and KeyValue
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* first version of KeyValue serialisation
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the key-value and form-region and added the GraphData serializer
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* need to do some mypy work now
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* passed the mypy
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added the get_excluded_refs function to obtain proper serialization
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* enabled the captions
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* removed empty lists
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added initial split view and customised styles
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* cleaned up, now waiting for page-indices propagationg
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the styles and parameters with split_page
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* propagated the parameter split_page_view
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* first fully working version
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* removed the prints
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the tests for html export
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* removed dead code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the test output
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted the code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* rename parameter tag to class_name
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* added serializers to table and picture
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* removed dead code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* various HTML serialization improvements (#242)
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
* added enum for different output styles
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
Co-authored-by: Panos Vagenas <pva@zurich.ibm.com>
* added intial delete and merge
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* work-in-progress for the delete option
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* working on the delete_document_item
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* verified the model-validation
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted the code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* fixed the delete item
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reproducible error in tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* before rebase with main
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the tests (2) and reformatted
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the iterate_items to reduce code duplication
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* mapped path method to _split_ref_to_path
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* made get_parent_ref private method
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated with new public functions
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* reformatted code
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* working on the comments of the PR
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* updated the test
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* factored out the internal tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* refactored the code and updated the tests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
* update return types, extend unit test
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
* add replace_item test
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
* revert unnecessary comments
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
---------
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
Signed-off-by: Panos Vagenas <pva@zurich.ibm.com>
Co-authored-by: Panos Vagenas <pva@zurich.ibm.com>
* feat: allow images in doctags deserializer to be optional and support multipage
Signed-off-by: Yusik Kim <kmyusk@gmail.com>
* chore: remove commented out lines
Signed-off-by: Yusik Kim <kmyusk@gmail.com>
* Avoid typecasting
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
---------
Signed-off-by: Yusik Kim <kmyusk@gmail.com>
Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
Co-authored-by: Christoph Auer <cau@zurich.ibm.com>
Preventing intersection_over_self to trhow DivisionByZero when area of the element is zero
Signed-off-by: Maksym Lysak <mly@zurich.ibm.com>
Co-authored-by: Maksym Lysak <mly@zurich.ibm.com>