Commit Graph

144 Commits

Author SHA1 Message Date
Guillaume Ayoub decdc0941e Handle content(first-letter) 2018-01-30 22:49:18 +01:00
Guillaume Ayoub 0fcf4134ca Merge pull request #516 from Kozea/pdfrw
Use pdfrw instead of editing PDF files directly
2017-10-05 11:18:12 +02:00
Guillaume Ayoub e5dcab7cf3 Cleanups 2017-10-05 08:45:50 +02:00
Guillaume Ayoub f10bf7f616 Don't crash on non-dimension values for image-resolution
Fix #513.
2017-10-01 15:25:49 +02:00
Václav Pokluda 05446f5eff Added support to work with bleed like padding (bleed-top/right/bottom/left) 2017-09-21 12:03:09 +02:00
Guillaume Ayoub 5f25373a6e Use "proprietary" and "unstable" to define the use of prefixes
This is the terminology used by the CSSWG. Fix #498.
2017-09-05 22:58:35 +02:00
Guillaume Ayoub 71d54095bd Add support of marks and bleed pages properties
Fix #471.
2017-09-05 15:44:50 +02:00
Guillaume Ayoub 9556781314 Fix misleading warnings about unprefixed properties 2017-08-17 16:01:25 +02:00
Guillaume Ayoub 9f9716df33 Remove case-sensivity for at-rules and properties 2017-08-17 07:52:18 +02:00
Guillaume Ayoub 363e9f6bd2 Unprefix properties defined in specifications 2017-08-17 07:42:42 +02:00
Guillaume Ayoub 84dd9b8002 Merge branch 'master' into namedpages 2017-08-02 23:52:17 +02:00
Guillaume Ayoub a3e2c474f0 Transform StyleDict into a kind of frozen dict
This forces to use a copy when changes are needed. Internal mutable structures
have also been changed into immutable ones (i.e. lists have been turned into
tuples).

This change is a really useful first step to greatly optimize memory and time
needed to render large documents, as allows us to cache style dicts more
safely. It's been already done in StyleDict.inherit_from, with a ~5-10% memory
benefice.
2017-07-28 13:35:06 +02:00
Guillaume Ayoub fcd6bf7070 Clean and document the logging levels
Related to #488.
2017-07-25 13:59:56 +02:00
Guillaume Ayoub 9270697e80 Handle the page property 2017-07-18 02:01:36 +02:00
Simon Sapin 0aa62e249e Switch to tinycss2 2017-03-26 18:44:21 +02:00
Guillaume Ayoub 4f4b4ed598 Use isort in tests 2017-03-25 00:33:36 +01:00
Guillaume Ayoub ae040e1c71 Respect flake8 everywhere 2017-03-25 00:24:27 +01:00
Guillaume Ayoub 4c0fcfe44f Support font-variant and font-feature-settings descriptors 2016-10-07 13:42:05 +02:00
Guillaume Ayoub f780cc033e Support font-language-override 2016-09-13 05:02:36 +02:00
Guillaume Ayoub 4156febcbf Support CSS Fonts level3 2016-09-12 00:23:52 +02:00
Guillaume Ayoub b252260522 Small fixes for column layouts 2016-08-30 17:54:15 +02:00
Guillaume Ayoub 698ce20f1f Support break-* properties 2016-08-30 13:35:23 +02:00
Guillaume Ayoub fef2469dc3 Merge branch 'columns' 2016-08-26 15:13:20 +02:00
Guillaume Ayoub a762d94b12 Use values defined in Images 4 for image-rendering 2016-08-24 17:44:21 +02:00
Guillaume Ayoub a0dc9d9272 Support text-transform: full-witdh 2016-08-21 00:47:13 +02:00
Guillaume Ayoub c2b9a6fe1a Support tab-size 2016-08-20 20:11:03 +02:00
Guillaume Ayoub fa8c302c69 Fix the "columns" validation 2016-08-15 17:15:24 +02:00
Guillaume Ayoub b37594e469 Flake8 2016-08-15 01:03:06 +02:00
Guillaume Ayoub 33aa5c6f6b Initial support of multi-column layouts
Related to #60.

This commit adds a really simple support of multi-column layouts.
2016-08-14 23:12:30 +02:00
Guillaume Ayoub 07e15db142 Add 'rem' support
This feature is kindly provided to you by Florian Demmer!
2016-02-11 23:02:53 +01:00
Guillaume Ayoub a5b8239773 Respect the `empty-cells` property 2016-01-24 14:38:29 +01:00
Alex Eftimie 93f497bf11 Replace utf8 with utf-8 for gettext compatibility 2015-11-25 09:38:01 +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 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 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 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
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 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
Simon Sapin 43d1e73e65 Fix code formatting. (Clean flake8!) 2014-04-27 12:29:55 +01:00
Simon Sapin c34221d215 2014. 2014-01-10 14:27:02 +00:00