![]() |
#796 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2018
Device: Kindle Fire (5th generation)
|
Quote:
yeah I used to put the series in the title field, but I didn't really care for it. The titles on a lot of books are rather long and when you do that you're either not seeing part of the title or part of the series name. At least in the author field, I'm usually not looking for the author. Frankly the few times I do look for the author I usually already know the book titles by memory, such as The Dresden Files series. But what is the KC plugin? |
|
![]() |
![]() |
![]() |
#797 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,099
Karma: 12000220
Join Date: Feb 2010
Location: Serbia
Device: Kindle PW5, Kobo Libra 2, Kindle PW1
|
|
![]() |
![]() |
Advert | |
|
![]() |
#798 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Jan 2018
Device: Kindle Fire (5th generation)
|
Quote:
I don't think I really worry about the KC plugin at the moment though. I just set up my own collections on the Kindle manually. |
|
![]() |
![]() |
![]() |
#799 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2018
Device: Android - FBReader
|
![]()
I use FBReader on my Android Tablet. One of the features of FBReader I missed until recently was the ability to use hierarchical tags. I currently have a hierarchical Genre custom column in my Calibre Library. Unfortunately, FBReader uses the / (slash) to separate the hierarchical tags instead of a period.
So I needed a plugboard that not only appended the custom Genre column to tags but also added a slash between each genre. I also decided to put a period in front of each genre so that the genres would always appear at the top of every page in the FBReader tag browser. After many hours of testing ![]() {tags:||, }.{#genre:'re_group($,"([^.]+)\.","[[$]]/.")'} {tags:||, } - starts with tags column and only adds a comma if tags is not blank. . - places a period before the first genre (always Ficton or Non-ficton). {#genre: - my custom genre column. ' - changes the following function to template program mode. re_group( - regroup(column, pattern, template) - searches the column for a pattern and changes that found pattern to the template (note you can have more than one pattern and template). $, - the $ refers the column defined before the re_group() function: #genre in this case. "([^.]+)\.", - this is the pattern in parentheses it searches for any character BUT a period then the \. defines each period in the hierarchical genre column. By putting the first part in parantheses you can refer to just that part in the template. "[[$]]/.") - this is the template it puts the word found in the pattern followed by a slash then a period to go in before the next word. '} - closing single quote for template program mode and the closing of the #genre field. I originally tried to use the re() function but it only worked when I had the exact number of genres in the custom column. Unfortunately, my genre column can range from 3 to 5 genres. The re_group() function is nice because when it no longer finds the pattern it just adds the rest of the string (or in this case column) to the end. So Non-Fiction.Manual.Appliance.Kitchen becomes .Non-Fiction/.Manual/.Appliance/.Manual and is added to the end of tags in the epub. Fortunately, the strange looking genre tag does not appear in the book details, but it will be at the top of the tag browser in FBReader. |
![]() |
![]() |
![]() |
#800 | |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Mar 2010
Location: Sweden
Device: Kobo Libra 2
|
![]() Quote:
Or does it matter which type it is? |
|
![]() |
![]() |
Advert | |
|
![]() |
#801 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Mar 2018
Device: Android - FBReader
|
Quote:
I just changed my save to disk template. I was having issues with Anthologies, books with many authors. My wife likes to read romance anthologies and some of them have like 6-10 authors. The issue was that both the folder and file name had all of the authors' lastname, firstname separated by an &. Android started complaining about file location that had more than 256 characters! Took a little bit to get it right but I came up with this: {author_sort:'list_item($, 0, "&")'}/{author_sort:'list_item($, 0, "&")'} - {title} This template will only take use the first author in {author_sort} as the folder and beginning of the filename. Since my ereader software (FBReader) reads author and title from the metadata not the title I have no issue with this. Hmm, is there a way to create a Save-to-Disk template that duplicates the Calibre folder structure? I'm just curious. I like how Calibre stores the books {authors:'list_item($, 0, "&")'}/{title} ({id})/{title} - {authors:'list_item($, 0, "&")'} I'm just guessing based upon what I see in the Calibre Library Folder. I know a lot of people complain about how the ebooks are stored on the hard disk but I like it. If you have two books with the same name your guaranteed two different folders because of the Id. Sometimes I accidentally add a book to the library twice or I'm getting a better copy of book. (I've been slowly replacing a lot of old books I originally converted from PDF.) The id ensures I'll get both copies till I'm ready to delete one. As long as my ereader can read the metadata I don't really care the structure as long as it doesn't overwrite books and it's not over 256 characters long! ![]() |
|
![]() |
![]() |
![]() |
#802 | |
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() Posts: 7
Karma: 650
Join Date: Jun 2018
Device: Paperwhite (2013), Oasis (2019)
|
Quote:
It's almost exactly as I want my books to appear on my Kindle. One thing I would like though is brackets around the series number. I think the code is |[|] but I am not sure where to add it to the above template. I thought I had it, but my books end up with plugboard errors in the title when they arrive on my Kindle. Thanks for any help. Edit: Nevermind I figured it out myself. I swear I tried this already but it didn't work. I must've messed something up the first time. Code:
{series_index:'contains($, '\.', re(format_number($, '0>5.2f'), '0*$', ''), format_number($, '0>2d'))'|[|]} {title} Now my series looks like: [01] Book [02] Book [03.5] Book [03] Book How do I get it to sort it properly so 3.5 is after 3? Last edited by Pichael; 06-27-2018 at 07:22 PM. Reason: Figured it out. |
|
![]() |
![]() |
![]() |
#803 |
She/Her
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 87
Karma: 142774
Join Date: Aug 2009
Location: Perth, Australia
Device: Kindle PW5 (G001PX) PW3 PW1
|
![]()
Hi, I need some GPM template help, I'm looking for a custom column that shows icons depending on the state of the "odid" identifier.
I'd like to see no icon if the id doesn't exist. One icon (overdrive.png) if the identifier is just "overdrive" eg. odid:565155@wapldmc.overdrive.com A different icon (kunlimited.png) if the identifier is just "unlimited" eg. odid:B07D8QTWJM@ak/unlimited And both icons if it contains both eg. odid:2987334@wapldmc.overdrive.com&B01KZYE3TO@ak/unlimited ![]() |
![]() |
![]() |
![]() |
#804 | |
She/Her
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 87
Karma: 142774
Join Date: Aug 2009
Location: Perth, Australia
Device: Kindle PW5 (G001PX) PW3 PW1
|
Quote:
In case any one else wants this here is how I did it (Thanks to chaley who helped me out a couple of years ago with another column icon issue) I made two empty columns "Text, Shown in Tag Browser" called OD and KU Then in Column Icons, I these two had advance rules program: a = select(field('identifiers'),'odid'); contains(a, 'wapldmc', 'overdrive.png',''); program: a = select(field('identifiers'),'odid'); contains(a, 'unlimited', 'kunlimited.png',''); I would like to be able to sort by these columns, which I can't do as they don't have any real data in them, so I'll keep on poking at it until I understand a bit more than I do right now. Last edited by Penny_Dreadful; 07-12-2018 at 06:42 AM. |
|
![]() |
![]() |
![]() |
#805 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,342
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Start by making a "Column built from other columns" (a 'composite' column). Check the box "Show in tag browser", assuming you really want to see the column & values listed there. Set the template to Code:
program: a = select(field('identifiers'),'odid'); |
|
![]() |
![]() |
![]() |
#806 | |
She/Her
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 87
Karma: 142774
Join Date: Aug 2009
Location: Perth, Australia
Device: Kindle PW5 (G001PX) PW3 PW1
|
Quote:
|
|
![]() |
![]() |
![]() |
#807 |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
I'm trying to extract the filename (in Calibre for Windows) of a book.
Caveat, it doesn't want to accept backslash as separator? Help, please. Code:
{:'sublist(select(formats_paths(),"MOBI"),-1,0,"\\")'} |
![]() |
![]() |
![]() |
#808 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,342
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The problem is that the \" is recognized before the \\. This formulation gets rid of the \" by using a character class to change the backslashes into colons, so the problem goes away. Code:
{:'sublist(re(select(formats_paths(),"MOBI"), '[\\]', ':'), -1,0,":")'} Code:
{:'re(select(formats_paths(),"MOBI"), '.*[\\]', '')'} |
|
![]() |
![]() |
![]() |
#809 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#810 |
Connoisseur
![]() Posts: 92
Karma: 10
Join Date: Sep 2018
Device: iPad mini
|
I need a composite column that might be too complicated, but it’s nothing you can’t do manually with other columns if you compare them yourself.
Basically, I have both fan fiction and books in my library. They’re differentiated in a few ways, one of them being a column (#type: book, fic). I upload them on two different versions of Mapleread on my phone, an while I have a column (#new) that tells me if a book or fic needs to be updated. What I’d like to have is an #upload column that checks these two columns and if the file is new returns “upload book” or “upload fic” depending on the type—preferably in different colors, but that’s negligible. I don’t understand the template language very well, but nothing on the Calibre website seemed promising. Any help would be appreciated! |
![]() |
![]() |
![]() |
Tags |
custom column, tag, tags |
|
![]() |
||||
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 |