27992 Commits

Author SHA1 Message Date
Kovid Goyal
b2168dc176 Another small speedup 2014-06-23 16:29:14 +05:30
Kovid Goyal
8d1433ae78 Another small speedup 2014-06-23 15:58:45 +05:30
Kovid Goyal
cf3c80598e A small speedup by using QTextCharFormat instead of SyntaxCharFormat when cloning formats 2014-06-23 15:42:04 +05:30
Kovid Goyal
2960c06867 ... 2014-06-23 15:26:35 +05:30
Kovid Goyal
58203bbaa5 Edit Book: 2x speedup for inline spell checking. Useful if you are editing large HTML files (over 100KB in size).
Qt's text layout engine becomes very slow if we store arbitrary python
objects in QTextCharFormat classes. So refactor to not do that.
2014-06-23 15:19:10 +05:30
Kovid Goyal
81e6ed1551 Refactor html syntax highlighting and implement profiling 2014-06-23 12:45:28 +05:30
Kovid Goyal
474455a7fd Edit Book: Check Book: Add a check for HTML files with non UTF-8 encoding declarations 2014-06-22 17:37:30 +05:30
Kovid Goyal
a09c890518 ... 2014-06-22 15:48:02 +05:30
Kovid Goyal
01d2a6df56 Edit Book: When editing HTML files that have charset encoding declarations, automatically change the declared encoding (if any) to UTF-8 on save, since the editor always saves files in the UTF-8 encoding.
This prevents a mismatch between the declared encoding and the actual
encoding if the HTML file was originally in an encoding other than
UTF-8.
2014-06-22 12:23:17 +05:30
Kovid Goyal
78be882aff Edit Book: Fix various problems when editing EPUB files with non-ascii filenames on OS X. Fixes #1317883 [calibre should care of 'decomposed UTF-8' filenames on Darwin platform](https://bugs.launchpad.net/calibre/+bug/1317883) 2014-06-22 11:38:30 +05:30
Kovid Goyal
cad2a50df9 Partial fix for check book with epub files with non-ascii internal filenames on os x 2014-06-22 10:39:49 +05:30
Kovid Goyal
41520c443d ... 2014-06-22 10:26:40 +05:30
Kovid Goyal
466383c519 Edit Book: Spell check dialog: Add an option to make filtering the word list case sensitive 2014-06-21 19:20:52 +05:30
Kovid Goyal
a6450d47a3 Edit Book: Remove unused CSS: Fix an erro if an HTML file links to a missing stylesheet 2014-06-21 16:11:43 +05:30
Kovid Goyal
df29ce1116 ... 2014-06-21 16:07:17 +05:30
Kovid Goyal
2f86ec6ccd ... v1.41.0 2014-06-21 09:20:39 +05:30
Kovid Goyal
b6f109c8be ... 2014-06-21 09:11:56 +05:30
Kovid Goyal
ed87e04e11 version 1.41.0 2014-06-21 08:55:04 +05:30
Kovid Goyal
e97135a768 calibredb: Add a new 'embed_metadata' command to update metadata in the actual book files in the calibre library from the calibre database. 2014-06-20 22:29:51 +05:30
Kovid Goyal
b1c36e7514 New tool to set metadata in the actual book files in the calibre library from the updated metadata in the calibre database. To use it go to Preferences->Toolbars and add the "Embed metadata" tool to the main toolbar. Then simply select the books whose files you want to update and click the Embed metadata button. Normally, calibre updated metadata in the book files whenever a file is exported from calibre. This tool is useful for people who want the files int he calibre library to have updated metadata as well. 2014-06-20 21:55:46 +05:30
Kovid Goyal
b14541e111 RTF metadata: Add proper support for unicode characters when reading and writing metadata to RTF files
Also fix failure to write metadata to RTF files that do not already have
a \info block
2014-06-20 21:51:09 +05:30
Kovid Goyal
542658a85f Refactor the code to embed metadata into format files to enable re-use 2014-06-20 19:19:05 +05:30
Kovid Goyal
5036b68d8a Edit Book: Allow customization of toolbars 2014-06-20 18:24:28 +05:30
Kovid Goyal
177901a239 Refactor toolbar creation code for eventual user customizability 2014-06-19 15:57:13 +05:30
Kovid Goyal
a837586bb9 When generating sphinx documentation from command line usage/options, try to recognize and mark references to option in the help text 2014-06-17 18:07:20 +05:30
Kovid Goyal
033a8a2421 String fixes 2014-06-17 18:06:43 +05:30
Kovid Goyal
25e69a4c97 ... 2014-06-17 17:37:27 +05:30
Kovid Goyal
7f0300a485 Implement extraction of user manual strings for translation 2014-06-17 14:36:21 +05:30
Kovid Goyal
3b4a561604 Ignore the translations folder entirely since it is now version controlled in a separate github project. 2014-06-17 14:35:30 +05:30
Kovid Goyal
dfa6756509 ... 2014-06-17 14:23:24 +05:30
Kovid Goyal
8dbaf101ec Prevent Content-Transfer-Enconding headers from confusing encoding detection in the diff tool 2014-06-17 13:09:53 +05:30
Kovid Goyal
cd32ca094a Remove the need for -- when calling calibre-debug --diff 2014-06-17 11:39:13 +05:30
Kovid Goyal
ba30d4d2fe Add empty book: When adding empty book records to the library, add an option to also create empty EPUB files. Useful if you intend to subsequently edit these files with the calibre editor. You can access the add empty books feature by right clicking the Add Book button. 2014-06-17 10:32:35 +05:30
Kovid Goyal
6ee6e6930e ... 2014-06-17 09:40:40 +05:30
Kovid Goyal
eb5889b92f Edit book: Remove unused CSS: Add an option to also remove unused class attributes from the HTML
Edit Book: Remove unused CSS: Handle @import rules when checking for unused CSS
2014-06-15 12:36:14 +05:30
Kovid Goyal
7396cb76d5 oops 2014-06-14 14:10:57 +05:30
Kovid Goyal
234ed4d250 Change the test db to also use the NOT NULL constraint form 2014-06-14 14:07:22 +05:30
Kovid Goyal
888bb39f3d Change NON NULL to NOT NULL in the sqlite schema 2014-06-14 11:09:02 +05:30
Kovid Goyal
a085158fce ... 2014-06-14 10:54:36 +05:30
Kovid Goyal
bf7af85907 ... 2014-06-14 10:50:52 +05:30
Kovid Goyal
3bc9e7c534 Fix #1329777 [Translation DE](https://bugs.launchpad.net/calibre/+bug/1329777) 2014-06-14 10:44:10 +05:30
Kovid Goyal
82f9182f95 Check Book: Add checks for empty HTML/XML/CSS/image files in the book. Fixes #1329971 [Private bug](https://bugs.launchpad.net/calibre/+bug/1329971) 2014-06-14 10:26:58 +05:30
Kovid Goyal
5ee7a620ea Remove unused css: Prevent failure when book has invalid items marked as stylesheets 2014-06-14 09:08:26 +05:30
Kovid Goyal
d76dd915a2 pep8 2014-06-13 17:50:50 +05:30
Kovid Goyal
504d83630d calibredb: Fix set_metadata not working for the series_index field. Fixes #1329724 [Calibredb setting of series_index does not work](https://bugs.launchpad.net/calibre/+bug/1329724) 2014-06-13 17:49:39 +05:30
Kovid Goyal
7e6691caa3 Edit Book: Check Book: Add checks for links whose fragment (the part after the #) points to a location that does not exist 2014-06-13 11:08:28 +05:30
Kovid Goyal
161bf3bcda version 1.40.0 v1.40.0 2014-06-13 07:29:41 +05:30
Kovid Goyal
8b4fe47566 ... 2014-06-12 21:27:48 +05:30
Kovid Goyal
0b7c95d3a6 Remove unnecessary use of unquote 2014-06-12 21:25:51 +05:30
Kovid Goyal
ebf380530d Edit Book: Check book: When auto-changing font name to match actual name in font file, also change the font name in shorthand font declarations 2014-06-12 21:20:02 +05:30