Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v0.4.5 (unreleased)

Bug fix release

Fixed

Other

Change in the documentation: fix a broken and redirected links in the documentation.

v0.4.4 (2021-11-10)

Bug fix release

Fixed

Fix #13: ooxml2formex4 conversion – Loss of image calls in table conversion.

  • Modification of the OOXML parser to improve empty cells detection for Formex4 conversion (<IE/> tags management).

  • Modification of the Formex4 builder to better deal with empty cells (management of <IE/> tags).

v0.4.3 (2019-10-15)

Bug fix release

Fixed

Fix #5: The title generation should be optional.

  • Change in the Formex4Builder class: Add the detect_titles option: if this option is enable, a title will be generated if the first row contains an unique cell with centered text. The detect_titles options is disable by default.

Other

Change in the documentation: update the URL of the Formex documentation, use: https://op.europa.eu/en/web/eu-vocabularies/formex/.

v0.4.2 (2019-06-06)

Bug fix release

Fixed

Fix #1: Cell nature should inherit row nature by default.

  • Change in the class Styled: The default value of the nature parameter is None (instead of “body”).

  • Change in the methods insert_cell() and insert_cell() The nature of a cell is inherited from its parent’s row (or column).

Other

  • Change the requirements for Sphinx: add ‘requests[security]’ for Python 2.7.

  • Fix an issue with the AppVeyor build: change the Tox configuration: set py27,py34,py35: pip >= 9.0.3.

v0.4.1 (2019-04-24)

Bug fix release

Fixed

  • Change in the parser OoxmlParser: fix the ‘x-sect-cols’ value extraction when the w:sectPr is missing (use “1” by default).

  • Fix the Formex4 builder Formex4Builder: Generate a <IE/> element if the cell content (the string representation) is empty.

v0.4.0 (2019-04-23)

Feature release

Added

  • New converter: convert_ooxml2formex4(): Convert Office Open XML (OOXML) tables to Formex4 tables.

  • New builder: Formex4Builder: Formex4 builder used to convert tables into TBL elements.

  • Change in the parser OoxmlParser:

    • The section width and height are now stored in the ‘x-sect-size’ table style (units in ‘pt’).

  • Change in the builder BaseBuilder: Add the method finalize_tree(): Give the opportunity to finalize the resulting tree structure.

v0.3.0 (2019-02-16)

Feature release

Added

  • Change in the parser OoxmlParser:

    • Parse cell w:tcPr/w:vAlign values.

    • Parse paragraph alignments to calculate cell horizontal alignments.

    • Parse cell w:tcPr/w:tcBorders values to extract border styles.

  • Change in the builder benker.builders.cals.CalsBuilder:

    • Generate entry/@valign attributes.

    • Generate entry/@align attributes.

    • Generate entry/@colsep and entry/@rowsep attributes.

Changed

v0.2.2 (2018-12-15)

Bug fix release

Added

Fixed

  • Fix the implementation of parse_table(): use a new implementation of lxml.etree.iterwalk if using lxml < 4.2.1.

Other

  • Change Tox configuration file to test the library with lxml v3 and v4.

  • Add a changelog in the documentation.

v0.2.1 (2018-11-27)

Fixed

Other

  • Change link to PyPi project to “https://pypi.org/project/Benker/”.

  • Add the README to the documentation.

  • Add configuration files for TravisCI and AppVeyor.

v0.2.0 (2018-11-26)

Changed

  • Update project configuration

  • Add missing __init__.py file in tests directory: it is required for test modules import.

Fixed

  • Fix unit tests (Python 2.7).

  • Fix flakes8 problems.

  • Fix implementation of the Grid class for Python 2.7 (remove annotation). And minor fixes.

  • Remove pipenv configuration files.

  • Fix project configuration.

v0.1.0 (2018-11-26)

  • First version of Benker.