Skip to content

Latest commit

 

History

History
468 lines (284 loc) · 14.4 KB

CHANGELOG.rst

File metadata and controls

468 lines (284 loc) · 14.4 KB

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.5.4 (unreleased)

Bug fix release

Fixed

v0.5.4 (2021-11-13)

Bug fix release

Fixed

Use an alternative implementation of :class:`~benker.common.lxml_qname.QName` for lxml versions v4.2 and earlier (rather than v4.0).

Other

Change in the documentation:

  • Fix a broken and redirected links in the documentation.
  • Add the missing documentation for the :mod:`benker.schemas` module.
  • Correct the TOC in the API documentation.
  • Remove 3.10 from the dependency matrix (not yet validated).
  • Improve the layout of the API documentation.

v0.5.3 (2021-11-11)

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).
  • Change in the CALS parser: improved empty cells detection for Formex4 conversion (<IE/> tag management).

v0.5.2 (2019-11-25)

Bug fix release

Fixed

  • Documentation: improve API documentation for CALS table builder.
  • Change in the Formex/CALS builders and parsers: Add support for the @cals:cellstyle attribute (extension). This attribute is required for two-way conversion of Formex tables to CALS and vice versa. If the CELL/@TYPE and the ROW/@TYPE are different, we add a specific "cellstyle" style. This style will keep the CELL/@TYPE value.
  • Fix in calstblx.xsd: change the definition of tgroup: tfoot may be placed after tbody (extension).

v0.5.1 (2019-11-12)

Bug fix release

Changed

Add the :func:`~benker.units.parse_width` function used to parse a width and return the value and its unit.

Fixed

Other

v0.5.0 (2019-09-25)

Minor release

Changed

  • Refactoring (rename "Formex4" to "Formex"):
    • the module benker/builders/formex4.py is renamed benker/builders/formex.py,
    • the module benker/converters/ooxml2formex4.py is renamed benker/converters/ooxml2formex.py,
    • the module benker/parsers/formex4.py is renamed benker/parsers/formex.py,
    • the class Formex4Builder is renamed FormexBuilder,
    • the class Ooxml2Formex4Converter is renamed Ooxml2FormexConverter,
    • the function convert_ooxml2formex4 is renamed convert_ooxml2formex,
    • the class Formex4Parser is renamed FormexParser,
  • Change in the class :class:`~benker.table.Table`: add the method :meth:`~benker.table.Table.fill_missing` to fill the missing cells in a table.
  • Change in the class :class:`~benker.builders.cals.CalsBuilder`: Add support for the @cals:rowstyle attribute (extension). The @colnum and @align attributes are generated for the <colspec> element. The new options cals_ns and cals_prefix allow the used of namespaces in CALS. The option tgroup_sorting can be used to sort the thead, tbody and tfoot elements.
  • Change in the method :class:`~benker.parsers.base_parser.BaseParser.parse_file`: Always generate the XML declaration in the destination file.

Added

  • Change in the converter: :func:`~benker.converters.ooxml2formex.convert_ooxml2formex`: Add the option use_cals (and related options: cals_ns, cals_prefix and width_unit): This options is used to generate additional CALS-like elements and attributes to simplify the layout of Formex document in typesetting systems.
  • Add support for the Table/Cell shading in the OOXML parser.
  • Add support for bgcolor (Table/Cell background color) in the CALS builder.
  • Add support for bgcolor (Table/Cell background color) in the Formex 4 builder (only with the use_cals option).
  • New parser: :class:`~benker.parsers.cals.CalsParser`: CALS tables parser.

Fixed

Other

  • Fix an issue with the AppVeyor build: upgrade setuptools version in appveyor.yml, change the Tox configuration: set py27,py34,py35: pip >= 9.0.3, < 19.2.
  • Change the project‘s slogan: “Easily convert your CALS, HTML, Formex 4, Office Open XML (docx) tables from one format to another.”
  • Change Tox configuration file to test the library with lxml v4.3 on Python 3.4 (support for Python 3.4 was removed in lxml v4.4).
  • Change Tox configuration file to test the library on Python 3.8.
  • Change the Travis CI configuration to build on Python 3.7 and 3.8-dev.
  • 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 :class:`~benker.builders.formex4.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.

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

v0.4.0 (2019-04-23)

Feature release

Added

v0.3.0 (2019-02-16)

Feature release

Added

  • Change in the parser :class:`~benker.parsers.ooxml.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 :class:`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

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

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 :class:`~benker.grid.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.