![]() |
#1036 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,211
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
And the error only happens with calibre preview. @chaley already fixed it. |
|
![]() |
![]() |
![]() |
#1038 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
I install the portable version of preview releases so that I can see what's coming but I don't use it 'in anger', and I would only refer to it here if I had a problem with it. BR Last edited by BetterRed; 10-28-2024 at 06:51 PM. |
||
![]() |
![]() |
![]() |
#1039 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,973
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Stored template: colours_daysbetween()
Code:
program: arguments(date, colourA, colourB, colourC); now = format_date(today(), 'yyyy-MM-dd'); if days_between(now,date) <#1 then colourA elif days_between(now,date) <=#7 then colourB elif days_between(now,date) <=#30 then colourC fi colours_daysbetween($#lastread, '#00aaff', '#69cfff', '#9bdeff') Last edited by ownedbycats; 11-19-2024 at 11:14 PM. |
![]() |
![]() |
![]() |
#1040 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,973
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
From chaley is this template which can be used to search for series with more than one book:
Quote:
|
|
![]() |
![]() |
![]() |
#1041 | |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,973
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Quote:
Last edited by ownedbycats; 12-16-2024 at 10:29 AM. |
|
![]() |
![]() |
![]() |
#1042 | |||
Enthusiast
![]() Posts: 38
Karma: 98
Join Date: May 2022
Device: Kindle Paperwhite 11th Gen (2021)
|
Hi all - so I've been using the following metadata plugboard for a while to edit book titles on my Kindle for proper sorting:
Quote:
What it currently does: Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#1043 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,054
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
This is mine
Code:
{series_index:0>5.2f|| - }{title} |
![]() |
![]() |
![]() |
#1044 | ||||
Enthusiast
![]() Posts: 38
Karma: 98
Join Date: May 2022
Device: Kindle Paperwhite 11th Gen (2021)
|
Quote:
![]() I did end up giving the following a try: Quote:
It gets me exactly what I was hoping for with leading zeroes for better title matching: Quote:
Quote:
But if anyone knows of a way to present the above titles as I've got them (without extraneous trailing zeros) - with proper sorting on Kindle - definitely let me know! Last edited by Magic815; 12-30-2024 at 12:36 PM. |
||||
![]() |
![]() |
![]() |
#1045 | ||||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
Quote:
Code:
program: if '\.' in $series_index then template('{series}{series_index:0>4.1f| #| - }{title}') else template('{series}{series_index:0>2d| #|. - }{title}') fi Your example cited above implies that this might work as well: Quote:
Code:
program: if '\.' in $series_index then template('{series}{series_index:.1f| #| - }{title}') else template('{series}{series_index:d| #|. - }{title}') fi |
||||
![]() |
![]() |
![]() |
#1046 | |
Enthusiast
![]() Posts: 38
Karma: 98
Join Date: May 2022
Device: Kindle Paperwhite 11th Gen (2021)
|
So I tried this one:
Code:
program: if '\.' in $series_index then template('{series}{series_index:0>4.1f| #| - }{title}') else template('{series}{series_index:0>2d| #|. - }{title}') fi Quote:
|
|
![]() |
![]() |
![]() |
#1047 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Stored template that returns HTML comments as plain text.
The attached exported stored template, comments_to_plain_text(), converts a comments field to plain text. This can be useful when whatever is processing the comments cannot handle HTML, for example the Generate Cover plugin. See the stored template's documenation for details.
|
![]() |
![]() |
![]() |
#1048 | |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45
Karma: 2814
Join Date: Oct 2020
Device: Kindle
|
Quote:
|
|
![]() |
![]() |
![]() |
#1049 |
Member
![]() Posts: 17
Karma: 10
Join Date: Oct 2014
Location: Schweiz [Switzerland]
Device: Pocketbook Verse Pro
|
(Translated from German using Google Translate)
I hope I'm in the right place with my question. I have two custom columns in Calibre. Both are hierarchically structured. The first column has the following labels: Lookup name: #genre. Column heading: Genre. Normally, only one (comma-separated) value appears. However, there are a few cases with more than one entry. The first/top level consists of a "sort character" such as _, §, °, ≡, etc., followed by several sublevels, which are separated by "." as usual. The contents of the second column have the following labels: Lookup name: #genre_rg. Column heading: Genre (ReadingGoal). This should now be created in a "flattened" form from the values of the first column. By "flattened," I mean the following: - The sorting level should be filtered out. - The second and third hierarchy levels should remain. - The remaining levels should be ignored. Here are some examples: _.Belletristik.Roman.Spannung.Krimi.+nl → Belletristik.Roman §.Sachbuch.Geschichte.Weltgeschichte.Menschheit → Sachbuch.Geschichte #.Zeitschrift.Geschichte.Kultur.Menschliche → Zeitschrift.Geschichte ≡.Essayistisches.Kurzgeschichten.Reiseessays → Essayistisches.Kurzgeschichten _.Belletristik.Roman.Cli-Fi, _.Belletristik.Roman.Dystopisch → Belletristik.Roman, Belletristik.Roman §.Sachbuch.Gesundheit.Lebenshilfe.Beziehung.Sexual ität, Sachbuch.Wissen.Evolution.Mensch/Tier → Sachbuch.Gesundheit, Sachbuch.Wissen |
![]() |
![]() |
![]() |
#1050 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
If #genre_rg is a "column built from other columns then you fill it in using "subitems()" function in a template to select the second and third values from a hierarchy. |
|
![]() |
![]() |
![]() |
Tags |
custom column, tag, tags |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom column i need a little help | shinken | Calibre | 3 | 09-15-2010 03:41 AM |
Using Custom Metadata in Save Template | EJvdH | Calibre | 1 | 07-02-2010 06:06 AM |
Accessories Decalgirl Kindle 2 custom skin template | srmalloy | Amazon Kindle | 6 | 04-09-2010 09:55 PM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |