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 03-22-2025, 10:18 PM   #196
7hir7een
Reader of Books
7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.7hir7een can program the VCR without an owner's manual.
 
7hir7een's Avatar
 
Posts: 249
Karma: 178096
Join Date: Oct 2012
Device: Kobo Libra Colour, Clara Colour, Libra 2, Elipsa
Also, I'd like to trim down long kindle book titles that often have the series name and the genre in the title.

Is there any way to search for titles that are, say, over 100 characters?
7hir7een is offline   Reply With Quote
Old 03-22-2025, 10:26 PM   #197
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,604
Karma: 7511185
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by 7hir7een View Post
Also, I'd like to trim down long kindle book titles that often have the series name and the genre in the title.

Is there any way to search for titles that are, say, over 100 characters?
Code:
title:"~^.{100}"
that's based on a search @chaley gave us to search for very large comments
Comfy.n is online now   Reply With Quote
Old 03-22-2025, 10:29 PM   #198
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,767
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by 7hir7een View Post
Also, I'd like to trim down long kindle book titles that often have the series name and the genre in the title.

Is there any way to search for titles that are, say, over 100 characters?
Code:
template:"""program: strlen($title)#@#:n:>=100"""
Click image for larger version

Name:	2025-03-22 23_30_54-Advanced search.png
Views:	69
Size:	21.4 KB
ID:	214573
ownedbycats is online now   Reply With Quote
Old 04-26-2025, 07:02 PM   #199
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,767
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
"Quotations" are auto-removed in title sort. not other punctuation like (parentheses) or ...ellipses. (Fanfic titles tend to go more stylistic). Is there a tweak for this? per_language_title_sort_articles doesn't seem suitable.
ownedbycats is online now   Reply With Quote
Old 05-17-2025, 06:05 PM   #200
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,767
Karma: 74203799
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
I want to display a column icon when there's data files in the book. There's two ways I can see to do this:

1. Create a rule for program: extra_file_names(',') with any value. High-impact.

2. Update a noncomposite column (either #admintags or a new #extrafiles) and use Action Chains to update it. Less impact, but without a way (that I know of) to auto-update it when adding a file (which means forgetting).

Is extra_file_names() very slow, or is there a better option?

Last edited by ownedbycats; 05-17-2025 at 06:07 PM.
ownedbycats is online now   Reply With Quote
Old 05-17-2025, 06:29 PM   #201
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,358
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I want to display a column icon when there's data files in the book. There's two ways I can see to do this:

1. Create a rule for program: extra_file_names(',') with any value. High-impact.

2. Update a noncomposite column (either #admintags or a new #extrafiles) and use Action Chains to update it. Less impact, but without a way (that I know of) to auto-update it when adding a file (which means forgetting).

Is extra_file_names() very slow, or is there a better option?
Other than a python template, extra_file_names() is the only way to determine that something is in the data directory. That function must read the disk to make the determination, so yes, it will not be fast. Whether it is fast enough only you can know. I suspect it will be acceptable because it will only run when the book is visible in the booklist and the answer to extra_file_names() is cached.

As for the action chains, perhaps you can partially solve the problem by running the chain when calibre starts or stops. You might also be able to convince Kovid to add an event to the methods in cache.py that modify the data directory.
chaley is offline   Reply With Quote
Old 05-17-2025, 08:58 PM   #202
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,656
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I use the extra_data_files function to show a folder icon:

Code:
program:
	if has_extra_files()
		then 'folder.png'
	else
		'transparent_square.png'
	fi
I have a library of 8,473 books, 2,951 (~35%) books have non-empty 'data' folders (there are probably a few hundred empty ones, I don't bother removing empty data folders). The library is on a 7,200 rpm SATA III (6.0Gb/s) HDD.

Because it's a wet cold Sunday morning, I removed the rule. I cannot discern any noticeable difference when hitting page down on the book list (48 lines per page), it is more or less instantaneous with or without the 'has_extra_files' column icon rule.

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Templates: various questions not worth their own thread ownedbycats Library Management 839 05-29-2025 05:08 AM
Forma Questions about quick management of Collections. droopy Kobo Reader 5 10-10-2019 11:34 PM
2 questions; library management & calibre version Blue2u Library Management 4 04-15-2018 07:53 PM
eBook/Comic/Manga Library Management Workflow: How do you manage your library? Inukami Library Management 16 08-02-2017 12:24 PM
Thread management questions meme Feedback 6 01-31-2011 05:07 PM


All times are GMT -4. The time now is 11:32 AM.


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