this post was submitted on 04 Jan 2024
5 points (100.0% liked)
Calibre
447 readers
1 users here now
For discussion about the Calibre ebook management software.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
After working with the user chaley in MobileRead forums a while back, this is what they helped come up with and it works perfectly for my needs. Sorry for the delay in posting this, I just realized I should include this here for posterity. I just realized that the code block mixes up the formatting, don’t hesitate with any questions.
program: val = $#pagecount; if $formats && $formats != 'PDF' && list_intersection($tags, 'Graphic Novel, Cookbook', ',') == '' then switch_if( val ==# 0, '', val <# 15, 'Flash Fiction', val <# 50, 'Short Story', val <# 100, 'Novelette', val <# 250, 'Novella', val <# 500, 'Short Novel', val <# 750, 'Long Novel', val <# 1000, 'Tome', 'Toe Breaker') fi