Commit graph

2270 commits

Author SHA1 Message Date
Kovid Goyal
a304b67ce3
Remove WebKit from the ToC Editor 2019-09-13 09:12:16 +05:30
Kovid Goyal
2ccbe705b2
Rebuild coffeescript 2019-09-13 09:12:15 +05:30
Kovid Goyal
4634768d3f
Fix a regression that broke the per_lang_title_sort_articles tweak
There must not be blank lines in tweak definitions in default_tweaks.py
Fixes #1834329 ["articles" for sort strings do not working/save](https://bugs.launchpad.net/calibre/+bug/1834329)
2019-06-27 06:15:37 +05:30
Eli Schwartz
f75ea236e5
py3: make templite templates use python3-compatible syntax 2019-05-20 00:55:13 -04:00
Kovid Goyal
05ef1457e8
Dont store tweaks in a .py file
Use a .json file instead. As with the previosu migrations of pickle and
.py config files this causes the settings to become disjoint if an
upgrage/downgrade is done.
2019-03-26 11:25:15 +05:30
Kovid Goyal
390b0d45c1
Dont use a python file to store catalog section templates 2019-03-25 20:18:19 +05:30
Kovid Goyal
a15857ba14
E-book viewer: Switch to using modern MathJax with HTML rather than SVG output
Seems to work fine with the ancient WebKit the user and PDF output use
and allows us to have only a single mathjax bundled with calibre. Also,
the SVG backend in unmaintained, so the HTML backend is more robust
going forward.
2019-01-04 19:00:04 +05:30
Kovid Goyal
3c972def4f
Update embedded rapydscript
Fixes strings with double quotes in them not being translated on the
server.
2019-01-03 17:46:24 +05:30
Kovid Goyal
d87540c482
Rebuild coffeescript 2018-09-12 09:38:12 +05:30
Flaviu Tamas
1d15fe84c0
Use six for reraise 2018-09-10 12:11:30 +05:30
Kovid Goyal
814bfc8afc
Merge branch 'master' of https://github.com/nialldaley/calibre 2018-08-14 06:51:22 +05:30
Niall Daley
758c24f920 Add a tweak to allow skipping network check on news download.
The mechanism used for checking for available network connections
may not always be accurate, so allow it to be skipped. For instance
network manager may not be aware of all available connection and
so return a false negative.

