Commit graph

21452 commits

Author SHA1 Message Date
Kovid Goyal
f499c4904c Allow diffing of non-ebook files as well 2014-01-30 09:47:07 +05:30
Kovid Goyal
a64e89bcc4 Always disable horiz scroll bars in diff view 2014-01-30 09:06:35 +05:30
Kovid Goyal
ec38ff9b95 Conversion: Add support for <style> and <link> tags outside the <head> tag. Fixes #1274339 [incorrect class substitution in html](https://bugs.launchpad.net/calibre/+bug/1274339) 2014-01-30 08:50:43 +05:30
Kovid Goyal
5eb1745526 Implement double clicking in the diff view opening the editor when viewing a diff against the current container 2014-01-29 21:11:28 +05:30
Kovid Goyal
209880df6c ... 2014-01-29 20:30:00 +05:30
Kovid Goyal
a45bd4b42e ... 2014-01-29 19:12:49 +05:30
Kovid Goyal
848ce1ce7c Nice position independent next and previous change buttons 2014-01-29 19:08:05 +05:30
Kovid Goyal
9ad290dcd9 ... 2014-01-29 18:49:56 +05:30
Kovid Goyal
3b4d563cd7 Insert context boundary at end of file as well if last change does not touch end of file 2014-01-29 17:37:58 +05:30
Kovid Goyal
11cbf14e3b ... 2014-01-29 17:33:20 +05:30
Kovid Goyal
1a095646d3 Fix calculation of line number area width not taking line number mapping into account 2014-01-29 17:28:58 +05:30
Kovid Goyal
e26ee89caf Insert context boundary at top of file is first change is not at top of file 2014-01-29 17:06:22 +05:30
Kovid Goyal
75bdef4fe3 Diff view: Fix scrolling when wrapped lines are present
Also enable line wrapping always instead of using the editor setting
2014-01-29 16:51:08 +05:30
Kovid Goyal
a6d8760a5a ... 2014-01-29 14:53:53 +05:30
Kovid Goyal
0d5cf9d78c Allow comparing the ORIGINAL_EPUB version of a book to the EPUB version by right clicking on the ORIGINAL_EPUB format in the book details panel. 2014-01-29 14:34:35 +05:30
Kovid Goyal
4fadc7dacc Show the view changes button only if there are some actual changes 2014-01-29 13:13:38 +05:30
Kovid Goyal
f630484554 Edit Book: Add a button to show diffs after any Polish action 2014-01-29 12:42:41 +05:30
Kovid Goyal
1c286fb671 Optimize diffing cloned containers 2014-01-29 11:25:01 +05:30
Kovid Goyal
0260880952 Edit book: Fix undo not working for subsetting fonts 2014-01-29 11:13:59 +05:30
Kovid Goyal
662b696fd0 CHM Input: Handle CHM files with broken markup where all the content is placed inside the <head> tag. Fixes #1273512 [words in italics removed after conversion to mobi](https://bugs.launchpad.net/calibre/+bug/1273512) 2014-01-28 14:25:43 +05:30
Kovid Goyal
6c04e010a5 pep8 2014-01-28 13:38:35 +05:30
Kovid Goyal
26ad1042a0 DOCX Input: Fix padding-left of <ul>, <ol> being defaulted to 0 if no padding specified in the docx style, which breaks rendering for lists at the left margin of the document. 2014-01-28 13:12:23 +05:30
Kovid Goyal
35fa14eab3 MOBI Output: Handle the value attribute on <li> tags. Fixes #1273559 [TOC numbers correct, Chapter numbers always 1](https://bugs.launchpad.net/calibre/+bug/1273559) 2014-01-28 12:50:34 +05:30
Kovid Goyal
119108371c Edit Book: Add check for spine items with incorrect media-type specified in the manifest 2014-01-28 11:05:17 +05:30
Kovid Goyal
77edd3a7a9 Edit Book: Enable editing of page map XML files 2014-01-28 10:06:09 +05:30
Kovid Goyal
21971d0e25 EPUB Output: Fix splitting of HTML files not updating links in the <pageList> section of the NCX file 2014-01-28 09:51:03 +05:30
Kovid Goyal
9f0e13f60e EPUB Input: Handle EPUB files with incorrect media types for the spine items when converting. Fixes #1273471 [OEBError: Spine is empty](https://bugs.launchpad.net/calibre/+bug/1273471) 2014-01-28 09:42:27 +05:30
Kovid Goyal
d09c93fc66 Keyboard shortcuts for find next and previous in diff view 2014-01-27 21:38:53 +05:30
Kovid Goyal
cb63a16439 Keyboard shortcut for copy in diff view 2014-01-27 21:36:27 +05:30
Kovid Goyal
66e4fc9ae1 Implement searching in the diff view 2014-01-27 21:28:33 +05:30
Kovid Goyal
d0cfb55682 ... 2014-01-27 20:20:55 +05:30
Kovid Goyal
67664e7956 Extend workaround for textboxes to also apply to bookmarks/hyperlinks 2014-01-27 16:55:17 +05:30
Kovid Goyal
a33aa68f60 DOCX Input: Handle text boxes better
DOCX Input: Improve handling of text boxes. Text boxes are still not
supported, but they no longer cause errors or duplicate content.
Fixes #1273130 [Converting from .docx fails](https://bugs.launchpad.net/calibre/+bug/1273130)
2014-01-27 16:49:16 +05:30
Kovid Goyal
d38bc2998d Fix incorrect paints when paint events generated by mouse clicks 2014-01-27 10:00:10 +05:30
Kovid Goyal
520be76781 Fix keyboard shortcuts not working for diff view when in dialog 2014-01-27 08:21:58 +05:30
Kovid Goyal
56807d7b3e Edit Book: Add check for links that point to directories in the book instead of files. Fixes #1272769 [Check Book in Edit Book end with Unhandled exception](https://bugs.launchpad.net/calibre/+bug/1272769) 2014-01-27 08:00:33 +05:30
Kovid Goyal
d24c887c2f Remove frames around diff text views so that the diff lines cross the separator cleanly 2014-01-26 21:44:35 +05:30
Kovid Goyal
3e6a84d903 Add diff colors for other color schemes 2014-01-26 21:37:54 +05:30
Kovid Goyal
93ddd73c31 Fix theme fallback not working 2014-01-26 20:31:27 +05:30
Kovid Goyal
8088aad402 Fix non-linear scrolling in the diff view 2014-01-26 16:53:07 +05:30
Kovid Goyal
c6b9425571 Various fixes for rendering of images in the diff view 2014-01-26 16:14:31 +05:30
Kovid Goyal
8aa827baf6 Various minor bug fixes 2014-01-26 15:42:42 +05:30
Kovid Goyal
15bfb2aada Start work on diff dialog 2014-01-26 15:27:27 +05:30
Kovid Goyal
c4b82a9db8 Edit book: Fix cover not being updated from the current cover in the calibre library when using Edit Book. Note that you can turn off metadata updating via Preferences->calibre Integration in Edit Book. Fixes #1272730 [[enhancement] add selected cover to book](https://bugs.launchpad.net/calibre/+bug/1272730) 2014-01-26 09:21:31 +05:30
Kovid Goyal
251caa3c7d Refactor all the diff code into a single dir 2014-01-25 20:40:07 +05:30
Kovid Goyal
de0226ba47 RTF Output: Fix failure to convert documents that contain comments with the -- string inside the comment. Fixes #1272588 [Private bug](https://bugs.launchpad.net/calibre/+bug/1272588) 2014-01-25 19:07:25 +05:30
Kovid Goyal
77b463b79a Highlighting the starting line number for changes 2014-01-25 17:00:01 +05:30
Kovid Goyal
ce99832337 Context menu actions to go to next/previous change 2014-01-25 16:52:28 +05:30
Kovid Goyal
183048d01a Add a right click context menu action to copy selected text 2014-01-25 13:30:32 +05:30
Kovid Goyal
e61ee4b510 Resize images in diff view when the view is resized 2014-01-25 11:13:58 +05:30
Kovid Goyal
89f4653068 Get rid of the unnecessary tracking of changes in the split view 2014-01-25 10:01:42 +05:30
Kovid Goyal
a9b3adbad3 Edit Book: Fix extra 1x1 unused GIF image being created when saving and re-opening AZW3 files. Fixes #1272410 [Editing AZW3 book adds 1x1 pixel gray gif each time](https://bugs.launchpad.net/calibre/+bug/1272410) 2014-01-25 09:52:36 +05:30
Kovid Goyal
a36aa7dab9 Edit Book: Show the filename of the currently edited file in the title bar. Fixes #1272543 [Enhancement : Book Editor - show file path](https://bugs.launchpad.net/calibre/+bug/1272543) 2014-01-25 09:16:21 +05:30
Kovid Goyal
edf222bcf0 Start work on displaying non-text files in the diff view
Binary files are shown as a single line with the file size. Images are
displayed inline. Currently, resizing images based on the view size
needs to be handled.
2014-01-24 22:10:43 +05:30
Kovid Goyal
867ede3703 Rename "Sort by popularity" to "Sort by number of books" 2014-01-24 14:20:25 +05:30
Kovid Goyal
715cfb23d2 Fix editing of narrow yes/no columns in the book list not very convenient
Fixes #1272089 [Making True/False columns narrow displaces the drop down list](https://bugs.launchpad.net/calibre/+bug/1272089)
2014-01-24 12:05:29 +05:30
Kovid Goyal
706ecd5fe9 version 1.21 2014-01-24 10:26:21 +05:30
Kovid Goyal
28d1938106 Add USB ids for newer Trekstor Pyrus firmware 2014-01-23 20:06:02 +05:30
Kovid Goyal
a8eeccc648 ... 2014-01-23 20:05:39 +05:30
Kovid Goyal
368badcb85 Debounce resize events 2014-01-23 16:22:53 +05:30
Kovid Goyal
acb1742432 Implement scrolling 2014-01-23 15:45:35 +05:30
Kovid Goyal
3bd33ab00a Metadata download: Fix downloading of metadata from edelweiss not working because of website changes 2014-01-23 09:44:51 +05:30
Kovid Goyal
3681ed7827 Change link to page with instructions on getting ISBNDB keys 2014-01-23 08:22:29 +05:30
Kovid Goyal
7ca1286575 Start work on diff view scrolling, also allow left and right panes to have different numbers of lines 2014-01-22 18:11:08 +05:30
Kovid Goyal
945f1be853 Ebook viewer: Do not override the background color specified in the book if the user has not set a background color in the viewer preferences 2014-01-22 17:28:03 +05:30
Kovid Goyal
56848d80f4 Edit book: Add a tool to split HTML files at multiple locations automatically.
To use it, right click in the file and choose "Split at multiple
locations".  Useful if you want to split at all heading tags or all tags
having a certain class and so on.
2014-01-22 12:08:34 +05:30
Kovid Goyal
83c5359df1 ... 2014-01-21 22:12:50 +05:30
Kovid Goyal
3edec38469 Edit book: Handle EPUB files that erroneously list the OPF itself in the OPF manifest with an incorrect mime type 2014-01-21 19:24:27 +05:30
Kovid Goyal
7a307a2e24 Edit book: Add a new tool to automatically remove all unused CSS rules.
Useful for books created from templates that can have large numbers of CSS rules that dont match any actual content. Available via Tools->Remove unused CSS.

