WeasyPrint 0.8, tinycss and cssselect
- From:
- Simon Sapin
- Date:
- 2012-05-07 @ 17:24
Hi folks,
I’m happy to announce a new version of WeasyPrint as well as two new but
related projects.
As usual, WeasyPrint 0.8 has some new features. The big one is
*automatic layout* for tables. Roughly, columns will get their width
determined by the amount of content.
The details are in the changelog:
https://github.com/Kozea/WeasyPrint/blob/master/CHANGES
Internally, this version uses tinycss and cssselect.
tinycss is a new CSS parser I wrote from scratch as a smaller and faster
alternative to cssutils. It is design to be easily extended for new
syntax such as new at-rules in various CSS 3 modules.
http://packages.python.org/tinycss/
http://exyr.org/2012/tinycss-css-parser/
As to cssselect, I took over its maintenance after extracting it from
lxml. I made many internal clean-ups and separated HTML-specific stuff.
It is now and independant project and supports almost all Level 3 selectors.
http://packages.python.org/cssselect/
As always, feedback on any of these three projects is greatly appreciated.
Have fun,
--
Simon Sapin