09-08-2012, 02:32 AM | #1 |
Enthusiast
Posts: 40
Karma: 98
Join Date: Jan 2011
Device: Kindle 3G
|
Custom column to display number of chapters?
So, I've been downloading a lot of fanfiction lately and first I had an annoying problem:
If I set fanfictiondownloader to download the fic as a mobi file, I wouldn't get the chapter marks on my kindle. So I found out I need to download the fics as epub files, and then convert them to mobi. An extra step, but it seems to work fine. Now, I want to know how to add a custom column that tells me how many chapters a story has. I downloaded the "Count Pages" plugin that tells me the word count, so chapter count is the only thing missing. (Well, that and auto-downloading the appropriate cover, but that's another topic) Does anyone know how to create a column that will show how many chapters a book has? |
09-08-2012, 05:06 AM | #2 | |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
A TOC item? A new EPUB section file? The only obvious one is when a Heading (H tag) includes the word Chapter and not all books use a Heading Tag, just some other styled text the we recognize visually as a chapter. Do you count Prolog, Epilog as a Chapter? How do you NOT count scene change headings? See the problems to be solved |
|
Advert | |
|
09-08-2012, 09:49 AM | #3 | |
Enthusiast
Posts: 40
Karma: 98
Join Date: Jan 2011
Device: Kindle 3G
|
Quote:
No, I would simply count a chapter as a TOC item. This is just fanfiction. I mainly just want a way to separate oneshots from serials. |
|
09-08-2012, 12:01 PM | #4 | |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
A Tedious usage would be: Set the threshold to 2 (the book should have at least 1 entry) (Loop) run the check when the answer appears, filter on Not Chapter count (column), in otherwords: blank select all: Bulk Metadata edit; Set the column value to your threshold setting value. Save Set the Theshold + 1 (repeat loop) I did say tedious |
|
09-08-2012, 01:11 PM | #5 |
Enthusiast
Posts: 40
Karma: 98
Join Date: Jan 2011
Device: Kindle 3G
|
That might be what I'm looking for, actually.
Now, could you explain that process to me as if I'm a complete idiot? I have the Quality Check plugin and I found the option to "Check ePub structure > Check NCX TOC with < 3 entries" I am lost though. How do I change the threshold? What's a (loop)? And then every other step happened and I feel stupid. :O |
Advert | |
|
09-08-2012, 01:22 PM | #6 |
Calibre Plugins Developer
Posts: 4,636
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@crackshot91 - what theducks suggested was made in jest, no-one in their right mind would follow those steps, hence all the smilies around it.
Your best bet is to just post on the FanFictionDownloader plugin thread and request an addition to populate a custom column with the chapter count. Personally I think it is a meaningless statistic given that you can't actually get the count of genuine chapters, so I won't be adding it to any of my plugins like Count Pages etc. But JimmXinu might be more willing since it might be a little more meaningful if limited to just FanFiction and he has mentioned it in the past. |
09-08-2012, 02:22 PM | #7 |
Enthusiast
Posts: 40
Karma: 98
Join Date: Jan 2011
Device: Kindle 3G
|
Thanks, kiwidude. I did try to create a custom integer column for chapters, and when I went into the custom column tab of FanFictionDownloader's config, I saw this:
Unfortunately, the fanfictiondownloader doesn't seem to download the metadata for # of chapters. Thanks for the help! |
09-08-2012, 03:29 PM | #8 | |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Many computer programs have For (start value)-Next (until end value) (or While) loops. in this case, that would be what was needed, But since Calibre has no Macro...You are the Macro Pick Kiwidudes idea |
|
09-08-2012, 03:31 PM | #9 | |
Well trained by Cats
Posts: 29,779
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
|
|
09-08-2012, 04:08 PM | #10 |
Enthusiast
Posts: 40
Karma: 98
Join Date: Jan 2011
Device: Kindle 3G
|
|
09-08-2012, 04:56 PM | #11 |
Enthusiast
Posts: 40
Karma: 98
Join Date: Jan 2011
Device: Kindle 3G
|
I fixed it! Thanks for the assistance, guys. All I had to do was set FFDL to "update the metadata only"
I'm silly... |
Tags |
chapter count, custom column |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
custom date column from two state column | Dopedangel | Library Management | 7 | 01-03-2012 08:20 AM |
Adding 'Series Number' column. | polkij | Library Management | 2 | 10-08-2011 06:40 AM |
User Column with number of formats | lbik | Library Management | 6 | 06-18-2011 07:55 AM |
Can custom book data be displayed in a custom column? | kiwidude | Development | 9 | 03-02-2011 05:35 AM |
Change in number of chapters | James_Wilde | Calibre | 2 | 09-09-2010 11:24 AM |