Guillaume Ayoub
72e214ae2e
Use David Baron's draft for auto table layout
2016-01-11 04:30:38 +01:00
Guillaume Ayoub
4898ad980b
Replace "*-content width" by "preferred * width"
2016-01-09 15:16:29 +01:00
Guillaume Ayoub
b617122af0
Clean some code about inline and text
...
- Fix some unicode/utf-8 TODOs
- Change hyphenation tests to use non-ASCII characters
- Use better variable names
- Use a simpler code for overflow-wrap: break-word
2016-01-01 19:20:45 +01:00
Guillaume Ayoub
fac5ee94e5
Don't split a line when drawing it
...
To draw a text line, the previous behaviour didn't rely only on the text
actually set on the layout, but also relied on the fact that the line
was cut again when drawn. This change removes the line cutting when
drawing, and thus only relies on the line splitting done during the
layout. This fixes a bug causing some words not being displayed at the
end of a text line drawn with hinting, and the actual drawing size with
hinting was bigger than the size calculated during the layout.
The text included in the drawn layout object was sometimes not cut at
the right position, it was longer but cut when actually drawn. This
commit also fixes this, by always setting the right text in the layout
object.
Fixing this bug enables us to remove a hack introduced to fight against
an "accumulation of floating point errors". I now think that "it wasn't
our war"™. I think that the real reasons of this hack were probably:
- a problem with trailing spaces in the shrink-to-fit functions fixed in
commit 3a620db
, and
- this line-cutting bug while drawing, fixed now.
I've tried hard to reproduce the shink-to-fit problem without this hack,
with no success. I don't see anymore how it can theorically happen with
the current code of the "preferred" module. The only bug fixed by this
hack that I've been able to reproduce is the hinting problem explained
in the first paragraph, and this bug is now really fixed.
Moreover, this hack used to cause another problem: as the maximum size
allowed to an inline block was actually bigger than the real size
available in the line, an inline block whose size was between the real
and the allowed sizes was put on a new line by the split_inline_box
function. This commit fixes #288 , the bug reported about this problem.
2016-01-01 16:48:15 +01:00
Guillaume Ayoub
d09ba47ac2
Fix attachments support for command line
...
How about quality control and unit tests? Well, tests have been added,
wow, such hope they are many helpful.
Oh, and it probably fixes #286 .
2015-12-31 13:22:30 +01:00
Guillaume Ayoub
c47ed0c8f6
Version 0.25
2015-12-17 12:01:34 +01:00
Guillaume Ayoub
e06d44d0d3
Fix a dirty bug in line splitting ( fix #285 )
2015-12-16 19:04:53 +01:00
Guillaume Ayoub
0719aa096b
Fix pdf_escape for python 2 again
2015-12-16 18:45:41 +01:00
Guillaume Ayoub
ff04ba8513
Fix pdf_escape for Python 2
2015-12-16 18:29:20 +01:00
Guillaume Ayoub
36338b4067
Escape parenthesis in URIs when generating PDFs
...
Fix #284
2015-12-16 17:16:10 +01:00
Guillaume Ayoub
09e14e5820
Fix typo
2015-12-16 13:50:04 +01:00
Alex Eftimie
93f497bf11
Replace utf8 with utf-8 for gettext compatibility
2015-11-25 09:38:01 +02:00
Guillaume Ayoub
b2688808a1
Fix flake8 again
2015-11-20 23:46:47 +01:00
Guillaume Ayoub
a310c61353
Fix a stupid flake8 error
2015-11-20 23:39:10 +01:00
Guillaume Ayoub
c582ac2c19
Merge branch 'master' of github.com:Kozea/WeasyPrint
2015-11-18 13:33:37 +01:00
Andrew Leech
a145bd12f6
Fix formatting to satisfy flake8
2015-09-28 14:08:41 +10:00
Andrew Leech
f44ae6d85f
Add support for use when frozen
...
Use appropriate path to find resource when frozen (using py2exe etc.)
2015-09-25 11:30:56 +10:00
Joel Steres
73b7c23d4a
Adjust line lengths to pass style acceptance tests
2015-09-02 18:52:32 -07:00
Joel Steres
97e87d54af
Fix letter-spacing handling at block boundaries
...
Pango letter-spacing attribute does not affect the last character in the
text range. This fix appends a zero-width-space to each TextBox so that
pango letter-spacing will add space following the final character.
Note that an earlier implementation that modified the TextBox width
resulted in increased spacing between boxes but in practice the renderer
often wrapped individual TextBoxes within a single LineBox.
2015-08-18 00:59:03 -07:00
Guillaume Ayoub
ccfe7b76e0
Add the 'q' unit
2015-08-14 17:03:59 +02:00
Guillaume Ayoub
f0da0374bf
Don't crash when attachments are not available ( fix #250 )
2015-08-14 13:51:56 +02:00
Simon Sapin
f5edde6c67
v0.24
2015-08-04 16:33:05 +02:00
Thomas Grainger
8c0a97a37d
Fix ressource typo
2015-07-01 00:01:43 +01:00
Guillaume Ayoub
492619662f
Fix some wrong conflict resolutions for table borders with inset and outset styles
2015-05-31 10:09:34 +02:00
Guillaume Ayoub
2d7f68e8a1
Use the same simple code for bookmark-labels and string-sets
2015-05-01 21:14:10 +02:00
Guillaume Ayoub
f0889c2589
Fix attr() and allow counters in string-set and bookmark-label
2015-05-01 20:28:42 +02:00
Guillaume Ayoub
862c334036
Don't try to compute attr() as it's been already replaced in computed_values
2015-05-01 11:14:24 +02:00
Guillaume Ayoub
273506d0ad
Allow attr() in bookmark-label and string-set
2015-05-01 11:06:54 +02:00
Guillaume Ayoub
3a17bfa86e
Remove useless import
2015-05-01 00:13:31 +02:00
Guillaume Ayoub
17abfbd1c9
Fix some comments
2015-05-01 00:12:43 +02:00
Guillaume Ayoub
f78eb3763e
Use the <content-list> defined in GCPM for string-set and bookmark-label
...
In this content-list, here are the possibilities:
- string: implemented
- counter/counters: not implemented, but easily possible
- content: implemented (but what's exactly the "string value of an element"?)
- attr: not implemented (I don't know how to do this)
2015-04-30 21:54:19 +02:00
Guillaume Ayoub
0daaec844f
Test the string-set property syntax
2015-04-30 14:41:25 +02:00
Guillaume Ayoub
c68240c5f4
Fix some pyflakes warnings
2015-04-30 10:58:51 +02:00
Guillaume Ayoub
790af1481a
Merge pull request #246 from E-M-P-I-R-E/master
...
Support for named strings in margin-boxes
2015-04-30 10:30:23 +02:00
Guillaume Ayoub
94ca04812e
Cut long line
2015-04-29 09:32:33 +02:00
Guillaume Ayoub
a97014c9af
Remove useless if-block when validating the line-height property
2015-04-29 08:35:24 +02:00
Guillaume Ayoub
01a5ce742f
Don't allow unknown units during line-height validation ( fix #225 )
2015-04-28 23:56:41 +02:00
Guillaume Ayoub
b4c43608fc
Remove a useless nesting level
2015-04-28 23:11:22 +02:00
Johannes Duschl
94067db7ca
This should fix #202 .
2015-04-28 19:19:44 +02:00
Guillaume Ayoub
187e6d16b3
Draw rounded corners on replaced boxes ( fix #207 )
2015-04-25 20:00:20 +02:00
Guillaume Ayoub
4816788837
Merge pull request #224 from liZe/text-hack
...
Rely on the font size for rounding bug workaround
2015-04-25 19:13:43 +02:00
Guillaume Ayoub
f0e0829677
Fix PEP8
2015-04-25 19:05:53 +02:00
Guillaume Ayoub
8f11d27e48
Make the linear-gradient test require cairo-1.14 and other small test fixes
2015-04-25 18:36:39 +02:00
Guillaume Ayoub
6e82d6563e
Merge branch 'master' of github.com:Kozea/WeasyPrint
2015-04-25 17:51:17 +02:00
Guillaume Ayoub
4ed0c3c987
Test vertical-align property in tables ( fix #31 )
2015-04-25 17:48:08 +02:00
Guillaume Ayoub
f4f8c252a7
Honor vertical-align for fixed-height cells (related to #31 )
2015-04-25 15:16:47 +02:00
Guillaume Ayoub
54fde80346
Fix some tests relying on installed fonts
2015-04-24 23:55:06 +02:00
Guillaume Ayoub
b5080d2cc2
Make a linear-gradient test work with Cairo 1.14.x
2015-04-24 23:31:39 +02:00
Guillaume Ayoub
40413b06e0
Fix hyphenation tests by using ahem
2015-04-24 23:27:55 +02:00
Mike Z. Salem
a8a0141902
More changes for named strings [3]
...
PEP8/flake8 compliance again (sorry)
2015-03-22 00:30:38 -04:00
Mike Z. Salem
c603e92b55
More changes for named string support
...
Pep8/flake8 conformance
2015-03-21 19:24:13 -04:00
Mike Z. Salem
d4ce068854
More changes for named string support
...
Reinstate support for psuedo elements as an arugument to `content()`
Have to check if a box is a `ParentBox` when using `decendants()` in `TEXT_CONTENT_EXTRACTORS` for psuedo elements because it was returning the value twice in a row (ex. "stringstring")
2015-03-21 18:54:14 -04:00
Mike Z. Salem
abb560a762
PEP8/flake8 compliance
2015-03-21 00:50:22 -04:00
Mike Z. Salem
6e48c2e878
Set string-set
default to 'none', altered validation & resolution [do nothing in that case]
...
Added validation to the second argument to `string()`
More info./discussion here: https://github.com/Kozea/WeasyPrint/pull/246#issuecomment-83994925
2015-03-21 00:08:12 -04:00
Mike Z. Salem
7db9be4005
Remove support of string set using psuedo elements. Was unsure of the change to the function in build.TEXT_CONTENT_EXTRACTORS. That would be part of the text anyways.
...
Combined test functions to conform to coding style of other tests.
2015-03-19 23:03:57 -04:00
Mike Z. Salem
8ef012fca8
Bug fix for string-set validation not accepting no argument (default should be 'text')
...
Alter TEXT_CONTENT_EXTRACTORS so that string-set can use ::before/::after
- Don't allow empty string to be assigned to string set (happends with psuedo elements)
Added some documentation to explain string function resolution
2015-03-18 22:46:51 -04:00
Mike Z. Salem
bc51dec015
Basic support for named strings. String-set limited to one value.
2015-03-08 23:02:51 -04:00
Guillaume Ayoub
9b38823b94
radiii -> radii
2015-01-29 12:23:43 +01:00
Guillaume Ayoub
bbb42f28c3
Rely on the font size for rounding bug workaround
...
Only relying on the line length is awful in real-life test cases when the
font size is big and the line short (ex. titles), causing the last word
of some lines to disappear.
This new workaround gives an 0.2em extra space for latest characters
(instead of line-height/10000).
2014-11-01 11:06:06 +01:00
Simon Sapin
465483336d
Fix failing test_pdf.test_embedded_files test on PyPy.
...
WeasyPrint still doesn’t actually work on PyPy with non-trivial documents,
but at least Travis-CI is green again.
2014-09-16 21:07:07 +01:00
Simon Sapin
8b09651e5a
Changelog for v0.23
2014-09-16 20:56:28 +01:00
Simon Sapin
2666e33a15
Avoid a crash with zero-sized background images. Fix #217 .
2014-09-16 20:44:35 +01:00
Mario Orlandi
4569c15b3e
Fixed list item markers vertical alignement;
...
adjust vertical position taking into account line height of list item
2014-07-14 19:45:25 +02:00
Simon Sapin
1e4a6ea0d7
Merge pull request #201 from jdus/page-break-after-avoid
...
Page break after avoid
2014-06-19 14:26:59 +02:00
Johannes Duschl
c24a54d637
Fixed python3.2 error
2014-06-04 10:46:30 +02:00
Johannes Duschl
5f11c23415
Eventually fixed code convention violations
2014-06-04 10:15:54 +02:00
Johannes Duschl
be2b94ce30
Use block_level_page_break to check for dedicated page breaks
2014-05-28 11:19:41 +02:00
Johannes Duschl
81796cae34
Remove trailing white spaces
2014-05-27 17:38:13 +02:00
Johannes Duschl
324255ba59
Removed blank line
2014-05-27 17:24:42 +02:00
Johannes Duschl
35f0050624
Respect page-break-after: avoid of previous elements when pushing floats to the next page
2014-05-27 17:22:31 +02:00
Johannes Duschl
c82e66f912
Revert to using ' ' instead of u'\u0020' for a blank
2014-05-27 10:38:29 +02:00
Johannes Duschl
229ab453e5
Fixing too long lines.
2014-05-27 10:24:56 +02:00
Simon Sapin
8c44c06a8d
Merge pull request #194 from mmariani/dlopen
...
cannot find pango, gobject, etc. libraries on some platforms
2014-05-23 14:55:25 +01:00
Simon Sapin
5c2b72ced5
Use the default image sizing algorithm for its preferred size. Fix #196
...
For image with an intrisic ration and auto specified width
but definite specified height, the intrisic/preferred width
(like the used size) should be based on the specified height
and intrinsic ratio.
2014-05-23 13:50:39 +01:00
Johannes Duschl
fef12c281b
Remove trailing white spaces
2014-05-23 11:53:05 +02:00
Johannes Duschl
c70233dceb
Obey code conventions
2014-05-23 11:37:54 +02:00
Johannes Duschl
c243ceb8c2
Add missing hyphen character at line break activated by a soft hyphen.
2014-05-23 10:17:01 +02:00
Marco Mariani
0ae57ed81e
more library aliases are needed when compiling from sources (i.e within SlapOS)
2014-05-22 10:28:01 +02:00
Simon Sapin
24d6c0cb27
Changelog for v0.22
2014-05-05 11:53:38 +01:00
Simon Sapin
9b0488cff3
Fix PDF attachment tests to use a relative URL as intended.
2014-04-28 12:10:18 +01:00
Simon Sapin
dd9ff47c94
Fix code formatting
2014-04-27 18:16:14 +01:00
Simon Sapin
830598c30b
Merge branch 'pdf-attachments' from PR #177
2014-04-27 17:56:02 +01:00
Simon Sapin
43d1e73e65
Fix code formatting. (Clean flake8!)
2014-04-27 12:29:55 +01:00
Simon Sapin
09b2a4def0
Correctly close StreamingGzipFile, and log this kind of error
...
… rather than silence them. Logs make tests fail.
2014-04-27 11:00:02 +01:00
elpaso
3282655531
Added test case for multiple floated images shorter than the page.
2014-04-27 09:56:26 +02:00
elpaso
0efde08b49
Added test case for floated images taller than the page. Added myself to AUTHORS.
2014-04-27 09:48:46 +02:00
elpaso
977f6dacae
Merged upstram
2014-04-27 09:46:51 +02:00
Colin Leitner
da916a32a6
Added an Attachment
class for attachments provided through the API instead of the URL/description tuples
2014-04-25 23:35:43 +02:00
Colin Leitner
86e67e514a
Use element_has_link_type
for parsing the rel
attribute in the HTML metadata.
2014-04-23 17:42:37 +02:00
Colin Leitner
e244b8119b
Renamed is_internal
to link_type
, which is less confusing
2014-04-23 17:12:54 +02:00
Colin Leitner
8c06243c46
Use the new element_has_link_type
instead of parsing the rel
attribute manually.
2014-04-23 17:10:31 +02:00
Simon Sapin
a3ef9cce98
Fix parsing of <link rel>
2014-04-23 16:57:57 +02:00
Colin Leitner
4f3e48dd8e
Use temp_directory
in favor of tempfile
in the PDF embedded files testcase.
2014-04-23 16:53:32 +02:00
Colin Leitner
e66bb00d08
Moved temp_directory
to testing_utils
to allow reuse in other test files.
2014-04-23 16:52:06 +02:00
Colin Leitner
2be5945864
Replaced urlopen_contenttype
with urllib_get_content_type
, urllib_get_charset
and urllib_get_filename
.
2014-04-23 16:24:14 +02:00
Colin Leitner
b7a5c46626
Moved the UTF-8 decoding logic from compat.py
to pdf.py
, where it's actually necessary to special case the unquoted result
2014-04-22 21:48:11 +02:00
Colin Leitner
a8a951bc2f
Fixed the default_url_fetcher
for Python 2, which returns a message type with no get_filename
method
2014-04-22 21:22:10 +02:00
Colin Leitner
a084a5b517
Refactored attachments
attribute from the HTML
class to an argument for write_pdf
2014-04-22 20:40:46 +02:00
Colin Leitner
486834a099
Small whitespace fix
2014-04-22 19:32:01 +02:00
Colin Leitner
851167f19d
Removed usage of unnecessary binascii
module in favor of hexdigest
2014-04-22 19:29:37 +02:00
Simon Sapin
e65b26f38b
Fix parsing of <link rel>
2014-04-22 01:34:47 +01:00
Simon Sapin
a4dbe241dc
Add link to the Python bug for gzip streaming.
2014-04-21 23:58:37 +01:00
Simon Sapin
9404375d3e
Fix #86 : Support gzip and deflate encoding in HTTP responses
2014-04-21 23:52:58 +01:00
Colin Leitner
a9fd32c14c
Change filename logic for PDF attachments
...
This patch honors the filename key of a fetched resource, which can be set by
the `Content-Disposition` or `Content-Type` headers and uses
`mimetypes.guess_extension` for resources that lack any indication of a
filename.
2014-04-18 16:40:47 +02:00
Colin Leitner
05ec8df728
Added optional filename key to the URL fetcher result
2014-04-18 16:39:54 +02:00
Colin Leitner
846a5bedb4
Refactored the url_fetcher
argument for write_pdf
to an attribute of the Document
class
2014-04-18 15:11:45 +02:00
elpaso
52a6433377
Added test & patch for floating images page break
2014-04-17 14:02:04 +02:00
Colin Leitner
696df54d33
Avoid using the CWD during PDF tests with attachments relative to the document
2014-04-07 20:10:50 +02:00
Colin Leitner
44a6224d9f
Moved imports to top of file
2014-04-07 20:07:56 +02:00
Colin Leitner
83ef0e9c17
Use write_new_object
where applicable in _write_compressed_file_object
and check that the object numbers are still in sync
2014-04-07 20:03:30 +02:00
Colin Leitner
17f81862ff
Refactored write_compressed_file_object
to a top-level function
2014-04-07 19:55:23 +02:00
Colin Leitner
ff89ef0a73
Removed unnecessary PDF output simplification for empty unicode strings
2014-04-07 19:48:33 +02:00
Colin Leitner
a48d55a79c
Replaced unnecessary call to setattr
with direct assignment
2014-04-07 19:35:00 +02:00
Colin Leitner
5f16ac536e
Clarified attachment documentation
2014-04-07 19:32:48 +02:00
Colin Leitner
e519ba89f1
Fixed the meta testcase which had no idea of the new attachments entry
2014-04-07 19:28:14 +02:00
Guillaume Ayoub
a6a9f15826
Use ahem for test_overflow_wrap ( fix #180 )
2014-04-07 11:58:53 +02:00
Simon Sapin
cf9a688158
Don’t use bold text to test ex units, it affects the x-height of Ahem.
...
Fixes a test that was broken for me.
2014-04-07 01:48:27 +01:00
Colin Leitner
12734323f4
Fixed an expression which led to a KeyError for internal links.
2014-04-06 15:37:25 +02:00
Colin Leitner
7ac01f0519
Added support for PDF file annotations.
2014-04-04 18:46:00 +02:00
Colin Leitner
e458380190
Added support for PDF attachments (v2)
2014-04-04 12:32:21 +02:00
Christian Jurk
8b6f09c47f
Added more alternative names for dlopen gobject, pango and pangocairo on Mac
2014-03-18 12:00:09 +01:00
Guillaume Ayoub
dfee2badda
Merge branch 'master' of github.com:Kozea/WeasyPrint
2014-02-16 19:42:44 +01:00
Guillaume Ayoub
d07cb2261f
Don't crash when table with implicit width has column widths with percentages ( fix #169 )
2014-02-16 19:41:41 +01:00
Simon Sapin
372bcb5d1d
Make <fieldset> display: block
(See #168 )
2014-02-07 10:26:41 +00:00
Guillaume Ayoub
39a3ee603a
Merge branch 'master' of github.com:Kozea/WeasyPrint
2014-01-22 11:37:15 +01:00
Guillaume Ayoub
bb432ce351
Fix tests relying on font-specific metrics
2014-01-22 11:36:57 +01:00
Simon Sapin
b11e4e2d94
Changelog for v0.21
2014-01-11 12:13:14 +00:00
Simon Sapin
c34221d215
2014.
2014-01-10 14:27:02 +00:00
Johannes Duschl
21be3d968a
When determining the table_cell width, table.width needs also be checked whether it equals 'auto'.
2014-01-07 17:25:37 +00:00
Guillaume Ayoub
86eda6fa6d
Merge branch 'master' of github.com:Kozea/WeasyPrint
2013-12-31 16:46:30 +01:00
Guillaume Ayoub
2c52dc0e93
Merge branch 'css3/overflow_wrap' of git://github.com/fdeslandes/WeasyPrint into fdeslandes-css3/overflow_wrap
...
Conflicts:
weasyprint/text.py
2013-12-31 16:46:16 +01:00
Simon Sapin
637a4933c2
Add 'image-resolution' from css-images-3.
...
This is the only way to use high-resolution images in the 'content' property,
where individual images can not be selected to use the 'width' or 'height'
properties.
2013-12-31 15:31:35 +01:00
Guillaume Ayoub
bc0e612666
Make 'collapse' act like 'hidden' for non-table row or column elements
2013-12-30 17:53:20 +01:00
Guillaume Ayoub
e943741d02
Don't crash when relative boxes have absolute children ( fix #118 )
2013-12-30 14:43:41 +01:00
Guillaume Ayoub
3187fd8215
Don't forget left and right properties when solving absolute replaced elements position ( fix #30 )
2013-12-27 18:35:04 +01:00
Guillaume Ayoub
85c1fbaab3
Remove print() in tests
2013-12-27 18:01:32 +01:00
Guillaume Ayoub
b0c7dd5e4e
Update columns posititions when tables are translated ( fix #82 )
2013-12-27 17:06:31 +01:00
Guillaume Ayoub
3402a4fc3b
Don't cash on trailing spaces with font-size: 0 ( fix #100 )
2013-12-27 16:01:07 +01:00
Guillaume Ayoub
d7e51a917a
Fix mix-width and max-width for floats ( fix #26 )
2013-12-27 15:39:05 +01:00
Guillaume Ayoub
75a4241177
Don't crash whith documents with no lang attribute
2013-12-27 15:20:30 +01:00
Guillaume Ayoub
6315af3b8a
Use pyphen's fallback mechanism for unknown languages ( fix #40 )
2013-12-27 01:23:15 +01:00
Clément Plasse
1330164c2b
Merge branch 'master' of github.com:Kozea/WeasyPrint
2013-12-18 18:07:42 +01:00
Clément Plasse
449ef365d4
Fix background for tables
2013-12-18 18:07:38 +01:00
Guillaume Ayoub
dcd640ddce
Version 0.20.2
2013-12-18 17:26:57 +01:00
Guillaume Ayoub
3e49ce8abe
Don't crash when drawing borders on 0-size boxes ( fix #146 )
2013-12-18 15:30:59 +01:00
Guillaume Ayoub
f31f270552
Version 0.20.1 in __init__
2013-12-16 13:46:47 +01:00
Guillaume Ayoub
6b5b052822
Fix comment
2013-12-14 14:03:45 +01:00
Pierre-Alain Mignot
b64ebab515
tries to fix a bad splitting value from pango ?
2013-12-14 14:03:13 +01:00
Guillaume Ayoub
48637736d8
Use a better algorithm for border-style: ridge/groove/inset/outset ( fix #78 )
2013-12-14 13:40:44 +01:00
Guillaume Ayoub
674598cace
Fix source selector generator not ending with stylesheets using bad mimetype
2013-12-13 14:12:31 +01:00
Clément Plasse
469ca93b42
Fix table element order drawing following the spec
2013-12-13 12:42:14 +01:00
Guillaume Ayoub
4f904a955e
Fix sign error for rounded content box
2013-12-10 18:29:58 +01:00
Simon Sapin
c346f8b061
border-radius: Fix overlapping curves with the used radii
2013-12-10 14:49:34 +00:00
Guillaume Ayoub
effb7d339a
Use any() instead of +/or mix (see #80 )
2013-12-10 15:09:43 +01:00
Guillaume Ayoub
0e02a170af
Fix rounded content box (see #80 )
2013-12-10 15:08:16 +01:00
Guillaume Ayoub
b850d613fe
Add TODOs
2013-12-10 13:33:17 +01:00
Guillaume Ayoub
4070caf23a
Fix python 2.6 support
2013-12-10 13:32:51 +01:00
Guillaume Ayoub
e7687785fd
Fix background-clip for rounded corners (see #80 )
2013-12-10 13:17:18 +01:00
Guillaume Ayoub
d4493e5707
Merge branch 'master' into border3
2013-12-10 11:02:36 +01:00
Guillaume Ayoub
5b0befa91a
Fix overconstrained test
2013-12-10 11:00:18 +01:00
Guillaume Ayoub
882b6fce20
Be careful with the clip! Fix last bug for rounded borders.
2013-12-10 10:28:31 +01:00
Guillaume Ayoub
5eb9d41e1d
Fixed one bug again in borders, one bug left
2013-12-10 09:22:34 +01:00
Guillaume Ayoub
def2177d28
Remove duplicates again!
2013-12-09 21:42:33 +01:00
Guillaume Ayoub
f8c06c5179
Remove duplicate code again
2013-12-09 21:31:54 +01:00
Guillaume Ayoub
eb134d3ded
Deduplicate some code about borders
2013-12-09 19:51:59 +01:00
Guillaume Ayoub
e95aadcaa0
Small fix for borders
2013-12-09 19:25:36 +01:00
Guillaume Ayoub
09c9781de0
Use a way more simple way to draw dots in borders
2013-12-09 19:14:38 +01:00
Guillaume Ayoub
2e3203f79b
Fix sign
2013-12-09 12:52:26 +01:00
Guillaume Ayoub
40963f59c4
Draw real ellipse arcs instead of bezier curves
2013-12-07 15:53:52 +01:00
Clément Plasse
3307be5d2c
Fix offset
2013-12-06 19:00:20 +01:00
Clément Plasse
25a620e9fd
Better choice of the transition point
2013-12-06 16:04:53 +01:00
Clément Plasse
bdbacdd8e3
Fix double clip for borders
2013-12-06 13:06:40 +01:00
Clément Plasse
29da3b4c3c
Merge branch 'master' of https://github.com/Kozea/WeasyPrint
2013-12-06 11:16:35 +01:00
Guillaume Ayoub
6524ab3ac2
Add left and right borders
2013-12-06 11:12:03 +01:00
Guillaume Ayoub
766171c11f
Group code for top and bottom borders
2013-11-19 16:02:52 +01:00
Guillaume Ayoub
5d99fdd54d
Add support for bottom borders
2013-11-19 14:37:49 +01:00
Guillaume Ayoub
05db0852b7
Fix again failing tests with Python 2
2013-10-17 14:55:16 +02:00
Guillaume Ayoub
091a934e66
Fix tests with some versions of Python 2
2013-10-17 14:43:33 +02:00
Guillaume Ayoub
82a188e86a
Merge pull request #112 from Kozea/html5lib
...
Switch to html5lib to parse HTML. Fix #12 .
2013-10-17 05:22:51 -07:00
Simon Sapin
4b69eaf5f8
Make --help ASCII only, fix #127
2013-10-14 15:07:05 +01:00
Frédérick Deslandes
1a2345f580
Refactored word-wrap keywords validation
2013-10-01 13:35:08 -04:00
Frédérick Deslandes
d17282a3aa
Implemented word-wrap alias.
...
Also added my name to AUTHORS
2013-10-01 11:52:05 -04:00
Frédérick Deslandes
f409ceeb25
Implemented CSS3 overflow-wrap property
...
Implemented the property as described by the W3C draft. There is still a
bug with shaping characters which does not keep their shapes when wrapped
on new lines. Implemented as overflow-wrap CSS property, but maybe it
should be refactored to -weasy-overflow-wrap. Browser implementation is
inconsistent, so there was no clear answer.
2013-10-01 09:51:10 -04:00
Guillaume Ayoub
21320ab538
Handle cases when height>width for border radius
2013-09-17 20:17:11 +02:00
Guillaume Ayoub
d56c799c73
Merge branch 'master' into border3
2013-09-17 13:08:31 +02:00
Guillaume Ayoub
6f5d6124a4
Double clip borders
2013-09-14 11:13:53 +02:00
Guillaume Ayoub
aef454122b
Small fix
2013-09-14 10:24:40 +02:00
Guillaume Ayoub
a49f456c21
Small fixes about borders
2013-09-14 10:21:25 +02:00
Guillaume Ayoub
a0bf5981ad
Fix stupid bug in border radius index for dot/dash step
2013-09-12 16:50:17 +02:00
Simon Sapin
75cdc9baef
Add 'font-stretch' in the 'font' shorthand.
2013-09-09 21:14:30 +01:00
Florian Mounier
f7c363e546
logging.warn is still deprecated
2013-08-19 14:40:51 +02:00
Florian Mounier
e3d7bad55b
Be careful logging.warn is deprecated
2013-08-19 14:38:09 +02:00
Guillaume Ayoub
3e3accd619
Merge branch 'master' into border3
2013-08-14 12:50:32 +02:00
Guillaume Ayoub
3d816023dd
Remove stupid line in test, fixes pypy support
2013-08-12 13:32:18 +02:00
Clément Plasse
c2cb5b093b
Fix row assigned height when it's not 'auto'
2013-08-07 09:38:54 +02:00
Guillaume Ayoub
324e3f7867
Don't crash when root element is not displayed ( fix #113 )
2013-08-04 14:52:47 +02:00
Guillaume Ayoub
fd5cbad513
Handle percentages for column groups
2013-08-03 16:35:19 +02:00
Guillaume Ayoub
5b4b67e67f
Handle (some) percentages for table columns and cells
2013-08-02 18:58:56 +02:00
Guillaume Ayoub
0b0edc02e3
Use 'm' instead of 'l' charater in tests based on 'em' unit
2013-08-02 12:30:34 +02:00
Simon Sapin
3589303449
Bump version number, there is at least PDF metadata as a new feature.
2013-07-26 13:56:13 +01:00
Simon Sapin
4069a1cc36
Switch to html5lib to parse HTML. Fix #12 .
2013-07-24 13:21:48 +01:00
Guillaume Ayoub
5fc60f9041
Fix borders (only works for top now)
2013-07-22 16:11:59 +02:00
Simon Sapin
eb08733938
Add PDF metadata parsed from HTML. Fix #77 .
...
<title> → /Title
<meta name=author> → /Author
<meta name=description> → /Subject
<meta name=keywords> → /Keywords
<meta name=generator> → /Creator
<meta name=dcterms.created> → /CreationDate
<meta name=dcterms.modified> → /ModDate
"WeasyPrint vX.Y" → /Producer
2013-07-22 00:13:11 +01:00
Simon Sapin
52c06894b7
Docs: add an example combining documents into one PDF file.
2013-07-14 09:22:04 +01:00
Simon Sapin
783de80f30
Tentative fix for #97 : w.HTML(positional_argument) crashes Python < 2.6.5
2013-07-11 18:43:11 +01:00
Pierre-Alain Mignot
76b87c82f4
Fix #101 : Write PDF bookmarks/outline correctly.
...
The PDF spec says that the target of a bookmark/outline entry contains
the *object ID* of the target page. We previously wrote the *page number*,
which for some reason still worked in some PDF viewers.
2013-06-28 18:33:14 +01:00
Simon Sapin
3313c061ae
Fix #84 : Mak loading an author stylesheet not fatal.
2013-06-20 22:11:19 +01:00
Simon Sapin
d8014d28ad
Image loading: only swallow exception related to fetching or decoding.
2013-06-20 22:06:47 +01:00
Simon Sapin
05e1cb22b2
URL fetching: enforce closing sockets/files with a context manager.
2013-06-20 15:16:47 +01:00
Simon Sapin
711d5aa19b
Small refactoring.
2013-06-20 12:40:21 +01:00
Simon Sapin
9c9fc1ae2d
Do not get MIME types base on URLs.
2013-06-20 12:40:11 +01:00
Simon Sapin
9d5cebb5ce
URL fetching: use an intermediate function rather than a wrapper
2013-06-20 12:17:03 +01:00
Simon Sapin
ae6764143c
Fix a possible use-after-free.
2013-06-19 10:04:37 +01:00
Simon Sapin
1be520f1b0
Merge branch 'master' of git://github.com/pikhovkin/WeasyPrint
2013-06-18 18:18:19 +01:00
Simon Sapin
12966087ee
Changelog for v0.19.2
2013-06-18 16:40:18 +01:00
Simon Sapin
bed4a41c41
Avoid duplicating the check for cairo MIME data support.
2013-06-18 15:18:05 +01:00
Sergey Pikhovkin
8b86643e0e
Copy table.column_positions
...
Copy list if the element is inserted on each page (eg. as https://gist.github.com/pikhovkin/5642563 ), else expanding table.column_positions
2013-06-18 17:47:39 +04:00
Simon Sapin
e8fac4b840
Fix #99 : JPEG image not loading with cairo 1.8.x
2013-06-18 12:48:06 +01:00
Sergey Pikhovkin
697c52dc00
Copy list
...
Copy list if the element is inserted on each page (eg. as https://gist.github.com/pikhovkin/5642563 ), else expanding table.column_positions
2013-06-14 16:32:15 +04:00
Guillaume Ayoub
856890e0b1
Fix dotted and dashed borders
2013-06-13 17:52:39 +02:00
Guillaume Ayoub
6b8d32a501
Don't validate the lengths in border-radius twice
2013-06-13 16:55:40 +02:00
Guillaume Ayoub
8463ba0c46
Cast round() to an int
2013-06-12 21:50:29 +02:00
Guillaume Ayoub
c16953cf3f
Fix dotted and dashed borders, fixes all tests
...
Rounded dotted and dashed borders are still broken
2013-06-10 23:47:10 +02:00
Guillaume Ayoub
34c6fe3de3
Handle ridge and groove
2013-06-07 19:46:35 +02:00
Guillaume Ayoub
7ce1648cf1
Handle inset and outset border styles
2013-06-07 19:29:37 +02:00
Guillaume Ayoub
eb22847dd2
Fix min and max calls
2013-06-07 19:21:02 +02:00
Guillaume Ayoub
a9b21387c1
Remove duplicate code
2013-06-07 19:03:59 +02:00
Guillaume Ayoub
aca98d7d38
Fix a couple of things again
2013-06-07 17:19:10 +02:00
Guillaume Ayoub
1bb50557bf
Fix a couple of little things
2013-06-07 17:14:32 +02:00
Guillaume Ayoub
1e226cd88a
Fix overlapping curves
2013-06-07 17:05:58 +02:00
Guillaume Ayoub
cb2460067b
Fix outlines and collapsed borders in tables
2013-06-07 16:52:31 +02:00
Guillaume Ayoub
ca91649f02
Draw rounded border segments
...
This breaks outlines and collapsed borders
2013-06-07 13:13:27 +02:00
Guillaume Ayoub
3256eebad1
Use better names for variables and methods about rounded boxes
2013-06-06 16:21:56 +02:00
Guillaume Ayoub
f0b8b755bd
Draw solid and double borders
2013-06-06 15:58:00 +02:00
Guillaume Ayoub
0345af4d3d
First commit about border-radius, works for the background
2013-06-05 18:56:57 +02:00
Guillaume Ayoub
dccd562c6b
Don't clip the border when overflow: hidden
2013-06-05 18:45:16 +02:00
Guillaume Ayoub
1930bb1ffe
Cut long lines
2013-06-03 18:35:37 +02:00
Guillaume Ayoub
b766ffac22
Merge branch 'typographic-text-decorations' of git://github.com/ariofrio/WeasyPrint into ariofrio-typographic-text-decorations
...
Conflicts:
weasyprint/draw.py
2013-06-03 18:26:08 +02:00
Guillaume Ayoub
0eed4a088f
Actually draw multiple lines when multiple values are given to text-decoration
2013-05-24 19:07:53 +02:00
Guillaume Ayoub
3a9fa3cb66
Fix encoding error when files are restored from saved HTML in test_web
2013-05-24 19:06:40 +02:00
Guillaume Ayoub
af3d964f44
Merge pull request #90 from ariofrio/test-web-unicode
...
Allow non-ascii characters to be used in the test_web app
2013-05-24 09:45:53 -07:00
Guillaume Ayoub
0ac3ba6db3
Merge pull request #88 from ariofrio/fix-overline
...
Fix overline not being drawn above the text
2013-05-24 09:21:40 -07:00
Le-Stagiaire
72c9c02b64
Typo in bookmark label
2013-05-24 16:27:11 +02:00
Andres Riofrio
3666b4d9f4
Allow non-ascii characters to be used in the test_web app
2013-05-17 10:21:30 -07:00
Andres Riofrio
1aea07a33f
Read typographic hints from Pango for text decorations
2013-05-17 09:52:05 -07:00
Andres Riofrio
d2c69d09f0
Fix overline not being drawn above the text
2013-05-17 09:48:38 -07:00
Guillaume Ayoub
f2e9fbb95e
Make counter names case-sensitive
2013-05-10 12:13:21 +02:00
Le-Stagiaire
505be3c99c
Fix background-size: cover/contain for image ratio ≠ 1
2013-05-02 19:46:36 +03:00
Simon Sapin
22b4a95406
Changelog for v0.19.1
2013-04-30 17:08:33 +02:00
Simon Sapin
b57a9e8e0e
Use anti-aliasing for dotted borders. It looks better that way.
2013-04-30 11:50:32 +02:00