51053 Commits

Author SHA1 Message Date
Kovid Goyal
80092ec338
string changes 2024-11-13 08:24:45 +05:30
Charles Haley
fb1657d54d Improvements to the switch function documentation 2024-11-12 23:42:37 +00:00
Charles Haley
38b9f15897 Changes to TranslatedStringWithRaw to support the documentation editor I am writing. 2024-11-12 23:35:13 +00:00
Charles Haley
266be27bc3 Undo changes to the switch function. The new documentation left out the first parameter, in effect documenting the usage in single function mode. 2024-11-12 18:30:17 +00:00
Kovid Goyal
078e2a2654
Various fixes to template formatter function help strings as pointed out by translators 2024-11-12 21:14:18 +05:30
Kovid Goyal
ee3a9492a1
Discard trailing () of ref automatically 2024-11-12 20:44:46 +05:30
Kovid Goyal
60d0f43a62
Fix incorrect ref syntax in one place 2024-11-12 20:42:03 +05:30
Kovid Goyal
1ee299ee2a
Merge branch 'master' of https://github.com/cbhaley/calibre 2024-11-12 20:41:59 +05:30
Kovid Goyal
bcfdfc1e1d
And yet more crap with pykakasi 2024-11-12 20:38:57 +05:30
Kovid Goyal
04d5728ef9
More work on de-vendoring pykakasi 2024-11-12 19:52:31 +05:30
Charles Haley
da9332a535 Start using :ref: links.
Note: I will look at generating HTML links once I see what the anchors look like in the new generated template_ref document. Today they look like
https://manual.calibre-ebook.com/generated/en/template_ref.html#add-x-y
I'm hoping that in the new system they will look something like
https://manual.calibre-ebook.com/generated/en/template_ref.html#ff_add
adding the ff_ and removing the parameters.
2024-11-12 12:07:31 +00:00
Charles Haley
38587e0b0a Add :ref: links. Also reorder code to be closer to alphabetical order.
This commit assumes your answer to my last email (about :ref:) is "yes". If it isn't then reject the commit.
2024-11-12 11:25:46 +00:00
Kovid Goyal
ec8c06caa9
Fix a regression that caused incorrect English transliteration of Japanese text even when the UI language is set to Japanese. Fixes #2087850 [[Enhancement] PLease use kakasi for Japanese](https://bugs.launchpad.net/calibre/+bug/2087850)
Devendor pykakasi. Upstream one seems to be in working order so use it.
2024-11-12 15:13:58 +05:30
Kovid Goyal
7a3571cf56
Use the new indent parameter instead of indenting manually 2024-11-12 09:57:55 +05:30
Kovid Goyal
77d4d2a370
Merge branch 'master' of https://github.com/cbhaley/calibre 2024-11-12 09:53:21 +05:30
Charles Haley
b638823ac0 Now using your suggestion of overriding "_()" 2024-11-11 16:17:10 +00:00
Charles Haley
279c56a61b Various changes:
- Added the "Show in original English" checkbox using the raw_doc method I described in my email.
- Changes to use "raw_doc" in formatter_functions.
- Corrections and improvements to documentation for several functions.
2024-11-11 15:06:29 +00:00
Charles Haley
12c4a7b97f Minor fix to prefixes in ffml_processor. 2024-11-11 12:29:54 +00:00
Charles Haley
bf488a43a8 Several changes:
- As requested, document_to_rst() now takes an indent. It also takes a prefix in case the RST is a list item.
- Fixes to escaping when generating HTML.
- Change the documentation in formatter_functions.py to use 'r' strings, as discussed.
- Fixes to the new DocViewer class.
- Show stored templates and user template functions in DocViewer.

This commit contains un_pogaz's changes (I think).
2024-11-11 12:26:17 +00:00
Kovid Goyal
7ecc30663f
Use QTextBrowser for browsing template function documentation 2024-11-11 11:40:57 +05:30
Kovid Goyal
6b91f666e4
pep8 2024-11-11 11:14:39 +05:30
Kovid Goyal
ec445d6c32
Implement indentation for :ffdoc: 2024-11-11 11:12:50 +05:30
Kovid Goyal
c55e66a40a
Check how :ffdoc: works for more complex functions
We need to add a parameter to set output indentation otherwise
sub lists and code blocks break the outer list.
2024-11-11 10:48:24 +05:30
Kovid Goyal
6458b10f4b
Add a new RST role :ffdoc: to insert the generated RST markup for a formatter function
Needs testing to ensure that it works when called in contexts likea
bulleted list, not sure how well the generated markup works when place
after a bullet.
2024-11-11 10:29:39 +05:30
Kovid Goyal
8c2fadc33e
string changes 2024-11-11 10:08:14 +05:30
Kovid Goyal
617b7f146d
... 2024-11-11 09:44:49 +05:30
Kovid Goyal
96b521a1ff
Port the generation of template language function reference to new code
Note that in other documentation, the function reference can be linked
to using

