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 01-08-2025, 10:21 AM   #1891
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by BetterRed View Post
If you mean these The calibre:// URL scheme — calibre 7.23.0 documentation then you can put them Comments or a another long text column using Insert link tool on the Rich Text editor. I have added a Links custom column to my libraries where I put links to 'related' books etc.



BR
I mean regular html url that can be inserted in the comments field in book metadata. For instance the full url to a book is: <a href="http://192.168.2.30:8080/#book_id=12817&library_id=Calibre&panel=book_detai ls">Book name</a>

which can be shortened to <a href="#book_id=12817&panel=book_details">Book name</a>

This works fine in the Content Server, but does nothing, as expected in the Main Calibre, and I hope it would actually jump to the target book when clicking.



Sent from my Pixel 7 Pro using Tapatalk

Last edited by nqk; 01-08-2025 at 10:25 AM.
nqk is offline   Reply With Quote
Old 01-08-2025, 10:30 AM   #1892
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by BetterRed View Post
If you mean these The calibre:// URL scheme — calibre 7.23.0 documentation then you can put them Comments or a another long text column using Insert link tool on the Rich Text editor. I have added a Links custom column to my libraries where I put links to 'related' books etc.



BR
I would try to avoid creating more columns. You know in many cases the text in the Comments may say "this book is similar to that book", and I would just enter the url to that specific book in rich text format.

Or the url can be used to do searches in the database.

I have been using it this way in the Content Server for long, and I would hope I can do it in the Main Calibre. In my view, it is simpler and more convenient than creating a bunch of columns.

Last edited by nqk; 01-08-2025 at 10:35 AM.
nqk is offline   Reply With Quote
Advert
Old 01-08-2025, 04:23 PM   #1893
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,836
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by nqk View Post
I mean regular html url that can be inserted in the comments field in book metadata. For instance the full url to a book is: <a href="http://192.168.2.30:8080/#book_id=12817&library_id=Calibre&panel=book_detai ls">Book name</a>

which can be shortened to <a href="#book_id=12817&panel=book_details">Book name</a>

This works fine in the Content Server, but does nothing, as expected in the Main Calibre, and I hope it would actually jump to the target book when clicking.



Sent from my Pixel 7 Pro using Tapatalk
Quote:
Originally Posted by nqk View Post
I would try to avoid creating more columns. You know in many cases the text in the Comments may say "this book is similar to that book", and I would just enter the url to that specific book in rich text format.

Or the url can be used to do searches in the database.

I have been using it this way in the Content Server for long, and I would hope I can do it in the Main Calibre. In my view, it is simpler and more convenient than creating a bunch of columns.
I used to do something similar, but the day Kovid released the calibre URL scheme I decided to switch to using it - I dislike interactive web browser interfaces.

Added: for me the calibre URL scheme is the #1 calibre enhancement.

BR

Last edited by BetterRed; 01-08-2025 at 04:30 PM.
BetterRed is offline   Reply With Quote
Old 01-08-2025, 07:09 PM   #1894
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
calibre:// would be fine for me if it worked in the Content Server, which I use regularly to read books and leave comments... You know, I read on multiple mobile devices (phone, eink reader, tablet, PC) so I need the Content Server to synchronize my progress and annotations.

Sent from my Pixel 7 Pro using Tapatalk

Last edited by nqk; 01-08-2025 at 07:13 PM.
nqk is offline   Reply With Quote
Old 01-09-2025, 04:27 AM   #1895
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,461
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by nqk View Post
calibre:// would be fine for me if it worked in the Content Server, which I use regularly to read books and leave comments... You know, I read on multiple mobile devices (phone, eink reader, tablet, PC) so I need the Content Server to synchronize my progress and annotations.

Sent from my Pixel 7 Pro using Tapatalk
https://github.com/kovidgoyal/calibr...deb4031d8fa61d
kovidgoyal is offline   Reply With Quote
Advert
Old 01-09-2025, 07:46 PM   #1896
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 564
Karma: 32228
Join Date: Feb 2012
Device: Onyx Boox Leaf
Quote:
Originally Posted by kovidgoyal View Post
Oh, that was quick.

Thank you, Kovid. I would update as soon as the new version is released.

Sent from my Pixel 7 Pro using Tapatalk
nqk is offline   Reply With Quote
Old 01-25-2025, 12:54 PM   #1897
StickyC
Junior Member
StickyC began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2008
Device: Kindle
Automated Larger Cover Finder

Right now, when you grab metadata for a book, it'll search the various sources given for alternative covers. The results may or may not be a good match and may or may not be larger/better than the existing cover. The covers are sorted by size, so oftentimes a higher quality/size replacement is not the first on the list. This makes looking for larger covers require a lot of cognitive overhead.

While that part of Calibre that normally handles downloading/choosing covers is probably not really 'touchable' code (is it?). It shouldn't be too difficult to write a plugin that:

