26033 Commits

Author SHA1 Message Date
Kovid Goyal
a2aae7fa8e A parse method that first tries to parse as XML
Fallback to much slower HTML 5 parsing only if parsing as XML fails.
2013-10-28 15:15:47 +05:30
Kovid Goyal
a228d95678 Speed up parsing by only special casing non-XML safe attributes 2013-10-28 13:34:28 +05:30
Kovid Goyal
2462f6b832 ... 2013-10-28 13:24:57 +05:30
Kovid Goyal
ddec629bd7 Add function to measure performance 2013-10-28 13:22:54 +05:30
Kovid Goyal
45c2211c4b Rename parse to parse_html5 2013-10-28 10:57:42 +05:30
Kovid Goyal
dd676227b8 Preserve attribute order when parsing 2013-10-28 10:57:42 +05:30
Kovid Goyal
12a581786b oops 2013-10-28 10:57:42 +05:30
Kovid Goyal
6310c2feac Handle attributes from multiple body tags 2013-10-28 10:57:42 +05:30
Kovid Goyal
3e986bccf3 Speed up unnecessarily slow and obtuse dict comparison 2013-10-28 10:57:42 +05:30
Kovid Goyal
9503652a4b Add support for line numbers to the HTML 5 parser 2013-10-28 10:57:42 +05:30
Kovid Goyal
0d1c917281 Speed up parsing some more by using a faster stream class 2013-10-28 10:57:42 +05:30
Kovid Goyal
d93467b3a3 Ensure that svg, mathml tags and xlink attrs have the standard namespace prefixes 2013-10-28 10:57:42 +05:30
Kovid Goyal
280add23ca Fix parsing of foreign elements with discard_namespaces
Also small speedup by using direct attributes for the
name/namespace/nameTuple attributes.
2013-10-28 10:57:42 +05:30
Kovid Goyal
2c6d5985a5 Implement namespace less parsing 2013-10-28 10:57:42 +05:30
Kovid Goyal
ea7930ee83 Speed up parsing by not using element __bool__ 2013-10-28 10:57:42 +05:30
Kovid Goyal
002895ff42 Replace entities 2013-10-28 10:57:41 +05:30
Kovid Goyal
03a39f15d1 Ignore DataLossWarnings 2013-10-28 10:57:41 +05:30
Kovid Goyal
62ebb5e3f6 ... 2013-10-28 10:57:41 +05:30
Kovid Goyal
fe32a39f0f Parse namespace prefixed <html:html> correctly 2013-10-28 10:57:41 +05:30
Kovid Goyal
d3352aeec9 Fix html5 conversion parser not handling ascii control chars 2013-10-28 10:57:41 +05:30
Kovid Goyal
62d042d9d4 Basic parsing with the new html5lib lxml tree builder works 2013-10-28 10:57:41 +05:30
Kovid Goyal
6d08762344 Infrastructure for supporting translations of plugins 2013-10-28 10:10:59 +05:30
Kovid Goyal
e4557408a8 Fix comments editor in review metadata becoming too small
Fix comments editor in review metadata becoming too small
on small screens. Fixes #1245275 [review downloaded metadata doesn't show the comments field](https://bugs.launchpad.net/calibre/+bug/1245275)
2013-10-28 08:41:16 +05:30
Kovid Goyal
2e2f74ea09 DOCX Input: Fix hyperlink showing as underlined even if the hyperlink style in word is set to not show underlines. 2013-10-27 18:45:05 +05:30
Kovid Goyal
4992f3fb37 Option to check for duplicates while copying between libraries
Add an option to check for duplicates (books with the same title/author)
when copying between libraries. Option is under Preferences->Adding
books. Fixes #1245089 [When copying or moving book to different library, Calibre does not warn if possible duplicate exists in target library.](https://bugs.launchpad.net/calibre/+bug/1245089)
2013-10-27 17:58:57 +05:30
Kovid Goyal
cbf3dd41c7 pep8 2013-10-27 17:19:45 +05:30
Kovid Goyal
1854a412ec Driver for Lenovo IdeaPad
Fixes #1244857 [Lenovo android ideatab tablet not recognized](https://bugs.launchpad.net/calibre/+bug/1244857)
2013-10-27 09:51:40 +05:30
Kovid Goyal
bf686caf97 Ebook viewer: remember inspector windows size
E-book viewer: Remember the size of the "Inspect" window used to examine
the book's code. Fixes #1245068 [Feature request: web inspector window size and font size](https://bugs.launchpad.net/calibre/+bug/1245068)
2013-10-27 09:49:21 +05:30
Kovid Goyal
9d5ea30749 PDF Output: Option to control title of generated Table of Contents
Fixes #1245076 [[Enhancement] Add PDF TOC Title, More Margin Options and ePub TOC Heading 1](https://bugs.launchpad.net/calibre/+bug/1245076)
2013-10-27 08:51:15 +05:30
Kovid Goyal
b05be6f902 PDF metadata: If one of the keywords in the PDF is a valid ISBN, use it as the ISBN for the book 2013-10-26 21:15:40 +05:30
Kovid Goyal
395eba9518 Update Reuters (Japan) 2013-10-26 17:02:07 +05:30
Kovid Goyal
92741af8e2 Wireless driver: Fix bug that prevented different formats of the same book on the device from being recognized
Merge branch 'master' of https://github.com/cbhaley/calibre
2013-10-26 07:50:47 +05:30
Kovid Goyal
c83d9e245c Update MIT Technology Review 2013-10-25 16:20:18 +05:30
Kovid Goyal
ae285264c5 Update dotNet Magazine 2013-10-25 16:17:35 +05:30
Kovid Goyal
7360075e04 Update Science Based News 2013-10-25 15:59:30 +05:30
Charles Haley
7460eaf760 Fix cache bug that prevented recognizing different formats of the same book as being on the device. Also add an option to disable the cache. 2013-10-25 10:01:13 +02:00
Kovid Goyal
a6567a7c03 linux freeze: Handle six.py v1.8.0 2013-10-25 09:01:29 +05:30
Kovid Goyal
1326dfe243 ... 2013-10-25 08:55:37 +05:30
Kovid Goyal
9ea3b6b398 version 1.8 2013-10-25 08:52:37 +05:30
Kovid Goyal
37e969502b Add debug output for 32bit calibre on 64bit windows 2013-10-25 08:33:51 +05:30
Kovid Goyal
a8237e30ea Merge branch 'master' of https://github.com/GRiker/calibre
Hide the connect to itunes menu item on os x 10.9
2013-10-24 18:43:29 +05:30
GRiker
f40c189515 Disable 'Connect to iTunes' when OS X >= 10.9 2013-10-24 06:55:59 -06:00
Kovid Goyal
39701cdaa8 Conversion: When converting TXT set <title> in HTML
TXT Input: Ensure that <title> in the generated HTML has a
meaningful value. Fixes #1236923 [txt → epub When I don't give a title, the <title> tag is set to unknown. It should default to the chapter name and chapter ID for each fragment. Or use the name of the converted file](https://bugs.launchpad.net/calibre/+bug/1236923)
2013-10-24 14:31:48 +05:30
Kovid Goyal
b9bfb53fa2 Add a pointer to the launchpad bug tracker in the README 2013-10-24 14:15:37 +05:30
Kovid Goyal
238be8d5c0 PDF Output: Fix rendering of translucent images
PDF Output: Fix rendering of semi-transparent images. All
semi-transparent images are now rendered using soft masks. Fixes #1243829 [Images in PDF conversion corrupted](https://bugs.launchpad.net/calibre/+bug/1243829)
2013-10-24 13:45:47 +05:30
Kovid Goyal
795ae4e84f Nicer duplicate list when automerging books on add
When automerging books during during an add, include the author as well
as the title in the report of merged books.
2013-10-24 12:37:36 +05:30
Kovid Goyal
54508172a4 DOCX Input: Support linked images
DOCX Input: Support linked (as opposed to embedded) images, if the
linked image is found on the local computer. Fixes #1243597 [MS Word linked pictures don't get converted](https://bugs.launchpad.net/calibre/+bug/1243597)
2013-10-24 12:01:11 +05:30
Kovid Goyal
78e8ba74a0 Add the six module required by html5lib 2013-10-24 11:35:49 +05:30
Kovid Goyal
9211f72cd3 OSX: Fix font size in completion popups too small on Mavericks (I hope)
Fixes #1243761 [In OS 10.9 pull-down menus are to small](https://bugs.launchpad.net/calibre/+bug/1243761)
2013-10-24 09:52:26 +05:30
Kovid Goyal
849fd5dbeb Fix OS X version detection on Mavericks
OS X: Fix system tray notifications causing crashes on some OS X 10.9
(Mavericks) systems (those that had Growl installed at some point).
See #1224491 (Calibre Crashes on Mac OS X Mavericks)
2013-10-24 09:39:27 +05:30