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.
Bug fix release
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).
Bug fix release
Fix #5: The title generation should be optional.
- Change in the
~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.
Change in the documentation: update the URL of the Formex documentation, use: https://publications.europa.eu/en/web/eu-vocabularies/formex/.
Bug fix release
Fix #1: Cell nature should inherit row nature by default.
- Change in the class
~benker.styled.Styled
: The default value of the nature parameter isNone
(instead of "body"). - Change in the methods
~benker.table.RowView.insert_cell
and~benker.table.ColView.insert_cell
The nature of a cell is inherited from its parent's row (or column).
- 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
.
Bug fix release
- Change in the parser
~benker.parsers.ooxml.OoxmlParser
: fix the 'x-sect-cols' value extraction when thew:sectPr
is missing (use "1" by default). - Fix the Formex4 builder
~benker.builders.formex4.Formex4Builder
: Generate a<IE/>
element if the cell content (the string representation) is empty.
Feature release
- New converter:
~benker.converters.ooxml2formex4.convert_ooxml2formex4
: Convert Office Open XML (OOXML) tables to Formex4 tables. - New builder:
~benker.builders.formex4.Formex4Builder
: Formex4 builder used to convert tables intoTBL
elements. - Change in the parser
~benker.parsers.ooxml.OoxmlParser
:- The section width and height are now stored in the 'x-sect-size' table style (units in 'pt').
- Change in the builder
~benker.builders.base_builder.BaseBuilder
: Add the method~benker.builders.base_builder.BaseBuilder.finalize_tree
: Give the opportunity to finalize the resulting tree structure.
Feature release
- Change in the parser
~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.
- Parse cell
- Change in the builder
benker.builders.cals.CalsBuilder
:- Generate
entry/@valign
attributes. - Generate
entry/@align
attributes. - Generate
entry/@colsep
andentry/@rowsep
attributes.
- Generate
- Change in the parser
~benker.parsers.ooxml.OoxmlParser
:- Add more supported border styles
Bug fix release
- Add a Python alternative to
lxml.etree.iterwalk
if using lxml < 4.2.1. See lxml changelog v4.2.1.
- Fix the implementation of
~benker.parsers.ooxml.OoxmlParser.parse_table
: use a new implementation oflxml.etree.iterwalk
if using lxml < 4.2.1.
- Change Tox configuration file to test the library with lxml v3 and v4.
- Add a changelog in the documentation.
- Fix Coverage configuration file.
- Fix and improve configuration for Tox.
- Fix docstring in
~benker.converters.ooxml2cals
. - Fix calculation of the
@frame
attribute in the methodbenker.builders.cals.CalsBuilder.build_table
.
- Change link to PyPi project to "https://pypi.org/project/Benker/".
- Add the README to the documentation.
- Add configuration files for TravisCI and AppVeyor.
- Update project configuration
- Add missing
__init__.py
file intests
directory: it is required for test modules import.
- Fix unit tests (Python 2.7).
- Fix flakes8 problems.
- Fix implementation of the
~benker.grid.Grid
class for Python 2.7 (remove annotation). And minor fixes. - Remove pipenv configuration files.
- Fix project configuration.
- First version of Benker.