This has been added as a tweak to allow those who know what they're
doing to use the alternate behavior, without breaking the default
check mechanism.
2018-08-13 13:07:17 +01:00
Kovid Goyal
a275acb5c0
E-book viewer: Set the column-fill property to auto
Needed for people that build calibre against newer version of
Qt WebKit.
2018-06-16 09:05:08 +05:30
Kovid Goyal
d7828644f5
Fix #1775991 [Update the Quick Start Guide in Swedish](https://bugs.launchpad.net/calibre/+bug/1775991) 2018-06-09 18:33:30 +05:30
Kovid Goyal
1cbd6ccf9b
E-book viewer: Fix very slow loading for HTML files with very many images on Linux. Fixes #1774884 [loading flow for some ebooks takes painfully long in linux](https://bugs.launchpad.net/calibre/+bug/1774884)
For some reason setting column break inside on the images was
causing a re-layout only on Linux.
2018-06-06 17:53:11 +05:30
Kovid Goyal
04ba64d0d7
Also update links in translated quick start guides 2018-06-06 07:14:42 +05:30
Kovid Goyal
8396aa623b
Fix broken links in the Quick Start Guide
Also migrate all links to https. Fixes #1775297 [Quick-Start Guide needs TLC](https://bugs.launchpad.net/calibre/+bug/1775297)
2018-06-06 06:52:40 +05:30
Kovid Goyal
d8fe18acb4
... 2018-06-01 19:32:40 +05:30
Kovid Goyal
7fb27f7fa3
... 2018-05-23 15:27:51 +05:30
Kovid Goyal
4fba18f974
PDF Output: Allow using images in the header/footer templates
Images can be loaded using <img> tags with data URIs
2018-05-23 15:23:47 +05:30
Kovid Goyal
46f19333c9
Improve formatting of help in Preferences->Tweaks
Lines are now wrapped by default and blockquotes are formatted uniformly
with four leading spaces.
2018-05-16 10:50:44 +05:30
Kovid Goyal
b744fac844
Update RapydScript to fix POT file generation for plurals 2018-04-20 10:12:40 +05:30
Kovid Goyal
d01236eff5
Update RapydScript 2018-04-18 07:50:18 +05:30
Kovid Goyal
60c8d6effe
Update RapydScript 2018-04-04 06:05:10 +05:30
Kovid Goyal
b6fb23ed68
Update RapydScript 2018-03-24 10:12:22 +05:30
Kovid Goyal
06455c33df
Update RapydScript 2018-03-13 23:13:50 +05:30
Kovid Goyal
5e4f43588e
PDF Output: When the input document contains multiple anchors with the same value, use the first anchor rather than the last. This follows browser behavior. Fixes #1752825 [Private bug](https://bugs.launchpad.net/calibre/+bug/1752825) 2018-03-02 16:50:19 +05:30
Kovid Goyal
c9f56651ba
FB2 Input: Add <div> to <blockquote> content to silence the useless epubcheck 2018-02-28 09:28:47 +05:30
Kovid Goyal
4983623691
Allow adding the Virtual library button to any toolbar/menu via Preferences->Toolbars & menus 2018-02-26 09:00:56 +05:30
Kovid Goyal
8601b46151
Conversion: Handle the deprecated type attribute on <ol> tags. Fixes #1751148 [Bad conversion <ol type="a"> from ePub to azw3](https://bugs.launchpad.net/calibre/+bug/1751148) 2018-02-23 08:29:51 +05:30
Kovid Goyal
1d5ea851d7
Update RapydScript 2018-02-13 18:23:20 +05:30
Kovid Goyal
61ab18b81a
Update RapydScript 2018-01-23 16:17:24 +05:30
Kovid Goyal
6cd33e110e
Add a tweak in Preferences->Tweaks to exclude some fields when using the Edit metadata->Copy metadata/paste actions 2017-12-18 08:00:18 +05:30
Kovid Goyal
0569c9f01e
... 2017-11-29 17:00:28 +05:30
Kovid Goyal
0b09e059c2
Set the default value of the enter tweak to do_nothing 2017-11-19 07:21:47 +05:30
Kovid Goyal
60b0f56e7b
Add a tweak to control behavior of Enter on the book list
Merge branch 'master' of https://github.com/cbhaley/calibre
2017-11-18 04:44:53 +05:30
Charles Haley
1ecaf1c5ff Add tweak to change the (new) behavior of the enter key 2017-11-17 18:15:15 +01:00
Serized
b9a08430e4 Icon size optimisation 2017-10-18 18:15:49 +02:00
Serized
8cdf671f83 Add an icon for the restart and similar books actions
The icon looks better when the action is placed in one of the main
toolbars
2017-10-18 18:11:35 +02:00
Kovid Goyal
4b40482d3b
String changes 2017-10-01 16:47:46 +05:30
Kovid Goyal
5391aeda8c
String changes 2017-09-25 21:00:53 +05:30
Kovid Goyal
fcd533a21c
Update RapydScript 2017-09-06 11:24:08 +05:30
Kovid Goyal
3e6d7c93d2
String changes 2017-07-18 13:09:12 +05:30
Kovid Goyal
b65f2ccbc0
Rename the quickview icon and make it match the other icons colors 2017-07-04 22:48:05 +05:30
Charles Haley
95db631c4a Give Quickview its own icon
Icon comes from https://www.iconfinder.com/icons/2191555/eye_look_no_hide_see_show_watch_icon#size=128
2017-07-04 10:56:30 +02:00
Kovid Goyal
ebdec9f6ae
Comments editor: Add a button to easily insert separators (i.e. <hr> tags) when editing comments 2017-07-02 11:34:16 +05:30
Kovid Goyal
ce4f774114
Viewer: Fix incorrect display of pages in paged mode for books that override the default box-sizing CSS property on the <body> element. Fixes #1700109 [css margin-left and margin-right problem](https://bugs.launchpad.net/calibre/+bug/1700109) 2017-06-27 15:28:33 +05:30
Kovid Goyal
90d18917b5
String changes 2017-06-26 16:03:10 +05:30
Kovid Goyal
0e173abfbf
String changes 2017-06-19 18:23:02 +05:30
Kovid Goyal
4ac77d0a71
String changes 2017-06-10 23:26:31 +05:30
Kovid Goyal
2e90c865ff
Forgot about the clear virtual library button on the search bar. Should also be flat 2017-06-10 21:43:01 +05:30
Kovid Goyal
621f12fc8b
Use a gear icon for advanced search and restore Saved search discoverability 2017-06-10 16:19:08 +05:30
Kovid Goyal
20d54dd7ba
Remove the Saved search box from the search bar
Replaced by a single button that can be used to add a saved search.
The box is redundant, since saved searches can be accessed from the Tag
Browser anyway.

For people that really like the Saved search box, there is a tweak to
restore it.
2017-06-08 20:46:43 +05:30
Kovid Goyal
7bf4278868
Update RapydScript 2017-06-03 11:23:49 +05:30
Kovid Goyal
a1fa400c82
Clarify what the will/wont_display tweaks actually do 2017-06-03 00:36:02 +05:30
Kovid Goyal
f732d03d75
String changes 2017-05-30 13:14:53 +05:30
Kovid Goyal
6c670b22a4
Add support for adding calibre to the homescreen on Android and iOS devices 2017-05-29 11:42:09 +05:30
Kovid Goyal
2fbaa19cd6
Add a link to the /mobile page below the loading progress bar for old/limited browsers 2017-05-28 23:47:35 +05:30
Kovid Goyal
a0a1261bc4
Add an apple-touch-icon because Apple is a special snowflake that cant use the favicon like everybody else 2017-05-28 13:25:51 +05:30
Kovid Goyal
e2da5ecd0a
Fix touch events not being recognized on Safari 2017-05-27 13:37:22 +05:30
Kovid Goyal
88000c7e8a
Add Swedish translation of Quick Start Guide
Fixes #1690526 [Translate the Quick Start Guide](https://bugs.launchpad.net/calibre/+bug/1690526)
2017-05-26 09:23:42 +05:30
Kovid Goyal
0839e9a7e9
Update RapydScript 2017-05-25 20:59:54 +05:30
Kovid Goyal
f0318871ab
Update RapydScript 2017-05-21 13:39:45 +05:30
Charles Haley
1aa59276bd
Store and access user template functions on a per-library basis. This is used when the DB evaluates composites, avoiding using the global copy.
The ability to pre-compile templates was removed because the one-true list of available functions is known only at execution time. The compiled copy depended on the global state being accurate. And in any event, I was never totally convinced that the compiled version was significantly faster than the pre-lexed version.