- Downloads alternative book covers for a book (probably need to throttle the requests to avoid getting blocked)
- Rejects any candidates smaller than the existing cover
- Generates a histogram of the existing cover image and remaining candidates
- Automatically replaces the existing cover with the downloaded match that is larger/better, or at least provides a list sorted by histogram similarity so that a likely better cover is shown first.

I have not actually tried doing cover comparisons this way, so I have no idea how effective it would actually be. I do know that a lot of "Duplicate image finder" apps use histograms to compare identical pics of different sizes.

Ideally, it'd be something you could run against a library or individual book with options for minimum size to seek replacements and/or minimum size increase and, of course, the ability to accept/decline. Possibly even a 'minimum match' for comparing histograms.

I've not looked into what it takes to interface with Calibre, but the histogram comparison element seems like it'd be fairly easy to implement.

Last edited by StickyC; 01-25-2025 at 12:57 PM.
StickyC is offline   Reply With Quote
Old 01-25-2025, 01:10 PM   #1898
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,147
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
@stickyC
Beware the covers with whitespace borders. (eg 600x600). I see these frequently from a Google search. The trimmed cover was nnnx230

IMHO use the Quality check Plugin to identify covers that are less than your desired minimum and then MANUALLY use the Get Covers part of Get Metadata to cherry pick (or just keep what you have)
theducks is offline   Reply With Quote
Old 01-25-2025, 04:17 PM   #1899
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,083
Karma: 148029447
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
I quite like the Apple Books covers plugin. I have it set to download the cover from the US & the UK.
JSWolf is offline   Reply With Quote
Old 01-26-2025, 02:48 PM   #1900
StickyC
Junior Member
StickyC began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Feb 2008
Device: Kindle
Quote:
Originally Posted by theducks View Post
@stickyC
Beware the covers with whitespace borders. (eg 600x600). I see these frequently from a Google search. The trimmed cover was nnnx230
Ahh, good point. Add that to the features - Trim whitespace around the perimeter

Quote:
Originally Posted by theducks View Post
IMHO use the Quality check Plugin to identify covers that are less than your desired minimum and then MANUALLY use the Get Covers part of Get Metadata to cherry pick (or just keep what you have)
I hadn't thought of that - it doesn't really fit in my workflow, but maybe it's time to change my workflow
StickyC is offline   Reply With Quote
Old 01-27-2025, 12:52 PM   #1901
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,147
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I got tired and frustrated trying to get various templates to work upon adding books and discovered that once I learned REGEX (I already knew basic HTML from the 3.x days), That I could cast an eye on the code and fix many (perceived ) problems in less than a minute (I have made a collection of saved searches and snippets).
Since I now only do 1 or 2 books at after a shopping time, I find the GUI based workflow satisfactory.
As Always YMMV
theducks is offline   Reply With Quote
Old 01-27-2025, 07:45 PM   #1902
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,141
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
I've pretty much given up on trying to bulk download covers or other metadata. I don't do that many books at a time and it's faster to make sure I have the correct cover than to bulk download and go back to correct mistakes. Not to mention that bulk download is getting blocked more and after fewer requests often making it less useful.
DNSB is offline   Reply With Quote
Old 02-02-2025, 12:44 AM   #1903
calmingcolor
Junior Member
calmingcolor began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2025
Device: Kobo
Lightbulb New/Updated TTS: Kokoro

Kokoro is an open-weight TTS model (82M parameters). Its lightweight and delivers comparable quality to larger models. With Apache-licensed weights, it can be deployed anywhere! I think it would be great if someone could make a plug in... It is beyond me - but would be great to have something other than the Piper read aloud.

Is this a good idea? Possible?

https://github.com/hexgrad/kokoro?tab=readme-ov-file
https://github.com/Lyrcaxis/KokoroSharp

calmingcolor is offline   Reply With Quote
Old 02-02-2025, 01:33 AM   #1904
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,461
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
text to speech engines aren't implemented as plugins, so you would need to modify calibre code to add a new backend.
kovidgoyal is offline   Reply With Quote
Old 02-02-2025, 10:48 AM   #1905
calmingcolor
Junior Member
calmingcolor began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2025
Device: Kobo
Quote:
Originally Posted by kovidgoyal View Post
text to speech engines aren't implemented as plugins, so you would need to modify calibre code to add a new backend.
Ah good to know! Thanks for the heads up before I started working on it. I could try and start pulling stuff together for a backend. Are you, or do you know anyone else I could contact who, is interested in extending TTS functionality and could help?
\The model is benchmarking close to eleven labs, but so much more lightweight!
calmingcolor is offline   Reply With Quote
Reply

Tags
calibre, chatbot, cover, epub fix, epub-fix, google books, kindle, metadata calibre title, missing, pdf, pdf and calibre, plugin development, scribe


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 Any ideas what this might be? Neupy Sony Reader 4 07-03-2012 07:19 AM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM
Ideas? mike_bike_kite Which one should I buy? 10 06-13-2010 03:37 PM
Ideas F1Wild Amazon Kindle 4 07-10-2009 06:01 AM


All times are GMT -4. The time now is 11:29 PM.


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