Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 10-08-2024, 04:38 PM   #571
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Version 1.6.9 - 08 Oct 2024

- Bug fix: a regression in the last version was causing the 'Abandoned' shelf color to match the 'Read' shelf color for past years
thiago.eec is offline   Reply With Quote
Old 10-09-2024, 01:42 PM   #572
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,558
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Question to other users: How do you use challenges? I just haven't found any use for them personally.
ownedbycats is online now   Reply With Quote
Old 10-09-2024, 02:55 PM   #573
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
When @Lys asked for it, these were the examples given:

Quote:
2023 -> General Fiction Challenge
2023 -> NonFiction Challenge
2023 -> Graphic Novels Challenge
from 1st Jan 2023 to 31st Dec 2024 -> Classical Literature Challenge
I really don't use it as a "challenge" per se, but as sub-goals.

I have three challenges set: Fiction, Non-fiction and Classics. Every book is added to one of the first two. I use it to balance my readings. I try to keep a 2:1 fiction/non-fiction proportion (right now it is 2.14:1).

Another use is to create a time restricted goal, like a monthly goal.

P.S.: The last of @Lys' example can't be done, because the time frame must be restricted to the current year.

Last edited by thiago.eec; 10-09-2024 at 03:06 PM. Reason: Info
thiago.eec is offline   Reply With Quote
Old 10-09-2024, 02:55 PM   #574
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,393
Karma: 12408443
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by ownedbycats View Post
Question to other users: How do you use challenges? I just haven't found any use for them personally.
At this point, I don't use challenges in the plugin because I've already handled my goodreads challenge (bingo, cozy mystery in the month, whatever...) in other way. But, thinking about it, it could be a good way to see how many of the books I've read in the year have been involved in a goodreads challenge, Thank you for having me thinking about this!
Terisa de morgan is online now   Reply With Quote
Old 10-09-2024, 03:08 PM   #575
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,558
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Hmm, I'm thinking of creating a challenge for 'books purchased in 202x' from Jan 1 - Dec 31, to see how many of them I actually read that year.

EDIT: though unfortunately I cannot retroactively create ones for previous years

ANOTHER EDIT: Also I notice that selecting Jan 1 on the dropdown instead selected 2023-12-31? It corrected itself when I edited it.
Attached Thumbnails
Click image for larger version

Name:	2024-10-09 15_14_07-Custom challenges.png
Views:	31
Size:	10.0 KB
ID:	211287  

Last edited by ownedbycats; 10-09-2024 at 03:17 PM.
ownedbycats is online now   Reply With Quote
Old 10-09-2024, 03:39 PM   #576
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
Also I notice that selecting Jan 1 on the dropdown instead selected 2023-12-31? It corrected itself when I edited it.
I think it was probably a missclick. I don't quite remember why I had to leave December 31 of the last year available (when you click it, you'll see as 'Undefined' on the calendar, but on the list it appears as a date). It has something to do with an edge case (maybe because of the timezone issues existing at the time). I'll see if I can remove it.

EDIT: Actually, the 'Undefined' thing is why. The first available date is always marked as 'Undefined', so backed up a day to leave Jan 1st as date, instead of 'Undefined'.

P.S.: Notice that each challenge created adds a view in the 'Edit reading goal' dialog, so you can see detailed info.

Last edited by thiago.eec; 10-09-2024 at 03:53 PM.
thiago.eec is offline   Reply With Quote
Old 10-09-2024, 03:52 PM   #577
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Version 1.7.0 - 09 Oct 2024

- Make challenge view available for all years in the 'Edit reading goal' dialog. It was only available for the current year.
thiago.eec is offline   Reply With Quote
Old 10-09-2024, 04:19 PM   #578
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,558
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Would it also make sense to have a Statistics filter for the challenges? I was a bit surprised to see that wasn't a thing.
ownedbycats is online now   Reply With Quote
Old 10-10-2024, 02:01 PM   #579
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,558
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Also, something I'm wondering: I have an action chain that converts the current page number to #percentread with this template:

Code:
program:
	if 
		globals(Current_Page)==''
	then
		$#percentread
	else
		totalpage = $#pagecount;
		currentpage = globals(Current_Page=1);
		newpercent = round(multiply ((currentpage / totalpage), 100))
	fi
I'm currently reading a book that's 446 pages long. While running the chain with a current_page of 190, this converted it to 43%.

However, when I look in Reading Goal, it shows 'pages' as 192. I often get minor differences like this for physical books - just 2 or 3 pages off. What causes it?

Last edited by ownedbycats; 10-10-2024 at 02:04 PM.
ownedbycats is online now   Reply With Quote
Old 10-10-2024, 03:23 PM   #580
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
I'm currently reading a book that's 446 pages long. While running the chain with a current_page of 190, this converted it to 43%.

However, when I look in Reading Goal, it shows 'pages' as 192. I often get minor differences like this for physical books - just 2 or 3 pages off. What causes it?
The difference is because you are rounding the result in your template.

190 / 446 = 42.6%, which was rounded to 43%
0,43 * 446 = 191,78 ≅ 192

Remove the round() bit from your template and the values should match.

EDIT:
Actually, the plugin does the same rounding when calculating the read pages, so it won't matter if you remove the rounding from your template. This happens because I chose to work with integers for the percentage read (as you also did).

Last edited by thiago.eec; 10-10-2024 at 04:21 PM.
thiago.eec is offline   Reply With Quote
Old 10-10-2024, 05:38 PM   #581
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,558
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Updating the read_pages in the JSON seems to stick, though it's more of a hassle than its worth tbh.
ownedbycats is online now   Reply With Quote
Old 10-10-2024, 06:19 PM   #582
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
@ownedbycats, try this version.

I removed the rounding when saving the reading progress. Now it only rounds when displaying. It should reflect the exact page count now.

P.S.: You need to remove the round() function from your template too, or it won't work. If you want, you can format your reading progress column as '{:.0f}%', so it will round when displaying in your library (without losing the real value). That's supposing you column's type is float.

Last edited by thiago.eec; 10-10-2024 at 08:53 PM. Reason: Removed test version.
thiago.eec is offline   Reply With Quote
Old 10-10-2024, 06:57 PM   #583
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,558
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Unfortunately, the column is an int-type because Kobo Utilities only accepts that.
ownedbycats is online now   Reply With Quote
Old 10-10-2024, 07:17 PM   #584
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,086
Karma: 1221485
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by ownedbycats View Post
Unfortunately, the column is an int-type because Kobo Utilities only accepts that.
Then, just ignore the formatting tip.

Now I see. You need the rounding, since it is an integer column.

Last edited by thiago.eec; 10-10-2024 at 07:35 PM.
thiago.eec is offline   Reply With Quote
Old 10-10-2024, 10:46 PM   #585
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,558
Karma: 64960981
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Huh, looks like KU does take floats (the tooltip was inaccurate), going to test a bit more just to check everything works:

Click image for larger version

Name:	2024-10-10 22_45_59-Customize Kobo Utilities.png
Views:	34
Size:	30.8 KB
ID:	211340

EDIT: I updated the tooltip.

ANOTHER EDIT: After converting everything to a float column and removing round(), the test version gets a more accurate count.

Last edited by ownedbycats; 10-10-2024 at 11:30 PM.
ownedbycats is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Reading List kiwidude Plugins 1406 10-16-2024 09:28 PM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 06:25 AM
Reading Goal KyBunnies Audiobook Discussions 12 10-25-2017 06:29 PM


All times are GMT -4. The time now is 01:22 PM.


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