27 Commits

Author SHA1 Message Date
Kovid Goyal
aee8af31f3
Hide all symbols in the compiled python extensions on unix
They were already hidden on windows. Avoids the possibility of symbol
collisions and also means ld has to do less work when loading them
extensions.
2017-06-07 12:19:24 +05:30
Kovid Goyal
353e7c2b36 Fix subsetting of fonts whose names start with "and" not working
Caused by a bug in the font-family parsing routines of cssutils,
workaround by quoting the family name before passing it to cssutils.
2016-12-05 17:07:11 +05:30
Kovid Goyal
cf04fd266d DRYer 2016-07-17 09:55:39 +05:30
Kovid Goyal
75690f41f8 ... 2016-06-30 14:48:48 +05:30
Kovid Goyal
bb4fe4d924 Serialization of parsed fonts 2016-06-30 13:49:43 +05:30
Kovid Goyal
bbaf9875cc Use the new font parsing code for normalize_css 2016-06-30 12:25:28 +05:30
Kovid Goyal
b0b7a59afd Code to parse the font shorthand property 2016-06-30 11:07:51 +05:30
Kovid Goyal
f1122ac05f Discard empty strings when parsing font-family 2016-06-30 08:24:17 +05:30
Kovid Goyal
0643da49e0 ... 2016-06-30 08:22:19 +05:30
Kovid Goyal
553137015e Code to parse font family values 2016-06-30 08:18:15 +05:30
Kovid Goyal
538f0a7186 A single entry point to run all tests 2016-06-21 23:12:06 +05:30
Kovid Goyal
ef09e886b3 Change all shebangs to use python2 2015-01-23 19:08:21 +05:30
Kovid Goyal
1359f475af Edit Book: Live CSS: Fix clicking on link to go to style definition not working if the stylesheet contains CSS 3 media queries
Adds support for CSS 3 media query parsing to tinycss
2014-06-08 18:09:47 +05:30
Kovid Goyal
783b1d112b Use __slots__ for easy memory savings 2014-06-07 21:17:31 +05:30
Kovid Goyal
49e4d09cbc Refactor the @rule parsers into their own methods for easier sub-classing 2014-06-07 21:11:44 +05:30
Kovid Goyal
8ec267ae38 __repr__ for font-face rule 2014-06-07 20:57:11 +05:30
Kovid Goyal
397b7cc4e1 Edit Book: Live CSS: Fix going to style declaration in the editor not working correctly when the stylesheet contains @font-face rules 2014-06-07 14:38:27 +05:30
Kovid Goyal
9254dfeb0d Use the C tokenizer for tinycss 2014-05-25 08:46:04 +05:30
Kovid Goyal
322e6021e0 ... 2014-05-22 18:58:26 +05:30
Kovid Goyal
e7387aab1a Add tokenizer tests into the --test-build test suite 2014-05-22 16:36:23 +05:30
Kovid Goyal
a09869e9d8 ... 2014-05-22 16:18:32 +05:30
Kovid Goyal
04b45413c6 Testing for the C tokenizer 2014-05-22 15:23:25 +05:30
Kovid Goyal
adac7e6d1e Initial implementation of C code to speedup tinycss tokenization
Needs testing.
2014-05-22 14:17:15 +05:30
Kovid Goyal
1a71d61e8b Performance improvement 2014-05-21 16:52:50 +05:30
Kovid Goyal
f38af40146 Port the tinycss test suite to use the unittest module 2014-05-21 13:05:05 +05:30
Kovid Goyal
097d9e3099 Performance improvement 2014-05-21 11:19:20 +05:30
Kovid Goyal
d993534dfc Initial import of tinycss 2014-05-21 10:15:50 +05:30