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, 03: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: 490
Karma: 1153449
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:	159
Size:	24.3 KB
ID:	203837 Click image for larger version

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

Name:	calibre_OpwQ6Tc276.jpg
Views:	167
Size:	76.9 KB
ID:	203839
Wiggo is offline   Reply With Quote
Old 09-17-2023, 07: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: 9,547
Karma: 64960981
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:	247
Size:	53.4 KB
ID:	203846

Last edited by ownedbycats; 09-17-2023 at 08:02 PM.
ownedbycats is offline   Reply With Quote
Advert
Old 09-17-2023, 11: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: 490
Karma: 1153449
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, 09: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: 121
Karma: 295674
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, 09: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: 12,029
Karma: 7257323
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, 11: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: 121
Karma: 295674
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, 01:28 PM   #67
applegaa
Connoisseur
applegaa began at the beginning.
 
applegaa's Avatar
 
Posts: 60
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, 01: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: 1,260
Karma: 6426810
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, 02: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: 12,029
Karma: 7257323
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, 04:56 PM   #70
applegaa
Connoisseur
applegaa began at the beginning.
 
applegaa's Avatar
 
Posts: 60
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, 11: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: 490
Karma: 1153449
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, 12:52 PM   #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: 12,029
Karma: 7257323
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, 01: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: 490
Karma: 1153449
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, 07: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: 9,547
Karma: 64960981
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, 09: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: 12,029
Karma: 7257323
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 761 11-07-2024 03:52 PM
Forma Questions about quick management of Collections. droopy Kobo Reader 5 10-11-2019 12:34 AM
2 questions; library management & calibre version Blue2u Library Management 4 04-15-2018 08:53 PM
eBook/Comic/Manga Library Management Workflow: How do you manage your library? Inukami Library Management 16 08-02-2017 01:24 PM
Thread management questions meme Feedback 6 01-31-2011 06:07 PM


All times are GMT -4. The time now is 08:12 AM.


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