:ref:`ff_function_name`  for example, :ref:`ff_add`
2024-11-11 09:38:14 +05:30
Kovid Goyal
3687ad4baf
Fix some invalid escapes in formatter_functions doc strings 2024-11-11 09:04:44 +05:30
Kovid Goyal
47886804ae
Merge branch 'master' of https://github.com/cbhaley/calibre 2024-11-11 08:51:10 +05:30
Kovid Goyal
d805dd8f8a
Merge branch 'patch-1' of https://github.com/JosemyDuarte/calibre 2024-11-11 08:42:54 +05:30
Josemy Duarte
b980f77bfc
Remove space on substack replacement
Space is causing an invalid URL
2024-11-10 19:11:00 +01:00
Charles Haley
11fc40dd0d Formatter Function Markup Language first pass. Contains:
- The FFML processor in the new file utils.ffml_processor.py.
- converted documentation in formatter_functions.py.
- changes to template_processor.py to use FFML. Includes a new "show documentation" dialog.

What remains:
- Deal with translations somehow. Proposal in email.
- Changes to the manual to use FFML output when generating function documentation.
- Changes to template_lang.rst.
2024-11-10 16:04:49 +00:00
Kovid Goyal
723eabfc53
string changes 2024-11-10 08:34:37 +05:30
Kovid Goyal
8eb9e37d99
Cleanup previous PR 2024-11-09 08:01:09 +05:30
Kovid Goyal
00d4214857
Merge branch 'MasterPlexus-png-news-compression' of https://github.com/MasterPlexus/calibre 2024-11-09 07:59:51 +05:30
MasterPlexus
cef6ee1a93
add png in simple.py for copress_news_images
by adding png for copression the size of some magazines will be decreased up to 10 times. worked for me well, so I wanted to provide the setting for all.
2024-11-08 21:37:00 +01:00
Kovid Goyal
1246c326ed
DOCX Input: Fix ToC nesting not working if the styles for the ToC levels dont use integer margins 2024-11-08 22:00:31 +05:30
Kovid Goyal
7fee97c627
Windows: Enable popup OS notifications even when system tray icon is disabled
Dont go through Qt's horrible system tray based notifier which in turn
goes through the legacy Shell_NotifyIcon API. Instead talk
to the underlying windows toast notification API directly.
2024-11-08 21:28:37 +05:30
Kovid Goyal
16c9343bcf
Fix #2087520 [[Enhancement] Make the output settings look nice](https://bugs.launchpad.net/calibre/+bug/2087520) 2024-11-08 13:25:09 +05:30
Kovid Goyal
f207de192f
Add AppUserModelID to start menu shortcuts 2024-11-08 11:45:52 +05:30
Kovid Goyal
c27e613837
version 7.21.0 v7.21.0 2024-11-08 07:14:01 +05:30
Kovid Goyal
09888e4bc3
... 2024-11-07 20:27:55 +05:30
Kovid Goyal
5d6911a503
Merge branch 'master' of https://github.com/MisterAP/calibre 2024-11-07 20:26:34 +05:30
MisterAP
26ae90f0f5 Divide-by-zero fix and header check fix 2024-11-07 14:50:37 +00:00
Kovid Goyal
7c1b4e9c0b
Restore Open Library as the server seems to be functional again 2024-11-07 19:26:42 +05:30
Kovid Goyal
b80bf35b0e
Apply category sorting changes to content server as well 2024-11-07 08:34:58 +05:30
Kovid Goyal
8de42ec199
... 2024-11-07 08:10:53 +05:30
Kovid Goyal
867adb3ce4
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #2086801 [[Enhancement] Add note about non-English dates to format_date() documentation](https://bugs.launchpad.net/calibre/+bug/2086801)
2024-11-07 07:58:25 +05:30
Charles Haley
7998e6993d Enhancement #2086801: Add note about non-English dates to format_date() documentation. 2024-11-06 20:15:55 +00:00
Kovid Goyal
73dc14719e
Merge branch 'master' of https://github.com/cbhaley/calibre
Fixes #2086748 [[Enhancement] Efficient Column Positioning in Column Manager](https://bugs.launchpad.net/calibre/+bug/2086748)
2024-11-06 22:08:38 +05:30