View Single Post
Old 02-08-2023, 02:54 PM   #8027
ackomb
Zealot
ackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura aboutackomb has a spectacular aura about
 
Posts: 106
Karma: 4486
Join Date: Mar 2020
Location: Netherlands
Device: i-pad
Quote:
Originally Posted by culytera View Post
I tried to make a template for grouping word count on Calibre based on this, but it wasn't working properly for me despite having Calibre updated. I saw a different one which worked.
Code:
program:
	getWordCount = field('#ao3_words');
	wordCount = re(getWordCount, '[,]', '');
	first_non_empty(
		cmp(wordCount, 5001, '0 - 5000', '', ''),
		cmp(wordCount, 10001, '5001 - 10000', '', ''),
		cmp(wordCount, 20001, '10001 - 20000', '', ''),
		cmp(wordCount, 40001, '20001 - 40000', '', ''),
		cmp(wordCount, 80001, '40001 - 80000', '', ''),
		'80000+'
);
It looks like this for me. I wish MapleRead could sort by groups, but it's limited so I'm making do with tag grouping.
I keep them under saved searches like attached and it keeps the order
Attached Thumbnails
Click image for larger version

Name:	Schermafbeelding 2023-02-08 205316.jpg
Views:	138
Size:	30.9 KB
ID:	199584  
ackomb is offline   Reply With Quote