Commit Graph

38844 Commits

Author SHA1 Message Date
413Michele a8103c650e Change [/]. to .[/] 2025-07-27 13:27:18 +02:00
413Michele 2f59fa2a8b Empty line before aliases 2025-07-27 13:03:06 +02:00
413Michele ff8a8b4cb2 Add quotes to function reference 2025-07-27 12:45:43 +02:00
413Michele e5a226cda2 Remove comma for consistency 2025-07-27 12:39:53 +02:00
413Michele ab9a0d3e57 Update formatter_functions.py
Remove spurious parentheses
2025-07-27 12:22:09 +02:00
Kovid Goyal a3b113c5b8 pep8 2025-07-27 11:30:17 +05:30
Kovid Goyal 1d817fdeff string changes 2025-07-26 08:48:11 +05:30
Kovid Goyal b1df791726 Bump version for preview release 2025-07-25 08:22:39 +05:30
Charles Haley 9f195c761e Two independent changes:
1) formatter_functions.py: change a quoted string to an italic string so it is the same as in other functions.

2) ffml_processor.py: use look ahead in the parser to detect parse nodes with text that can be inlined.
2025-07-23 12:49:28 +01:00
Kovid Goyal 3b094d798c Edit book: Reports: Fix sorting by name of CSS rules 2025-07-23 10:13:07 +05:30
Charles Haley 73b8bd7ae0 1) Eliminate the space at the end of some lines such as list items.
2) Remove a spurious backslash from the FFML documentation.

NB: removing the space means that the generated rst and html are slightly different from what they were before the change. The changes are white space and don't appear to change what one sees in the interpreted html and rst.

The html and rst output remains identical with original input or rst-formatted input.
2025-07-22 15:34:12 +01:00
Kovid Goyal 95d788d9fa Add the two remaining ffml strings to be translated 2025-07-22 19:20:00 +05:30
Kovid Goyal bca0b9526b Merge branch 'master' of https://github.com/cbhaley/calibre 2025-07-22 18:56:52 +05:30
Kovid Goyal 29c309d23a Restore formatter function help texts to Transifex
We now use the form processed for easy translation. Fixes #2117352 [Translatable raw strings cause spurious newlines on Transifex](https://bugs.launchpad.net/calibre/+bug/2117352)
2025-07-22 18:53:27 +05:30
Charles Haley 91b1b8445c Two small optimizations in the FFML transifex processor. It is possible that using the ternary expressions will be faster, and it looks better. 2025-07-22 12:36:54 +01:00
Charles Haley ab9ba6a3af Move the FFML general documentation to formatter_functions() so it can be processed before sending it to transifex. 2025-07-22 12:26:07 +01:00
Charles Haley 1aaedb60f4 Show FFML-processed text in the documentation widget instead of the markup. 2025-07-22 12:24:58 +01:00
Kovid Goyal 4e66d2fff6 ... 2025-07-22 16:16:49 +05:30
Kovid Goyal e38f7f2346 Delay load various bits of the builtin formatter functions
This reduces import time of the module from 21ms to 1.5ms as measured
using python -X importtime