Book polishing: Add an option to automatically remove all unused CSS
rules, works the same as the tool for Edit book, above.
2014-01-21 18:52:47 +05:30
Kovid Goyal
9a10d8e26d Draw lines in same order on splitter handle as in views 2014-01-21 11:28:07 +05:30
Kovid Goyal
5829676663 Connect change regions across the divider 2014-01-21 10:33:02 +05:30
Kovid Goyal
31a94acf5b Explicitly disable plugins when rendering HTML for covers. According to the Qt docs they should be disabled by default, but https://bugs.launchpad.net/bugs/1270297 implies they are not. 2014-01-20 22:48:42 +05:30
Kovid Goyal
83ac6bd846 ... 2014-01-20 22:39:07 +05:30
Kovid Goyal
0b1accee3f Add support for showing multiple diffs 2014-01-20 18:43:53 +05:30
Kovid Goyal
20295489cd Refactor to support multiple diffs in the same view 2014-01-20 17:08:03 +05:30
Kovid Goyal
2eccbae35f Improve appearance by painting border lines for change blocks last and indicating context boundaries in the line number column as well 2014-01-20 12:45:31 +05:30
Kovid Goyal
57c0b9c737 Break up large replace blocks where possible and implement intra-line highlighting 2014-01-20 12:06:32 +05:30
Kovid Goyal
faa969859b Add some help to the new file dialog on how to create files in specific folders 2014-01-20 08:45:51 +05:30
Kovid Goyal
5a02780254 Ensure that neighboring changes of the same kind are merged 2014-01-19 20:31:09 +05:30
Kovid Goyal
9e68f3a488 Fix #1270533 [Rename Orizon plugin to Cybook Orizon](https://bugs.launchpad.net/calibre/+bug/1270533) 2014-01-19 20:26:35 +05:30
Kovid Goyal
e4aa6754ec Mark boundaries between context groups 2014-01-19 15:47:33 +05:30
Kovid Goyal
45abaf8ce4 Implement drawing colored backgrounds for change blocks 2014-01-19 15:37:58 +05:30
Kovid Goyal
69f1382768 Add line numbers to the diff view 2014-01-18 18:12:56 +05:30
Kovid Goyal
a7695626bf Fix first line being lost in diff view 2014-01-18 18:09:59 +05:30
Kovid Goyal
76861d9144 Syntax highlighting for the diff view 2014-01-18 17:11:38 +05:30
Kovid Goyal
fff1a25981 ... 2014-01-18 17:09:30 +05:30
Kovid Goyal
d5278bfd5b Start work on diff view 2014-01-18 14:16:17 +05:30
Kovid Goyal
081836db66 Add in a default implementation of the event() override 2014-01-18 11:15:17 +05:30
Kovid Goyal
84ae3b8595 Refactor the workaround for QPlainTextEdit's mangling of nbsp into a separate class 2014-01-18 11:05:16 +05:30
Kovid Goyal
2c75b3c894 Edit book: Prevent arrange into folders tool from moving files inside the META-INF folder 2014-01-18 09:20:15 +05:30
Kovid Goyal
4b5a818392 Fix #1266079 [eBook Reader "ImCoSys imcoV6L" not detected by calibre](https://bugs.launchpad.net/calibre/+bug/1266079) 2014-01-17 18:15:23 +05:30
Kovid Goyal
0041b33804 Change emblem for duplicates to error symbol 2014-01-17 12:32:28 +05:30
Kovid Goyal
0b48bcec85 version 1.20 2014-01-17 09:19:16 +05:30
Kovid Goyal
b05f8a061d Fix user manual documentation for calibredb set_metadata incomplete 2014-01-17 08:37:43 +05:30
Kovid Goyal
f38246d400 Add checks for meta cover tag and OPF package identifier 2014-01-16 21:54:36 +05:30
Kovid Goyal
0409241765 Get the patience diff module compiling and loading 2014-01-16 20:57:31 +05:30
Kovid Goyal
b98677d9b1 Initial import of Patience Diff C implementation from bzr 2014-01-16 20:43:13 +05:30
Kovid Goyal
882a280c12 Prevent setting an incorrect value for compression quality in the wireless driver causing an error
Show a busy cursor while calibre is working on matching books on the
device to books int he library, which can take a while if the user has a
lot of books on the device.

Merge branch 'master' of https://github.com/cbhaley/calibre
2014-01-16 18:57:01 +05:30
Charles Haley
7aa33052ac Only accept non-user and non-network events while processing books. 2014-01-16 13:08:28 +01:00
Charles Haley
4b88f78bd0 Book matching during device connection:
1) add some debugging output
2) add some user feedback that it is happening by changing the status bar and setting a wait cursor.
3) make the book matching during device connection pseudo-multithread by processing GUI events during matching. In particular, this prevents the OS from deciding that calibre has stopped responding.
2014-01-16 12:36:53 +01:00