2012-05-21 14:06:08 +04:00
|
|
|
|
WeasyPrint changelog
|
|
|
|
|
====================
|
|
|
|
|
|
2013-03-18 22:39:50 +04:00
|
|
|
|
Version 0.17.1
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
Released on 2013-03-18.
|
|
|
|
|
|
|
|
|
|
Bug fixes:
|
|
|
|
|
|
|
|
|
|
* Fix `#41 <https://github.com/Kozea/WeasyPrint/issues/41>`_:
|
|
|
|
|
GObject initialization when GDK-PixBuf is not installed.
|
|
|
|
|
* Fix `#42 <https://github.com/Kozea/WeasyPrint/issues/42>`_:
|
|
|
|
|
absolute URLs without a base URL (ie. document parsed from a string.)
|
|
|
|
|
* Fix some whitespace collapsing bugs.
|
|
|
|
|
* Fix absolutely-positioned elements inside inline elements.
|
|
|
|
|
* Fix URL escaping of image references from CSS.
|
|
|
|
|
* Fix `#49 <https://github.com/Kozea/WeasyPrint/issues/49>`_:
|
|
|
|
|
Division by 0 on dashed or dotted border smaller than one dot/dash.
|
|
|
|
|
* Fix `#44 <https://github.com/Kozea/WeasyPrint/issues/44>`_:
|
|
|
|
|
bad interaction of ``page-break-before/after: avoid`` and floats.
|
|
|
|
|
|
|
|
|
|
|
2012-12-20 23:21:13 +04:00
|
|
|
|
Version 0.17
|
|
|
|
|
------------
|
|
|
|
|
|
2013-02-27 17:45:50 +04:00
|
|
|
|
Released on 2013-02-27.
|
2012-12-20 23:21:13 +04:00
|
|
|
|
|
2013-02-27 17:44:21 +04:00
|
|
|
|
* Added `text hyphenation`_ with the ``-weasy-hyphens`` property.
|
|
|
|
|
* When a document includes JPEG images, embed them as JPEG in the PDF output.
|
|
|
|
|
This often results in smaller PDF file size
|
|
|
|
|
compared to the default *deflate* compression.
|
2013-02-26 20:25:36 +04:00
|
|
|
|
* Switched to using CFFI instead of PyGTK or PyGObject-introspection.
|
|
|
|
|
* Layout bug fixes:
|
|
|
|
|
|
|
|
|
|
- Correctly trim whitespace at the end of lines.
|
|
|
|
|
- Fix some cases with floats within inline content.
|
2012-12-20 23:21:13 +04:00
|
|
|
|
|
2013-02-27 17:44:21 +04:00
|
|
|
|
.. _text hyphenation: http://weasyprint.org/docs/features/#hyphenation
|
|
|
|
|
|
2012-12-20 23:21:13 +04:00
|
|
|
|
|
2012-11-23 01:27:34 +04:00
|
|
|
|
Version 0.16
|
|
|
|
|
------------
|
|
|
|
|
|
2012-12-13 14:49:24 +04:00
|
|
|
|
Released on 2012-12-13.
|
2012-11-23 01:27:34 +04:00
|
|
|
|
|
2012-12-13 14:49:24 +04:00
|
|
|
|
* Add the :obj:`zoom` parameter to :meth:`HTML.write_pdf` and
|
2012-11-23 01:27:34 +04:00
|
|
|
|
:meth:`Document.write_pdf() <weasyprint.document.Document.write_pdf>`
|
2012-12-13 14:49:24 +04:00
|
|
|
|
* Fix compatibility with old (and buggy) pycairo versions.
|
|
|
|
|
WeasyPrint is now tested on 1.8.8 in addition to the latest.
|
|
|
|
|
* Fix layout bugs related to line trailing spaces.
|
2012-11-23 01:27:34 +04:00
|
|
|
|
|
|
|
|
|
|
2012-08-17 19:37:33 +04:00
|
|
|
|
Version 0.15
|
|
|
|
|
------------
|
|
|
|
|
|
2012-10-10 16:15:56 +04:00
|
|
|
|
Released on 2012-10-09.
|
2012-08-17 19:37:33 +04:00
|
|
|
|
|
2012-10-02 17:51:18 +04:00
|
|
|
|
* Add a low-level API that enables painting pages individually on any
|
2012-09-25 18:01:47 +04:00
|
|
|
|
cairo surface.
|
2012-10-09 22:10:25 +04:00
|
|
|
|
* **Backward-incompatible change**: remove the :meth:`HTML.get_png_pages`
|
|
|
|
|
method. The new low-level API covers this functionality and more.
|
2012-09-12 21:33:16 +04:00
|
|
|
|
* Add support for the ``font-stretch`` property.
|
|
|
|
|
* Add support for ``@page:blank`` to select blank pages.
|
2012-10-09 22:10:25 +04:00
|
|
|
|
* New Sphinx-based and improved docs
|
2012-10-01 21:30:25 +04:00
|
|
|
|
* Bug fixes:
|
|
|
|
|
|
|
|
|
|
- Importing Pango in some PyGTK installations.
|
|
|
|
|
- Layout of inline-blocks with `vertical-align: top` or `bottom`.
|
2012-10-02 15:29:57 +04:00
|
|
|
|
- Do not repeat a block’s margin-top or padding-top after a page break.
|
2012-10-01 21:30:25 +04:00
|
|
|
|
- Performance problem with large tables split across many pages.
|
2012-10-07 00:09:17 +04:00
|
|
|
|
- Anchors and hyperlinks areas now follow CSS transforms.
|
|
|
|
|
Since PDF links have to be axis-aligned rectangles, the bounding box
|
|
|
|
|
is used. This may be larger than expected with rotations that are
|
|
|
|
|
not a multiple of 90 degrees.
|
2012-08-17 19:37:33 +04:00
|
|
|
|
|
|
|
|
|
|
2012-07-29 00:32:55 +04:00
|
|
|
|
Version 0.14
|
|
|
|
|
------------
|
|
|
|
|
|
2012-08-03 19:55:14 +04:00
|
|
|
|
Released on 2012-08-03.
|
2012-07-29 00:32:55 +04:00
|
|
|
|
|
2012-08-02 15:59:44 +04:00
|
|
|
|
* Add a public API to choose media type used for @media.
|
2012-09-19 16:53:06 +04:00
|
|
|
|
(It still defaults to ``print``). Thanks Chung Lu!
|
2012-08-02 19:19:52 +04:00
|
|
|
|
* Add ``--base-url`` and ``--resolution`` to the command-line API, making it
|
|
|
|
|
as complete as the Python one.
|
2012-08-03 17:20:22 +04:00
|
|
|
|
* Add support for the ``<base href="...">`` element in HTML.
|
2012-08-03 18:21:47 +04:00
|
|
|
|
* Add support for CSS outlines
|
2012-07-31 15:01:30 +04:00
|
|
|
|
* Switch to gdk-pixbuf instead of Pystacia for loading raster images.
|
2012-07-29 00:32:55 +04:00
|
|
|
|
* Bug fixes:
|
|
|
|
|
|
|
|
|
|
- Handling of filenames and URLs on Windows
|
|
|
|
|
- Unicode filenames with older version of py2cairo
|
2012-08-02 19:19:34 +04:00
|
|
|
|
- ``base_url`` now behaves as expected when set to a directory name.
|
2012-07-29 00:32:55 +04:00
|
|
|
|
- Make some tests more robust
|
|
|
|
|
|
|
|
|
|
|
2012-07-23 21:15:19 +04:00
|
|
|
|
Version 0.13
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
Released on 2012-07-23.
|
|
|
|
|
|
|
|
|
|
* Add support for PyGTK, as an alternative to PyGObject + introspection.
|
|
|
|
|
This should make WeasyPrint easier to run on platforms that not not have
|
|
|
|
|
packages for PyGObject 3.x yet.
|
|
|
|
|
* Bug fix: crash in PDF outlines for some malformed HTML documents
|
|
|
|
|
|
|
|
|
|
|
2012-07-12 13:13:48 +04:00
|
|
|
|
Version 0.12
|
|
|
|
|
------------
|
|
|
|
|
|
2012-07-19 16:38:33 +04:00
|
|
|
|
Released on 2012-07-19.
|
2012-07-12 13:13:48 +04:00
|
|
|
|
|
|
|
|
|
* Add support for collapsed borders on tables. This is currently incompatible
|
|
|
|
|
with repeating header and footer row groups on each page: headers and footers
|
|
|
|
|
are treated as normal row groups on table with ``border-collapse: collapse``.
|
2012-07-13 14:24:55 +04:00
|
|
|
|
* Add ``url_fetcher`` to the public API. This enables users to hook into
|
|
|
|
|
WeasyPrint for fetching linked stylesheets or images, eg. to generate them
|
|
|
|
|
on the fly without going through the network.
|
2012-07-18 17:19:17 +04:00
|
|
|
|
This enables the creation of `Flask-WeasyPrint
|
2012-09-19 16:53:06 +04:00
|
|
|
|
<http://packages.python.org/Flask-WeasyPrint/>`_.
|
2012-07-12 13:13:48 +04:00
|
|
|
|
|
|
|
|
|
|
2012-07-04 13:29:34 +04:00
|
|
|
|
Version 0.11
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
Released on 2012-07-04.
|
|
|
|
|
|
|
|
|
|
* Add support for floats and clear.
|
|
|
|
|
Together with various bug fixes, this enables WeasyPrint to pass the Acid2
|
|
|
|
|
test! Acid2 is now part of our automated test suite.
|
|
|
|
|
* Add support for the width, min-width, max-width, height, min-height and
|
|
|
|
|
max-height properties in @page. The size property is now the size of the
|
|
|
|
|
page’s containing block.
|
2012-09-19 16:53:06 +04:00
|
|
|
|
* Switch the Variable Dimension rules to `the new proposal
|
|
|
|
|
<https://github.com/SimonSapin/css/blob/master/margin-boxes-variable-dimension>`_.
|
2012-07-04 13:29:34 +04:00
|
|
|
|
The previous implementation was broken in many cases.
|
|
|
|
|
* The ``image-rendering``, ``transform``, ``transform-origin`` and ``size``
|
|
|
|
|
properties are now unprefixed. The prefixed form (eg. -weasy-size) is ignored
|
|
|
|
|
but gives a specific warning.
|
|
|
|
|
|
|
|
|
|
|
2012-06-20 14:58:26 +04:00
|
|
|
|
Version 0.10
|
|
|
|
|
------------
|
|
|
|
|
|
2012-06-25 18:12:04 +04:00
|
|
|
|
Released on 2012-06-25.
|
2012-06-20 14:58:26 +04:00
|
|
|
|
|
2012-06-21 13:33:19 +04:00
|
|
|
|
* Add ``get_png_pages()`` to the public API. It returns each page as
|
|
|
|
|
a separate PNG image.
|
2012-06-25 18:42:09 +04:00
|
|
|
|
* Add a ``resolution`` parameter for PNG.
|
2012-06-20 14:58:26 +04:00
|
|
|
|
* Add *WeasyPrint Navigator*, a web application that shows WeasyPrint’s
|
|
|
|
|
output with clickable links. Yes, that’s a browser in your browser.
|
2012-06-25 18:12:04 +04:00
|
|
|
|
Start it with ``python -m weasyprint.navigator``
|
2012-06-20 14:58:26 +04:00
|
|
|
|
* Add support for `vertical-align: top` and `vertical-align: bottom`
|
2012-06-21 13:33:19 +04:00
|
|
|
|
* Add support for `page-break-before: avoid` and `page-break-after: avoid`
|
2012-06-20 14:58:26 +04:00
|
|
|
|
* Bug fixes
|
|
|
|
|
|
|
|
|
|
|
2012-05-09 19:07:58 +04:00
|
|
|
|
Version 0.9
|
2012-05-21 14:06:08 +04:00
|
|
|
|
-----------
|
|
|
|
|
|
2012-06-04 18:55:40 +04:00
|
|
|
|
Released on 2012-06-04.
|
2012-05-21 14:06:08 +04:00
|
|
|
|
|
2012-06-04 18:55:40 +04:00
|
|
|
|
* Relative, absolute and fixed positioning
|
|
|
|
|
* Proper painting order (z-index)
|
2012-05-21 14:06:08 +04:00
|
|
|
|
* In PDF: support for internal and external hyperlinks as well as bookmarks.
|
2012-06-04 18:55:40 +04:00
|
|
|
|
* Added the ``tree`` parameter to the ``HTML`` class: accepts a parsed lxml
|
|
|
|
|
object.
|
|
|
|
|
* Bug fixes, including many crashes.
|
2012-05-21 14:06:08 +04:00
|
|
|
|
|
|
|
|
|
Bookmarks can be controlled by the ``-weasy-bookmark-level`` and
|
|
|
|
|
``-weasy-bookmark-label`` properties, as described in `CSS Generated Content
|
|
|
|
|
for Paged Media Module <http://dev.w3.org/csswg/css3-gcpm/#bookmarks>`_.
|
2012-05-09 19:07:58 +04:00
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
The default UA stylesheet sets a matching bookmark level on all ``<h1>``
|
|
|
|
|
to ``<h6>`` elements.
|
2012-05-09 19:07:58 +04:00
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.8
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Released on 2012-05-07.
|
2012-03-25 03:39:41 +04:00
|
|
|
|
|
2012-04-30 15:19:19 +04:00
|
|
|
|
* Switch from cssutils to tinycss_ as the CSS parser.
|
|
|
|
|
* Switch to the new cssselect_, almost all level 3 selectors are supported now.
|
2012-04-12 14:51:21 +04:00
|
|
|
|
* Support for inline blocks and inline tables
|
2012-04-10 13:43:59 +04:00
|
|
|
|
* Automatic table layout (column widths)
|
|
|
|
|
* Support for the ``min-width``, ``max-width``, ``min-height`` and
|
2012-04-12 14:51:21 +04:00
|
|
|
|
``max-height`` properties, except on table-related and page-related boxes.
|
2012-05-07 20:31:33 +04:00
|
|
|
|
* Speed improvements on big stylesheets / small documents thanks to tinycss.
|
2012-04-04 15:57:20 +04:00
|
|
|
|
* Many bug fixes
|
2012-03-25 03:39:41 +04:00
|
|
|
|
|
2012-04-30 15:19:19 +04:00
|
|
|
|
.. _tinycss: http://packages.python.org/tinycss/
|
|
|
|
|
.. _cssselect: http://packages.python.org/cssselect/
|
|
|
|
|
|
2012-03-25 03:39:41 +04:00
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.7.1
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Released on 2012-03-21.
|
2012-03-22 02:19:27 +04:00
|
|
|
|
|
|
|
|
|
Change the license from AGPL to BSD.
|
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.7
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Released on 2012-03-21.
|
2012-03-14 22:33:24 +04:00
|
|
|
|
|
2012-03-21 21:47:27 +04:00
|
|
|
|
* Support page breaks between table rows
|
2012-03-14 22:33:24 +04:00
|
|
|
|
* Support for the ``orphans`` and ``widows`` properties.
|
2012-03-16 19:45:31 +04:00
|
|
|
|
* Support for ``page-break-inside: avoid``
|
2012-03-21 21:47:27 +04:00
|
|
|
|
* Bug fixes
|
|
|
|
|
|
|
|
|
|
Only avoiding page breaks before/after an element is still missing.
|
2012-03-14 22:33:24 +04:00
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.6.1
|
|
|
|
|
-------------
|
|
|
|
|
|
|
|
|
|
Released on 2012-03-01.
|
2012-03-01 18:54:36 +04:00
|
|
|
|
|
|
|
|
|
Fix a packaging bug. (Remove use_2to3 in setup.py. We use the same
|
|
|
|
|
codebase for Python 2 and 3.)
|
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.6
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Released on 2012-02-29.
|
2012-02-14 15:49:33 +04:00
|
|
|
|
|
2012-02-29 20:38:30 +04:00
|
|
|
|
* *Backward incompatible*: completely change the Python API.
|
|
|
|
|
See the documentation: http://weasyprint.org/using/#as-a-python-library
|
|
|
|
|
* *Backward incompatible*: Proper margin collapsing.
|
|
|
|
|
This changes how blocks are rendered: adjoining margins "collapse"
|
|
|
|
|
(their maximum is used) instead of accumulating.
|
|
|
|
|
* Support images in ``embed`` or ``object`` elements.
|
2012-02-21 17:34:07 +04:00
|
|
|
|
* Switch to pystacia instead of PIL for raster images
|
2012-02-29 20:38:30 +04:00
|
|
|
|
* Add compatibility with CPython 2.6 and 3.2. (Previously only 2.7
|
|
|
|
|
was supported)
|
2012-02-28 19:33:54 +04:00
|
|
|
|
* Many bug fixes
|
2012-02-14 15:49:33 +04:00
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.5
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Released on 2012-02-08.
|
2012-02-07 21:06:59 +04:00
|
|
|
|
|
|
|
|
|
* Support for the ``overflow`` and ``clip`` properties.
|
2012-02-07 21:26:23 +04:00
|
|
|
|
* Support for the ``opacity`` property from CSS3 Colors.
|
2012-02-08 18:44:03 +04:00
|
|
|
|
* Support for CSS 2D Transforms. These are prefixed, so you need to use
|
|
|
|
|
``-weasy-transform`` and ``-weasy-transform-origin``.
|
2012-02-07 21:06:59 +04:00
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.4
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Released on 2012-02-07.
|
2011-12-13 19:53:44 +04:00
|
|
|
|
|
2012-02-01 20:24:22 +04:00
|
|
|
|
* Support ``text-align: justify``, ``word-spacing`` and ``letter-spacing``.
|
2012-01-17 18:40:26 +04:00
|
|
|
|
* Partial support for CSS3 Paged Media: page size and margin boxes with
|
|
|
|
|
page-based counters.
|
2012-01-17 19:27:20 +04:00
|
|
|
|
* All CSS 2.1 border styles
|
|
|
|
|
* Fix SVG images with non-pixel units. Requires CairoSVG 0.3
|
2012-01-20 14:55:06 +04:00
|
|
|
|
* Support for ``page-break-before`` and ``page-break-after``, except for
|
|
|
|
|
the value ``avoid``.
|
2012-01-31 15:10:18 +04:00
|
|
|
|
* Support for the ``background-clip``, ``background-origin`` and
|
|
|
|
|
``background-size`` from CSS3 (but still with a single background
|
|
|
|
|
per element)
|
|
|
|
|
* Support for the ``image-rendering`` from SVG. This one is prefixed,
|
|
|
|
|
use ``-weasy-image-rendering``. It only has an effect on PNG output.
|
2011-12-13 19:53:44 +04:00
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.3.1
|
2012-09-19 16:53:06 +04:00
|
|
|
|
-------------
|
2012-05-21 14:06:08 +04:00
|
|
|
|
|
|
|
|
|
Released on 2011-12-14.
|
2011-12-14 19:39:38 +04:00
|
|
|
|
|
|
|
|
|
Compatibility with CairoSVG 0.1.2
|
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.3
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Released on 2011-12-13.
|
2011-12-08 18:00:45 +04:00
|
|
|
|
|
2011-12-13 15:51:30 +04:00
|
|
|
|
* **Backward-incompatible change:** the 'size' property is now prefixed (since
|
|
|
|
|
it is in an experimental specification). Use '-weasy-size' instead.
|
2011-12-12 17:44:37 +04:00
|
|
|
|
* cssutils 0.9.8 or higher is now required.
|
2011-12-13 15:51:30 +04:00
|
|
|
|
* Support SVG images with CairoSVG
|
2011-12-08 18:00:45 +04:00
|
|
|
|
* Support generated content: the ``:before`` and ``:after`` pseudo-elements,
|
|
|
|
|
the ``content``, ``quotes`` and ``counter-*`` properties.
|
|
|
|
|
* Support ordered lists: all CSS 2.1 values of the ``list-style-type`` property.
|
2011-12-12 17:44:37 +04:00
|
|
|
|
* New user-agent stylesheet with HTML 5 elements and automatic quotes for many
|
|
|
|
|
languages. Thanks Peter Moulder!
|
2011-12-08 18:00:45 +04:00
|
|
|
|
* Disable cssutils validation warnings, they are redundant with WeasyPrint’s.
|
|
|
|
|
* Add ``--version`` to the command-line script.
|
|
|
|
|
* Various bug fixes
|
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.2
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Released on 2011-11-25.
|
2011-11-25 20:39:56 +04:00
|
|
|
|
|
|
|
|
|
* Support for tables.
|
|
|
|
|
* Support the `box-sizing` property from CSS 3 Basic User Interface
|
|
|
|
|
* Support all values of vertical-align except top and bottom. They are
|
|
|
|
|
interpreted as text-top and text-bottom.
|
|
|
|
|
* Minor bug fixes
|
|
|
|
|
|
|
|
|
|
Tables have some limitations:
|
|
|
|
|
Only the fixed layout and separate border model are supported.
|
|
|
|
|
There are also no page break inside tables so a table higher
|
|
|
|
|
than a page will overflow.
|
|
|
|
|
|
|
|
|
|
|
2012-05-21 14:06:08 +04:00
|
|
|
|
Version 0.1
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
Released on 2011-10-28.
|
2011-11-25 20:39:56 +04:00
|
|
|
|
|
|
|
|
|
First packaged release. Supports "simple" CSS 2.1 pages: there is no
|
|
|
|
|
support for floats, tables, or absolute positioning. Other than that
|
|
|
|
|
most of CSS 2.1 is supported, as well as CSS 3 Colors and Selectors.
|