Note that translations are currently broken pending adding support for
ffml_translate() to the code generating the POT file.
2025-07-22 16:09:52 +05:30
Kovid Goyal 5c608d42a7 pep8 2025-07-22 15:33:50 +05:30
Kovid Goyal 917079781d Merge branch 'master' of https://github.com/cbhaley/calibre 2025-07-22 15:27:45 +05:30
Charles Haley efae3e8382 String change. 2025-07-21 19:38:08 +01:00
Charles Haley 665221c4cd Fix escape sequence problem 2025-07-21 19:32:03 +01:00
Charles Haley 8013777a0f Add "document_to_transifex()" and "tree_to_transifex()" methods. 2025-07-21 19:16:34 +01:00
Charles Haley 66f101c8b4 Fix two syntax errors in the FFML documentation. 2025-07-21 19:15:26 +01:00
Kovid Goyal f25ef1ed2a When importing exported calibre data ignore "Appledouble" files created by macOS if the user copies the exported data onto a non-native filesystem using macOS tools 2025-07-21 19:33:36 +05:30
413Michele 816acd8e15 tag_list_editor.ui - Fix double space 2025-07-21 11:46:37 +02:00
Kovid Goyal d428b95fc1 Fix #2117336 [Another page-list in EPUB 3 nav can be broken by conversion bug](https://bugs.launchpad.net/calibre/+bug/2117336) 2025-07-20 19:57:50 +05:30
Kovid Goyal a8079709a4 listdir must return full paths 2025-07-20 13:35:51 +05:30
Kovid Goyal 1845c11990 Fix attempt to add directories whose names end with a known ebook extension
These will fail anyway, so dont return them when iterating a folder to
scan for books.
2025-07-20 13:25:47 +05:30
Kovid Goyal 1f0403dfd3 EPUB3 Output: Do not split the nav HTML file in the input document, if any. Prevents duplication of nav and broken links in output nav. Fixes #2117255 [Page-list in EPUB 3 nav can be broken by conversion](https://bugs.launchpad.net/calibre/+bug/2117255) 2025-07-18 20:18:53 +05:30
Kovid Goyal 34b6f7e9bd ... 2025-07-18 11:27:07 +05:30
Kovid Goyal 813db96cd3 Fix failing test comparing date searching with old and new dbs
Ensure date comparison is done in the same timezone. This change only
affects legacy code path that is not actually used anywhere other than
for tests.
2025-07-18 11:22:25 +05:30
Kovid Goyal ff1df09c4a temporarily disable test pending investigation for why its failing onmy new machine 2025-07-18 08:15:47 +05:30
Kovid Goyal d81aae4b71 version 8.7.0 2025-07-18 07:57:21 +05:30
Charles Haley 54b4076778 Detect templates that return a constant string in save to disk/send to device. 2025-07-17 18:53:13 +01:00
Kovid Goyal 6d3af52614 MTP driver: Use APNX config values from the Kindle plugin
This means APNX settings will be shared across all Kindle devices in one
place. They will apply the same to both USBMS and MTP based Kindles.
2025-07-17 13:53:51 +05:30
Kovid Goyal aa2aef48f8 When finding similar books by author ignore "et al." suffix on author names. Fixes #2116804 [[Enhancement] Books by same author should ignore "et al."](https://bugs.launchpad.net/calibre/+bug/2116804) 2025-07-17 11:16:29 +05:30
Kovid Goyal 1ddbaa2bd8 Kobo driver: Fix a regression that caused ancient, pre-Touch kobo devices to no longer work with calibre. Fixes #2117113 [Calibre can't communicate with kobo](https://bugs.launchpad.net/calibre/+bug/2117113) 2025-07-17 10:43:23 +05:30
Kovid Goyal 1ce22c9aea MTP driver: Workaround for LibMTP no longer returning device serial numbers on some systems
Fixes #2810 (MTP Kindle Serial not detected)
2025-07-16 21:57:09 +05:30
Kovid Goyal b67e54744a string changes 2025-07-16 14:45:17 +05:30
un-pogaz 730ac72ee8 pep8: fix bare except
ruff 'E722'
2025-07-16 08:55:16 +02:00
Kovid Goyal 0cac76f515 Cleanup previous PR 2025-07-16 05:37:16 +05:30
Daniel Pecos Martinez 2c6084700a Fix for APNX file name 2025-07-15 22:28:12 +02:00
Daniel Pecos Martinez b1f84b9b31 UI to configure APNX settings 2025-07-15 22:28:03 +02:00
Daniel Pecos Martinez 84a3f8818d Feeback from forum applied 2025-07-15 19:33:27 +02:00
Daniel Pecos Martinez 7d2afdcec2 Use tempfile API to create local APNX file 2025-07-15 07:54:02 +02:00
Daniel Pecos Martinez 6d5c681a86 Options for APNX generation in MTP devices - No UI 2025-07-14 23:33:04 +02:00
Daniel Pecos Martinez 35f701fb9f Only upload APNX for Kindle devices 2025-07-14 23:01:19 +02:00
Daniel Pecos Martinez 8a2b027e39 APNX generation for MTP devices 2025-07-14 22:46:50 +02:00