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
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
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
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
8da7110fc8
Punctuation, wrapping
2021-01-05 15:55:18 -06:00
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
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
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
Charles Haley
38055729c8
Fix bug 1900316: Rewrite example in documentation for translations.
2020-10-18 12:27:31 +01:00
Kovid Goyal
8849f5adec
String changes
2020-10-17 13:45:23 +05:30
Charles Haley
794ed146af
Minor cleanups of the template documentation
2020-10-16 08:42:01 +01:00
Kovid Goyal
ebf3937628
...
2020-10-16 07:34:00 +05:30
Charles Haley
3b096ca3ff
Updates and cleanups of the template documentation.
...
I don't know if I got the formatting right. In particular I moved the function reference to the end, which I hope doesn't break anything.
2020-10-15 18:55:04 +01:00
Charles Haley
47de6e084d
Enhancement: add 'elif' to the formatter if expression
2020-10-12 12:08:23 +01:00
Kovid Goyal
216c5a3629
String changes
2020-10-08 09:58:26 +05:30
Kovid Goyal
2395bc85a8
String changes
2020-10-03 18:36:12 +05:30
Kovid Goyal
bc34075d05
String changes
2020-10-03 15:26:32 +05:30
Kovid Goyal
2d9ac6aa54
Basic cleanups for the python template function merge
2020-10-03 09:18:18 +05:30
Charles Haley
1c56c41b80
Fix the manual
2020-10-02 08:11:51 +01:00
Charles Haley
f839ac96e3
Stored templates
2020-10-01 09:41:18 +01:00
Charles Haley
40a77e05d8
...
2020-09-28 14:19:09 +01:00
Charles Haley
d4798a11e5
Update the manual
2020-09-28 13:59:24 +01:00
Charles Haley
951f1199c8
Add a new formatter function 'connected_device_name'
2020-09-21 22:25:13 +01:00
Kovid Goyal
d0d0bdd998
Fix warnings from sphinx and gettext
2020-09-20 09:15:50 +05:30
Charles Haley
fb9a388c08
Unreported bug: the V4 template language treated None values as zero. These changes make the new processor do the same thing. Also update the documentation,
2020-09-14 00:59:38 +01:00
Charles Haley
7086be4fe2
Update template documentation
2020-09-06 13:07:15 +01:00
Charles Haley
6e4dada20c
Enhancement: add some math functions to the template language: ceiling, floor, fractional_part, mod, and round.
2020-07-31 12:57:13 +01:00
Charles Haley
7cd342f3a2
Enhancement 1885943: Ignore articles when sorting custom columns. Implemented by a new formatter function, swap_around_articles(), that applies title_sort to each item in the list.
2020-07-02 11:48:59 +01:00
Charles Haley
6aa5a51e3b
Fix some incorrectly indented sections in the manual by changing some tabs to spaces.
2020-06-25 09:44:26 +01:00
Kovid Goyal
9ba6848530
Remove version spec from python docs links
2020-06-21 14:07:42 +05:30
Charles Haley
222599e870
Add a new template function "rating_to_stars"
2020-06-20 17:12:26 +01:00
Kovid Goyal
19f5c9080b
String changes
2020-06-13 22:50:32 +05:30
Charles Haley
2fc75178d8
Fix for bug #1873106 : when bools are not tristate, undefined values don't show emblems/icons as if the value is false. The user must edit and save the rule to see the fix. Changing the tristate preference may require editing the rule to ensure that behavior is correct.
...
Add a new formatter function to test yes/no columns against a set of conditions, improving the performance of rules containing such conditions.
2020-04-18 18:42:02 +01:00
Kovid Goyal
0c923d9a4f
Fix some escaping issues in the template sections of the manual
2018-09-16 18:10:15 +05:30
Kovid Goyal
557b26f5da
...
2018-01-29 10:09:56 +05:30
Kasijjuf
9841332214
Fix redundant initialism
2017-07-12 19:44:35 -05:00
Charles Haley
bfdf9207cb
1) Make the formatter function in_list work like str_in_list, taking a variable number of arguments
...
2) Documentation improvements
2017-07-10 09:41:52 +02:00
Charles Haley
7aa8e250b6
Improvement to str_in_list template function. Allow a variable number of tests, drastically improving performance in cases where searching a list must return different values depending on what is found.
2017-07-09 21:02:52 +02:00
Charles Haley
e644758833
Update documentation for format_number
2017-05-21 13:39:39 +05:30
Kovid Goyal
a43d44c6af
String changes
2017-04-26 08:53:38 +05:30
Kovid Goyal
1c5eeeae83
String changes
2017-04-26 08:16:39 +05:30
Kovid Goyal
6615ee1305
String changes
2017-04-24 13:15:06 +05:30
Kovid Goyal
cac4365022
String changes
2017-04-23 21:44:20 +05:30