15 Commits

Author SHA1 Message Date
Kovid Goyal
027bf97633
Move more extension modules to multi-phase initialization 2020-10-24 14:28:56 +05:30
Kovid Goyal
9cab833728
Remove py2 code paths 2020-08-22 18:48:06 +05:30
Kovid Goyal
1473f4a83e
Forgot to remove unused dot object 2019-05-01 17:14:05 +05:30
Kovid Goyal
d324e776b5
Greatly simplify unicode_to_number
This also has the virtue of making number parsing locale independent, as
is required for parsing CSS literals
2019-05-01 17:10:21 +05:30
Kovid Goyal
6272e4db9d
... 2019-04-02 10:37:41 +05:30
Kovid Goyal
ffb5160f3c
py3: Fix parsing of numbers in tinycss tokenizer 2019-04-02 10:34:01 +05:30
Eli Schwartz
3fb2563d08 tokenizer: fix compile errors in merge of python3 port 2018-12-17 10:31:45 -05:00
Kovid Goyal
7463d23777
... 2018-12-10 11:52:05 +05:30
Kovid Goyal
36647d4762
Merge branch 'ft-py3-tokenizer' of https://github.com/flaviut/calibre 2018-12-10 11:24:10 +05:30
Flaviu Tamas
5f420d7047
Fix number->size conversion 2018-12-08 17:24:28 -05:00
Flaviu Tamas
cf576342e1
Build tokenizer on py3
- The actual unicode manipulation wasn't converted to the new 3.3+
style, since it would lead to lots of ifdefs and become quite ugly. This
can be done when py2 support is dropped. The drawbacks will be
temporary slower code (there will be extra copying required).
2018-12-08 17:24:18 -05:00
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
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