View Single Post
Old 04-26-2024, 05:01 PM   #9519
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,028
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by ChaoticAdventure View Post
As for the word counts, the anthology does sum them up correctly for the "word count" column, as it should.
Hurray!

Oh wait, there's more.

Quote:
Originally Posted by ChaoticAdventure View Post
I have a separate column that I use to show the "word count range" of a fic, which uses the "numWords" function and a conditional to calculate range. It works great for individual fics, but with anthologies it will output [<10k, 10k-25k, 100k-150k] instead of the summed range (which might be 500k-600k, for example). It's a fairly specific issue so if there isn't a way to solve it, no problem, I can continue to input manually.
I'm not finding a Calibre numWords() function, so I assume you have defined your own numWords() function as a Calibre template language function? I base that on the use of the word 'function'.

(Which is different than FFF's numWords metadata entry.)

I don't know much of anything about Calibre template language, honestly, I can't help there.

Going in entirely the opposite direction, if you've magicked FFF's replace_metadata system into making word ranges for you, FFF is behaving as designed--replace_metadata, et al only operate on individual stories, not on anthologies. The correct answer would be a list of different ranges like that.

In that case, I'd suggest looking at using a Calibre Custom column 'built from other columns' that operates on a read word count column using Calibre template language.

Then it would affect all books, not just FFF downloads.
JimmXinu is offline   Reply With Quote