Includes a bug fix: the booklist must be refreshed if a user-defined function changed.
2017-05-21 13:39:37 +05:30
Kovid Goyal
f1d24fc349
... 2017-05-21 13:39:37 +05:30
Kovid Goyal
420841377c
Restore jquery.js as it is still used by the viewer 2017-05-21 13:39:12 +05:30
Kovid Goyal
165dd83b68
Remove resources for old content server 2017-05-21 13:39:11 +05:30
Kovid Goyal
374e5a2714
Remove no longer user CS tweaks 2017-05-21 13:39:10 +05:30
Kovid Goyal
650ce8aebc
Do not use the pyqtProperty technique to pass data between JS and Qt as it fails with newer versions of QtWebKit 2017-05-04 11:39:24 +05:30
Kovid Goyal
8f8dd46e81
Micro-optimization 2017-05-04 10:38:06 +05:30
Kovid Goyal
da8b7d94e0 String changes 2017-04-26 18:26:18 +05:30
Kovid Goyal
a43d44c6af String changes 2017-04-26 08:53:38 +05:30
Kovid Goyal
7f7cd84c63 String changes 2017-04-25 09:45:59 +05:30
Kovid Goyal
6615ee1305 String changes 2017-04-24 13:15:06 +05:30
Kovid Goyal
7d67de8217 String changes 2017-04-23 19:57:33 +05:30
Kovid Goyal
b67684b6b8 String changes 2017-04-23 16:50:12 +05:30
Kovid Goyal
495f5ddd45 String changes 2017-04-23 16:32:56 +05:30
Kovid Goyal
30aac83fa8 String changes 2017-04-22 20:26:40 +05:30
Kovid Goyal
84f7755a43 Metadata jacket: Change formatting of series to match that used by the book details panel. Also allow access to the raw series name and number when customizing the jacket template. 2017-04-12 12:35:49 +05:30
Kovid Goyal
17a5977e4f Use the HTML 5 appcache to make the browser e-book viewer fully offline-able 2017-04-06 19:55:51 +05:30
Kovid Goyal
00147c8e6c Port the autoreload script to RapydScript 2017-04-06 18:19:57 +05:30
Kovid Goyal
dd5a377140 Update RapydScript 2017-04-03 09:55:51 +05:30
Kovid Goyal
5bf14d6afc ... 2017-03-19 12:50:28 +05:30
Kovid Goyal
7dc9a727b9 PDF Output: Fix a regression that broke PDF Output for documents containing mathematics. Fixes #1673983 [Private bug](https://bugs.launchpad.net/calibre/+bug/1673983) 2017-03-19 12:43:56 +05:30
Kovid Goyal
9e1614169f Fix #1670156 [ebook-polish produces an Unknown CSS Property name. [10:2: -webkit-border-radius] in [jacket.xhtml]](https://bugs.launchpad.net/calibre/+bug/1670156) 2017-03-05 23:19:41 +05:30
Kovid Goyal
655372f10f E-book viewer: Use heuristics to try to detect comics encoded as fixed layout EPUBs to ensure they are displayed as intended. Fixes #1667357 [Private bug](https://bugs.launchpad.net/calibre/+bug/1667357) 2017-02-23 22:42:03 +05:30
Kovid Goyal
1beb7013f5 Also store read progress in last_read table 2017-02-23 08:25:05 +05:30
Kovid Goyal
d559ab9e01 Update RapydScript 2017-02-23 00:25:03 +05:30
Kovid Goyal
e6c53ab033 Add db table to track last read positions 2017-02-22 12:59:30 +05:30
Kovid Goyal
68c3d6322e More http -> https 2017-02-09 14:02:14 +05:30
Yuri Chornoivan
b4e9164c56 Fix minor typos 2017-02-04 22:40:08 +02:00
Kovid Goyal
97ea2edc8f E-book viewer: Fix regression in previous release that broke text layout for some books. Fixes #1652408 [Last update does not always center the pages in the reader.](https://bugs.launchpad.net/calibre/+bug/1652408) 2016-12-24 17:39:43 +05:30
Kovid Goyal
344864a807 Handle the case of document stylesheets with null cssrules (caused by cross-origin security policies) 2016-12-24 11:05:44 +05:30
Kovid Goyal
320f81c7c9 Update RapydScript 2016-12-21 10:04:57 +05:30
Kovid Goyal
2685cb6430 Fix incorrect arrows on the indent icons 2016-11-01 17:06:19 +05:30
Kovid Goyal
211b65aad4 Edit Book: Proper icon for the split file action. Fixes #1637989 [Incorrect icon in edit book and edit metadata](https://bugs.launchpad.net/calibre/+bug/1637989) 2016-10-31 18:09:26 +05:30
Kovid Goyal
b0b85cbb2b Line up the formatting icons on the baseline 2016-10-29 19:29:39 +05:30
Kovid Goyal
637c5e7b2a ... 2016-10-29 13:43:40 +05:30
Kovid Goyal
8ff83146e6 ... 2016-10-29 13:40:11 +05:30
Kovid Goyal
bb180db1d8 Refinements 2016-10-29 13:31:28 +05:30
Kovid Goyal
397d7aa863 Dedicated icon for edit book 2016-10-29 13:25:07 +05:30
Kovid Goyal
3593afdb5b Restore the old trash icon 2016-10-29 13:06:14 +05:30
Kovid Goyal
43426cd9fa A dedicated remove books icon 2016-10-29 13:01:04 +05:30
Kovid Goyal
19d5c02a4f ... 2016-10-29 12:49:28 +05:30
Kovid Goyal
903adb3387 Switch to the new icons 2016-10-29 12:44:59 +05:30
Kovid Goyal
9e4cdae834 ... 2016-10-15 08:27:50 +05:30
Kovid Goyal
9722d1e946 Rename tweaks icon to have a more appropriate name 2016-10-03 22:34:03 +05:30
Kovid Goyal
2be19e90ce Update RapydScript and replace type() by jstype() 2016-10-03 11:16:33 +05:30
Kovid Goyal
6af46e25e1 Remove unused image 2016-09-30 11:43:12 +05:30
Kovid Goyal
4b20477697 Remove unused icon 2016-09-30 10:41:17 +05:30
Kovid Goyal
5c5d24618d Update RapydScript 2016-09-28 15:43:13 +05:30
Kovid Goyal
d061a82a13 ... 2016-09-28 09:24:57 +05:30
Kovid Goyal
ec86b6287e Fix auto-reloading only working if client is on localhost 2016-09-28 08:08:41 +05:30
Kovid Goyal
f4b6f52efe Proper valign for radio buttons 2016-09-26 09:03:39 +05:30
Kovid Goyal
6f894753f3 Some more refinements to the logo
Make the ends caps ont heyellow book more like the ones in the original
logo. Adda  dfrop shadow to the bookmark.
2016-09-23 12:02:33 +05:30
Kovid Goyal
4c5c7e4c4e Add end caps to the yellow book in the logo 2016-09-19 11:15:36 +05:30
Kovid Goyal
0cd27ec52d Update RapydScript 2016-09-17 10:32:41 +05:30
Kovid Goyal
f9e0afffe2 Add a tweak to Preferences->Tweaks to control the list of servers calibre considers public email servers 2016-09-15 21:00:37 +05:30
Kovid Goyal
d28114bde1 Edit Book: A new tool to sort the rules in a CSS stylesheet. To use it add it to the toolbar for CSS editors 2016-09-07 12:46:06 +05:30
Kovid Goyal
f479aaef53 Update RapydScript 2016-09-06 11:47:34 +05:30
Kovid Goyal
a60aeaa1ba Add a tweak in Preferences->Tweaks to exclude some images types from being treated a covers when dropped onto the Book Details panel. Fixes #1620198 [{Enhancement] Tweak to control image DnD to Book Details](https://bugs.launchpad.net/calibre/+bug/1620198) 2016-09-05 14:53:34 +05:30
Kovid Goyal
baddd6c298 Start work on allowing half-stars for custom rating columns
Still have to implement support in the bulk metadata editors and the
content server.
2016-09-04 16:47:35 +05:30
Kovid Goyal
554886b958 Fix high DPI rendering of the welcome wizard 2016-09-01 08:27:53 +05:30
Kovid Goyal
c17c08f282 Change the copy to library icon to use the new calibre logo as well 2016-08-31 09:56:41 +05:30
Kovid Goyal
62118462b2 A new high resolution calibre logo
The old log was only available as a raster image at 512x512. This is
insufficient for the splash screen on high DPI monitors. So create a new
SVG logo (similar in look to the old one, but simplified).
2016-08-30 15:56:04 +05:30
Kovid Goyal
010590b94c Update RapydScript compiler 2016-08-26 05:38:58 +05:30
Kovid Goyal
a2e4d12381 Use a bigger icon for smarten punctuation 2016-08-24 19:38:36 +05:30
Kovid Goyal
f42190580c Get rid of unneccessary notify specific icon 2016-08-24 19:29:43 +05:30
Kovid Goyal
4d7683b750 Fix some icons being blurry on High DPI screens
Get Qt to use high DPI images when rendering icons. Unfortunately,
turning this on means that non-square images are not rendered properly,
so convert all icons to square images.
2016-08-24 19:15:52 +05:30
Kovid Goyal
a699cbc09a PDF Output: Add a new variable _TOP_LEVEL_SECTION_ for use in header/footer templates that resolves to the current top-most section in the Table of Contents 2016-08-08 09:52:46 +05:30
Kovid Goyal
fd60afd97e E-book viewer: Fix 0px margins not being respected when the option to override book margins is turned off. See #1608458 (ebook viewer: epub page margins bigger each chapter) 2016-08-04 05:22:04 +05:30
Kovid Goyal
57efd828ef Update RapydScript 2016-08-03 07:51:00 +05:30
Kovid Goyal
0b3125e4d8 Add an option to show the title for long text (comments type) custom columns in the book details panel. Access the option in Preferences->Add your own columns->Choose the column and click the button to edit the settings for that column. 2016-07-23 11:23:53 +05:30
Kovid Goyal
db8742a393 Book details panel: Pick the color used for links from the current system color theme 2016-07-08 11:51:56 +05:30
Kovid Goyal
041fd5e11a Use the new --cache-dir option when compiling RapydScript 2016-06-25 16:31:51 +05:30
Kovid Goyal
b13f5db607 E-book viewer: Fix incorrect page turning when multiple pages are displayed on screen for books that wrap all their content in a single 100% height <div>. Fixes #1594657 [Private bug](https://bugs.launchpad.net/calibre/+bug/1594657) 2016-06-23 09:30:40 +05:30
Kovid Goyal
ce9d5f4104 Convert more URLs to use https 2016-06-17 10:26:44 +05:30
Kovid Goyal
16870db206 Edit Book: Add support for EPUB 3 to the Table of Contents tool. Now when editing EPUB 3 files using the tool will automatically generate both the EPUB 3 navigation document and the NCX table of contents for backwards compatibility 2016-06-15 19:44:20 +05:30
Kovid Goyal
72a9cafdb5 E-book viewer: Remove workaround for bug in old versions of WebKit that could cause incorrect rendering of chapter titles in some rare circumstances. 2016-06-11 09:59:48 +05:30
Kovid Goyal
53d50a1730 ... 2016-05-02 01:03:46 +05:30
Kovid Goyal
d6624cdc33 Update RapydScript 2016-04-29 15:07:54 +05:30
Kovid Goyal
0f3c3c85ba Update RapydScript 2016-04-28 15:56:05 +05:30
Kovid Goyal
fab4901674 E-book viewer: Prevent the TAB key from causing partial scrolling in paged mode. Fixes #1571304 [page goes right when TAB is pressed](https://bugs.launchpad.net/calibre/+bug/1571304) 2016-04-28 07:21:33 +05:30
Kovid Goyal
60a531283c Update RapydScript 2016-04-25 16:39:04 +05:30
Kovid Goyal
7a50cbf7cf Update RapydScript 2016-04-23 10:10:52 +05:30
Kovid Goyal
36ea076b8b Update RapydScript 2016-04-14 11:42:18 +05:30
Kovid Goyal
b2dbb4ac01 Font subsetting: When font-variant: small-caps is used include the capital letters as well, in case either the font or the renderer do not support OpenType smcp. Fixes #1568555 [Subsets of fonts with CSS set to uppercase or small-caps variants](https://bugs.launchpad.net/calibre/+bug/1568555) 2016-04-11 16:42:49 +05:30
Kovid Goyal
d5a37ea0f5 Font subsetting: Implement support for text-transform. See #1568555 (Subsets of fonts with CSS set to uppercase or small-caps variants) 2016-04-11 05:13:42 +05:30
Kovid Goyal
6305d5c647 E-book viewer: Fix a link that has some text along with a superscript/subscript being incorrectly detected as a footnote link 2016-04-11 04:20:55 +05:30
Kovid Goyal
25b631efad Make the reset CSS styles inline 2016-04-09 09:50:49 +05:30