1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00
Commit Graph

630 Commits

Author SHA1 Message Date
Simon Sapin
cbba64983d Try to make glib happy, call g_type_init() 2013-03-08 15:09:45 +01:00
Simon Sapin
c49f060c9f Add support for -weasy-hyphens: none, cache hyphenation dictionaries 2013-02-27 13:44:57 +01:00
Simon Sapin
b7ed4a906f Tweak hyphenation and add a micro-test. 2013-02-26 19:45:00 +01:00
Simon Sapin
54df780ae7 Require Pyphen.
It is pure-python and self-contained (with dictionaries)
2013-02-26 18:50:57 +01:00
Simon Sapin
43489dec07 Merge branch 'master' into hyphenation
Conflicts:
	weasyprint/text.py
2013-02-26 18:16:59 +01:00
Simon Sapin
f7e78c488f Back to native strings for CFFI, still required on PyPy :( 2013-02-26 17:12:08 +01:00
Simon Sapin
46715ad7a2 Try alternative shared library names for Windows. 2013-02-26 15:05:53 +01:00
Simon Sapin
326b7701b5 Remove introspection related cruft. 2013-02-26 15:05:11 +01:00
Simon Sapin
3a42860018 Move GDK-PixBuf code to cairocffi.pixbuf 2013-02-26 15:04:52 +01:00
Simon Sapin
06a9ad8c91 Unicode strings are fine with CFFI 0.5 2013-02-25 16:38:54 +01:00
Simon Sapin
4c4be709d5 Make GDK-PixBuf optional. 2013-02-25 16:34:42 +01:00
Simon Sapin
e2ef91dd99 Fix the GDK-PixBuf loader for images with an alpha channel. 2013-02-25 16:30:39 +01:00
Simon Sapin
9ccd37e088 Don’t bother making CairoSVG optional. 2013-02-25 16:26:39 +01:00
Simon Sapin
d310ffe47d Merge branch 'cffi'
Conflicts:
	weasyprint/text.py
2013-02-25 15:23:59 +01:00
Simon Sapin
055f9a3637 Import stuff early, do not try to run --help without importing. 2013-02-25 15:21:25 +01:00
Guillaume Ayoub
6e114af5af Fix horizontal negative margins for floats 2013-02-25 14:57:50 +01:00
Simon Sapin
9b7c681d27 cairocffi is released, remove the tarball from tox.ini 2013-02-25 14:53:30 +01:00
Simon Sapin
f33e9e8039 Have a better error message when CairoSVG uses pycairo instead of craicffi. 2013-02-25 14:48:56 +01:00
Guillaume Ayoub
c789ba2c91 Don't strip leading non-breaking spaces 2013-02-01 01:57:12 +01:00
Simon Sapin
829c758788 Keep currentColor as a computed value, resolve in used value
According to the css3-color errata:
http://www.w3.org/Style/2011/REC-css3-color-20110607-errata.html
2013-01-23 16:52:47 +01:00
Simon Sapin
cfe59387e9 Whitespace fixes. 2013-01-23 16:41:46 +01:00
Simon Sapin
4f9f486ef1 cairocffi accepts byte strings for set_mime_data() now. 2013-01-01 16:55:48 +01:00
Simon Sapin
a1109346df Update for cairocffi changes. 2012-12-30 11:08:55 +01:00
Simon Sapin
124a28cb15 Convert pixbuf images to cairo with Gdk if available. 2012-12-29 23:02:50 +01:00
Simon Sapin
4eb59f04ec Update setup.py and tox.ini 2012-12-29 15:27:45 +01:00
Simon Sapin
294be548b0 All tests passsing with cffi!! 2012-12-29 14:55:59 +01:00
Simon Sapin
5baee96712 Use pixbuf through cffi. 2012-12-29 11:58:52 +01:00
Simon Sapin
c70b00b5b8 More WIP: cairocffi and pango cffi. 2012-12-29 01:36:06 +01:00
Simon Sapin
d2040ac77a WIP: use Pango and cairo through cffi.
Use cairocffi
Ditch pycairo, PyGTK and PyGobject-introspection.
2012-12-28 23:17:04 +01:00
Guillaume Ayoub
903490b207 Merge branch 'master' into hyphenation
Conflicts:
	weasyprint/layout/inlines.py
2012-12-28 17:56:03 +01:00
Guillaume Ayoub
94c719b4ea Fix some trailing spaces 2012-12-28 17:45:23 +01:00
Guillaume Ayoub
474435c852 Merge branch 'master' into hyphenation 2012-12-26 17:03:48 +01:00
Simon Sapin
2388891ae3 More libxml2 work-arounds. 2012-12-26 17:03:08 +01:00
Guillaume Ayoub
c52a17a3f0 Set the computed value of the "hyphens" property instead of the keyword 2012-12-26 16:56:48 +01:00
Guillaume Ayoub
ee0a53ea1d Merge branch 'master' into hyphenation
Conflicts:
	weasyprint/text.py
2012-12-26 16:44:23 +01:00
Guillaume Ayoub
d6b78b30e7 Work around parser changes in libxml2 2.9 2012-12-26 16:43:10 +01:00
Guillaume Ayoub
145027536b Collapse consecutive text boxes 2012-12-26 16:42:45 +01:00
Guillaume Ayoub
488178c6ab Typo 2012-12-26 14:47:33 +01:00
Guillaume Ayoub
09aacdc669 Use pyphen instead of hyphenator 2012-12-26 13:25:18 +01:00
Simon Sapin
773bbfe431 Changelog for JPEG embedding. 2012-12-20 20:21:13 +01:00
Simon Sapin
f243dbcca3 Embed JPEG-encoded images in PDF. Fix #6
If an image is in JPEG format, embed it as-is in the PDF output.
This often results in smaller PDF file size.

(The image is still decoded however,
so there is no rendering speed improvement.)
2012-12-20 20:12:52 +01:00
Guillaume Ayoub
3ed645d54c Fix the encoding of the zu_ZA dictionary 2012-12-14 02:40:40 +01:00
Simon Sapin
8995ce77d9 Merge remote-tracking branch 'origin/trailingspaces' 2012-12-12 16:06:20 +01:00
Simon Sapin
f12deb8fc6 Work around a segfault on Python 3.2.
Something bad happend when de-allocating a module-level BytesIO()
and dummy PDFSurface.
2012-12-12 16:02:41 +01:00
Simon Sapin
4f8deadc47 Work around a bug in old pycairo versions.
See
http://cgit.freedesktop.org/py2cairo/commit/?id=cab2c1295499f57247854e8635b77ca716fa9730
2012-12-12 09:25:28 +01:00
Guillaume Ayoub
667f1d905b Quick and dirty lang detection for hyphenation 2012-12-09 00:41:12 +01:00
Guillaume Ayoub
fbc2e33b01 Add the -weasy-hyphens CSS property 2012-12-08 22:50:08 +01:00
Guillaume Ayoub
d4fffabb8a Add base code and dictionaries for hyphenation 2012-12-08 21:43:16 +01:00
Guillaume Ayoub
2325b4c2f4 Give the line length to split_first_line 2012-11-24 16:14:49 +01:00
Guillaume Ayoub
1eb22ed63b Remove spaces at the end of the text lines 2012-11-22 23:52:50 +01:00