Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 09-08-2012, 02:32 AM   #1
crackshot91
Enthusiast
crackshot91 has learned how to buy an e-book online
 
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?
crackshot91 is offline   Reply With Quote
Old 09-08-2012, 05:06 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by crackshot91 View Post
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?
What defines a 'Chapter' in any book?
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
theducks is offline   Reply With Quote
Advert
Old 09-08-2012, 09:49 AM   #3
crackshot91
Enthusiast
crackshot91 has learned how to buy an e-book online
 
Posts: 40
Karma: 98
Join Date: Jan 2011
Device: Kindle 3G
Quote:
Originally Posted by theducks View Post
What defines a 'Chapter' in any book?
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
Well, that got existential.

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.
crackshot91 is offline   Reply With Quote
Old 09-08-2012, 12:01 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by crackshot91 View Post
Well, that got existential.

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.
The quality check plugin has a section that counts (but does not show) TOC entries and reports when the title has less than the threshold that was configured.

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
theducks is offline   Reply With Quote
Old 09-08-2012, 01:11 PM   #5
crackshot91
Enthusiast
crackshot91 has learned how to buy an e-book online
 
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
crackshot91 is offline   Reply With Quote
Advert
Old 09-08-2012, 01:22 PM   #6
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
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.
kiwidude is offline   Reply With Quote
Old 09-08-2012, 02:22 PM   #7
crackshot91
Enthusiast
crackshot91 has learned how to buy an e-book online
 
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!
crackshot91 is offline   Reply With Quote
Old 09-08-2012, 03:29 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by crackshot91 View Post
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
A loop is where you start at the top (again) after incrementing a setting.
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
theducks is offline   Reply With Quote
Old 09-08-2012, 03:31 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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:
Originally Posted by crackshot91 View Post
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!
Did you create the required columns and configure the plugin so it knows where to stuff the data?
theducks is offline   Reply With Quote
Old 09-08-2012, 04:08 PM   #10
crackshot91
Enthusiast
crackshot91 has learned how to buy an e-book online
 
Posts: 40
Karma: 98
Join Date: Jan 2011
Device: Kindle 3G
Quote:
Originally Posted by theducks View Post
Did you create the required columns and configure the plugin so it knows where to stuff the data?
I... don't know.

I created a custom column here:



But, I don't know how to ensure the plugin knows where to put the data, or indeed, if I can get that data...
crackshot91 is offline   Reply With Quote
Old 09-08-2012, 04:56 PM   #11
crackshot91
Enthusiast
crackshot91 has learned how to buy an e-book online
 
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...
crackshot91 is offline   Reply With Quote
Reply

Tags
chapter count, custom column


Forum Jump

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


All times are GMT -4. The time now is 09:00 AM.


MobileRead.com is a privately owned, operated and funded community.