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-17-2023, 02:46 PM   #61
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 400
Karma: 1121267
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Thank you so much again, @obc!

Quote:
Originally Posted by ownedbycats View Post

Increment #timesread:

Code:
program: $$#timesread + 1
Add dates to #readdates:

Code:
program:
	list_union(strcat(format_date($$#lastread, 'MMM d yyyy')), $#readdates, ',')
The other SFEs are either predefined or ask-on-runtime.
I only took what I need, incrementing #read_count and adding #readdates, but your "Mark as DNF" entry in Action Chains is still in there in the menu though.

Click image for larger version

Name:	D23icSWZoT.jpg
Views:	83
Size:	24.3 KB
ID:	203837 Click image for larger version

Name:	yANJ6lSGy8.jpg
Views:	79
Size:	55.6 KB
ID:	203838 Click image for larger version

Name:	calibre_OpwQ6Tc276.jpg
Views:	80
Size:	76.9 KB
ID:	203839
Wiggo is offline   Reply With Quote
Old 09-17-2023, 06:59 PM   #62
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: 8,639
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Wiggo View Post
I only took what I need, incrementing #read_count and adding #readdates, but your "Mark as DNF" entry in Action Chains is still in there in the menu though.
Click image for larger version

Name:	2023-09-17 19_59_11-Chains Dialog.png
Views:	108
Size:	53.4 KB
ID:	203846

Last edited by ownedbycats; 09-17-2023 at 07:02 PM.
ownedbycats is offline   Reply With Quote
Advert
Old 09-17-2023, 10:41 PM   #63
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 400
Karma: 1121267
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
I no longer had this entry, so I redid the chain
Wiggo is offline   Reply With Quote
Old 09-23-2023, 08:36 AM   #64
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 111
Karma: 290364
Join Date: Jul 2021
Device: iPhone
Is it possible to partition a category (that is a column built from other columns formatted into a date) in the tag browser by year then by month then by day?
culytera is offline   Reply With Quote
Old 09-23-2023, 08:41 AM   #65
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by culytera View Post
Is it possible to partition a category (that is a column built from other columns formatted into a date) in the tag browser by year then by month then by day?
See this post in this thread. This post describes a fast template function to format dates. Be sure to set the column to be hierarchical in Preferences / Look & feel / Tag browser
chaley is offline   Reply With Quote
Advert
Old 09-23-2023, 10:07 AM   #66
culytera
Zealot
culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.culytera ought to be getting tired of karma fortunes by now.
 
Posts: 111
Karma: 290364
Join Date: Jul 2021
Device: iPhone
Quote:
Originally Posted by chaley View Post
See this post in this thread. This post describes a fast template function to format dates. Be sure to set the column to be hierarchical in Preferences / Look & feel / Tag browser
Thank you! Works exactly like I wanted.
culytera is offline   Reply With Quote
Old 09-25-2023, 12:28 PM   #67
applegaa
Connoisseur
applegaa began at the beginning.
 
applegaa's Avatar
 
Posts: 51
Karma: 10
Join Date: Apr 2019
Device: none
Is it possible to set different default values for the same custom column in different libraries?
applegaa is offline   Reply With Quote
Old 09-25-2023, 12:40 PM   #68
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: 999
Karma: 6422750
Join Date: Sep 2020
Device: Calibre E-book viewer
Quote:
Originally Posted by applegaa View Post
Is it possible to set different default values for the same custom column in different libraries?
I haven't tested different default values in different libraries neither with built-in Calibre settings nor with Job Spy "Apply default values" feature, but I'd guess this is possible...
Comfy.n is online now   Reply With Quote
Old 09-25-2023, 01:24 PM   #69
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by applegaa View Post
Is it possible to set different default values for the same custom column in different libraries?
Yes. Custom column definitions are library-specific, so all the defaults are per-library. Changing a default in one library has no effect on other libraries.
chaley is offline   Reply With Quote
Old 09-25-2023, 03:56 PM   #70
applegaa
Connoisseur
applegaa began at the beginning.
 
applegaa's Avatar
 
Posts: 51
Karma: 10
Join Date: Apr 2019
Device: none
Quote:
Originally Posted by chaley View Post
Yes. Custom column definitions are library-specific, so all the defaults are per-library. Changing a default in one library has no effect on other libraries.
Thanks!!!
applegaa is offline   Reply With Quote
Old 10-01-2023, 10:50 AM   #71
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 400
Karma: 1121267
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Calibre tweaks

Could someone please help me here. I would like to split the authors also at ";".
Code:
 '(?i),?\\s+(and|with|und|mit|•|;)\\s+'
Doesn't work. To be more precise, nothing works in the regex testers
Wiggo is offline   Reply With Quote
Old 10-01-2023, 11:52 AM   #72
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Wiggo View Post
Calibre tweaks

Could someone please help me here. I would like to split the authors also at ";".
Code:
 '(?i),?\\s+(and|with|und|mit|•|;)\\s+'
Doesn't work. To be more precise, nothing works in the regex testers
The problem is that the regex requires a space before and after the split indicator. My guess is that in the metadata there is a space after the semicolon but not before.

Try this:
Code:
authors_split_regex = '(?i),?(\\s+(and|with|und|mit|)\\s+|(;|•))'
It still requires spaces before and after the words but doesn't require spaces before or after the semicolon or the •.
chaley is offline   Reply With Quote
Old 10-01-2023, 12:05 PM   #73
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 400
Karma: 1121267
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Quote:
Originally Posted by chaley View Post
The problem is that the regex requires a space before and after the split indicator. My guess is that in the metadata there is a space after the semicolon but not before.

Try this:
Code:
authors_split_regex = '(?i),?(\\s+(and|with|und|mit|)\\s+|(;|•))'
It still requires spaces before and after the words but doesn't require spaces before or after the semicolon or the •.
Wiggo is offline   Reply With Quote
Old 10-11-2023, 06:55 AM   #74
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: 8,639
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question: In #admintags, I have several readinggoal:xxxx entries (where xx is the year). How would I search for books that contain at least two of these?
ownedbycats is offline   Reply With Quote
Old 10-11-2023, 08:10 AM   #75
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: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Question: In #admintags, I have several readinggoal:xxxx entries (where xx is the year). How would I search for books that contain at least two of these?
Isn't this a template question?

Examples:
Code:
program:
	list_count(list_re($#mytextmult, ',', 'aaa:', ''), ',') > 1
Code:
python:
def evaluate(book, context):
	lst = list(i for i in book.get('#mytextmult', '') if i.startswith('aaa:'))
	return '1' if len(lst) > 1 else ''
chaley 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 662 03-23-2024 01:20 PM
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 01:48 AM.


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