1138 Commits

Author SHA1 Message Date
Charles Haley
13732b15d8 Rewrite much of the template language manual document.
The commit on 27 Feb isn't good. The manual page should be regenerated from this commit.
2021-02-28 16:13:55 +00:00
Kovid Goyal
758df1e758
Move generation of dynamic rst files to setup() rather than an event callback 2021-02-28 20:15:20 +05:30
Kovid Goyal
9457085fc8
Remove no longer needed monkeypatch 2021-02-28 19:59:49 +05:30
Kovid Goyal
86b26119f0
Get rid of the workaround for cyrillic in the manual latex builder by not using a cyrillic example 2021-02-28 19:45:58 +05:30
Kovid Goyal
d003a61ebe
Sadly the better fix did not work
so go back to mokeypatching
2021-02-28 19:13:11 +05:30
Kovid Goyal
406838dc7d
Better fix for sphinx latex breakage 2021-02-28 13:26:01 +05:30
Kovid Goyal
a0564ea47d
Fix sphinx warnings 2021-02-28 13:13:25 +05:30
Kovid Goyal
0be56041fb
Workaround for bug in newer versions of sphinx
See https://github.com/sphinx-doc/sphinx/issues/8936
2021-02-28 13:03:10 +05:30
Charles Haley
ac9c9d6ab5 Various improvements:
1) Changes to the template program language discussed in https://www.mobileread.com/forums/showthread.php?t=337668
2) General improvement of the template documentation, including documentation of the above changes. I looked at the changes using a markdown interpreter, but there might be problems exposed by generation of the web page.
3) Focus the program text box when opening the template dialog
4) Small changes to non-built-in template functions to improve performance
2021-02-27 14:20:10 +00:00
Charles Haley
7a18631b8f Improvement to template function raw_field: an optional second argument providing the default if the field is None. 2021-02-25 16:04:56 +00:00
Kovid Goyal
36ffc2b3cf
String changes 2021-02-25 12:20:57 +05:30
Kovid Goyal
d5cb3aa7c0
String changes 2021-02-25 07:28:16 +05:30
Charles Haley
a3c8793c6a Template language improvements:
1) added the infix compare operator 'in'. Usage: pattern in expression.
2) added the template function list_count_matching()
3) documentation for the above.
2021-02-23 10:14:20 +00:00
Charles Haley
a12165e01b Template language changes:
1) add the possibility to specify a separator in a for statement.
2) add the template function list_remove_duplicates()
2021-02-22 11:43:19 +00:00
Charles Haley
8fbb8df75c Add a new template function set_globals() that sets key:value pairs in the globals dict. Also slightly improve template language documentation. 2021-02-18 16:03:45 +00:00
Charles Haley
1af28bd3ba Add template function 'is_marked()' 2021-02-17 14:43:42 +00:00
Kovid Goyal
0de82426ff
Sphinx: Replace use of deprecated css_files 2021-02-15 04:37:09 +05:30
Charles Haley
fb2f184958 Two changes:
1) Add the alias "list_contains" to the "in_list" function so that naming is more consistent.
2) Add composite categories to valid grouped searches.
2021-02-13 13:08:27 +00:00
Kovid Goyal
a5308d1dc7
... 2021-02-07 12:24:05 +05:30
Kovid Goyal
7b52611fdd
Edit book: Allow Ctrl-clicking on class names to jump to the first style rule that matches the tag and class 2021-02-07 12:22:19 +05:30
Kovid Goyal
a18806490c
... 2021-02-05 12:28:55 +05:30
Kovid Goyal
ccc0b2bf05
Update email FAQ with info about Amazon's latest shenanigans 2021-02-05 12:27:47 +05:30
Kovid Goyal
6ee1c3d10c
... 2021-01-26 18:21:57 +05:30
Kovid Goyal
da53430e77
E-book viewer: Redesign the reference mode to also work on touch screens without a mouse. Now in reference mode paragraph numbers are displayed for all paragraphs 2021-01-26 09:46:18 +05:30
Kovid Goyal
905abd3680
Add instructions for additional voice installation on Windows 2021-01-20 08:18:08 +05:30
Kovid Goyal
54d57c6748
Add support for the CB7 comic file file format
Fixes #1912212 [Add support for CB7 and CBA file format](https://bugs.launchpad.net/calibre/+bug/1912212)
2021-01-19 13:33:45 +05:30
Charles Haley
cfbff3d98f New template function: field_exists() 2021-01-17 13:56:55 +00:00
Charles Haley
b7c4fcd711 Enhancement: allow template functions add() and multiply() to take a variable number of arguments. 2021-01-17 13:56:28 +00:00
Kovid Goyal
9546557ec9
String changes 2021-01-17 05:46:35 +05:30
Kovid Goyal
b2bd85b507
string changes 2021-01-16 19:17:02 +05:30
Kovid Goyal
02af069255
Add a FAQ entry about viewer not working 2021-01-16 07:42:05 +05:30
Kovid Goyal
312754acb6
String changes 2021-01-10 07:39:50 +05:30
Kovid Goyal
d457997830
String changes 2021-01-06 14:08:10 +05:30
Kovid Goyal
a30d4be28d
Merge branch 'patch-1' of https://github.com/madphysicist/calibre 2021-01-06 08:34:05 +05:30
Joseph Fox-Rabinovitz
b62dee010a
wrapping 2021-01-05 16:20:19 -06:00
Joseph Fox-Rabinovitz
487a598d29
Fixed resource leak in HelloWorld plugin? 2021-01-05 16:02:52 -06:00
Joseph Fox-Rabinovitz
8da7110fc8
Punctuation, wrapping 2021-01-05 15:55:18 -06:00
Joseph Fox-Rabinovitz
0b4c130126
More wrapping and punctuation
Why is the long XPATH expression being wrapped in the output?
2021-01-05 13:26:06 -06:00
Joseph Fox-Rabinovitz
6912bec1c9
Line wrap and typo 2021-01-05 12:26:36 -06:00
Joseph Fox-Rabinovitz
937412a306
Typo in manual 2021-01-05 11:59:12 -06:00
Kovid Goyal
2528bd58af
String changes 2021-01-05 10:02:13 +05:30
Charles Haley
746ae8e37a Add new template function list_split. Fix python 3 imcompatibility getting source code from the built-in functions class. 2021-01-03 11:13:59 +00:00
Kovid Goyal
f51d169f55
... 2020-12-28 08:53:23 +05:30
Kovid Goyal
f80e1853ac
Remove obsolete entry in FAQ 2020-12-26 09:49:53 +05:30
Kovid Goyal
1e123e35cf
manual formatting 2020-12-24 09:58:26 +05:30
Charles Haley
da52fa1655 Template language: add function connected_device_uuid 2020-12-22 14:44:17 +00:00
Kovid Goyal
4daf63fca1
String changes 2020-12-22 12:47:40 +05:30
Charles Haley
dff123fc0f Template/formatter enhancements:
1) Added a 'for' statement
2) Added the ability for a developer to pass a dict of extra information to a template.
2020-12-19 09:46:41 +00:00
Kovid Goyal
7c5f4bd48b
String changes 2020-12-18 17:31:46 +05:30
Kovid Goyal
08cafd1de0
String changes 2020-12-17 22:35:04 +05:30