53 Commits

Author SHA1 Message Date
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
Kovid Goyal
6250435cd9 String changes 2017-04-23 20:24:31 +05:30
Kovid Goyal
30aac83fa8 String changes 2017-04-22 20:26:40 +05:30
Kovid Goyal
40684801db String changes 2017-04-22 11:02:28 +05:30
Charles Haley
4ef1c42505 Remove a stray single quote. 2016-09-12 20:38:04 +02:00
Charles Haley
5f5b2d9b78 Fix example for using composite columns and lookup to switch paths in a save template by adding the # to the lookup name 2016-09-12 20:32:41 +02:00
Kovid Goyal
83548b11b4 ... 2016-04-29 20:06:16 +05:30
Kovid Goyal
d363628887 ... 2016-04-17 22:15:24 +05:30
Kovid Goyal
604b6b36c7 ... 2016-04-17 21:51:58 +05:30
Kovid Goyal
d41e6ca3b1 ... 2016-04-17 21:51:00 +05:30
Kovid Goyal
c73eb12895 ... 2016-04-17 18:51:53 +05:30
Kovid Goyal
d38c80852d ... 2016-04-17 18:30:44 +05:30
Kovid Goyal
6a5de3a8fe ... 2016-04-17 18:03:09 +05:30
Kovid Goyal
78bb3ce28c ... 2016-04-15 16:59:51 +05:30
Kovid Goyal
c1bdcf424d Fix strings in manual using |lang| not being translated 2016-03-03 20:19:12 +05:30
Kovid Goyal
12430b21e0 ... 2015-10-23 20:03:50 +05:30
Kovid Goyal
421136e0d0 Missed one place in template_lang.rst 2015-10-20 11:17:21 +05:30
Kovid Goyal
b9d69344f3 Fix #1507375 [Bad format in documentation](https://bugs.launchpad.net/calibre/+bug/1507375) 2015-10-20 08:39:47 +05:30
Kovid Goyal
1654895ee0 Fix #1489956 [Typo on string](https://bugs.launchpad.net/calibre/+bug/1489956) 2015-08-28 22:04:19 +05:30
Eli Schwartz
95917bfcd1 misc. typos, fix accidental nesting in template docs. 2015-08-28 07:50:51 +05:30
Kovid Goyal
d3a588e0f1 Fix various redirected/broken external links in the User Manual 2014-11-10 22:28:18 +05:30
Kovid Goyal
42ca1149e5 Remove use of |app| placeholder in user manual, as it causes problems with translations 2014-10-17 08:19:48 +05:30
Charles Haley
7f6c2b3319 New formatter function raw_list. Analog of raw_field but for list fields like tags. 2014-09-19 07:51:16 +02:00
Charles Haley
521c98b4ff New author_sorts() formatter function. Returns the author sort strings from the authors table for the authors in the book. 2014-09-12 16:04:52 +02:00
Kovid Goyal
33a4d42287 Do not translate generated docs in user manual
Instead use the translated text from the main calibre translations
directly.
2014-08-12 10:58:47 +05:30
Kovid Goyal
6a0f24b281 Get rid of global.rst and REMOVE_IN_PDF 2014-08-11 23:06:47 +05:30
Kovid Goyal
1f49df62fa ... 2014-08-01 18:29:42 +05:30
Charles Haley
54cd94e05e Add the separator argument to 2014-07-25 12:32:37 +02:00
Charles Haley
46581c93c6 New formatter function: author_links. 2014-07-25 11:54:52 +02:00
Eli Schwartz
4b20fbbf10 Fix Documentation for list_re, list_re_group, first_matching_cmp, transliterate.
Fixes #1339296 [Fix documentation for some formatter functions.](https://bugs.launchpad.net/calibre/+bug/1339296)
2014-07-09 08:59:46 +05:30
Charles Haley
41f8ab52f8 list_re_group template function. Clean up re_group function. Add documentation 2014-06-25 12:37:37 +02:00
Charles Haley
8f7c23816d First error in first_matching_compare documentation 2014-05-10 12:13:43 +02:00
Charles Haley
fb11aa99ac New formatter function first_matching_cmp 2014-05-05 18:13:05 +02:00
Charles Haley
ae2ebbea68 Add a "transliterate" formatter function. 2013-11-09 13:02:25 +01:00