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 03-22-2023, 03:53 PM   #1711
FilBot3
SRE and Hobbiest
FilBot3 began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2023
Location: Kansas City
Device: none
Plugin Idea/Request: DriveThruRPG Library by One Bookshelf.

There is a Python library called drpg on PyPi. I am reading through the plugin development documentation now. However, if someone is more ready to do this, please.

I find the official DriveThruRPG Library Client to be not as good. I would like to be able to run my DTRPG library from a sever and access it on my network or share with my players.
FilBot3 is offline   Reply With Quote
Old 03-24-2023, 05:32 AM   #1712
Cambel_James
Junior Member
Cambel_James began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2023
Device: PC
Speed reading trick feature should be added

I have often seen speed readers share a trick, which suggests drawing an imaginary grid or a real grind lines on pages, and keeping focus on that area by reading the whole line rapidly by peripheral vision. Just two lines after 2-3 words of each margins of the page. Shown here, the trick is very popular. https://youtu.be/0Q0we4LjSws?t=527

So, a feature should provide that grids which is customizable, in the layout option. I get this suggestion request to the right people.

thanks.
Cambel_James is offline   Reply With Quote
Advert
Old 03-27-2023, 01:19 PM   #1713
retval
Enthusiast
retval began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Mar 2011
Device: none
An add-in that integrates OCR to pdf scanned as image.

Greetings to all, I wanted to suggest an add-on that allows to insert OCR in pdfs.
As you may have experienced there are old pdf's that were scanned as image. That's why you can't use Calibre's full text search. The free OCR programs I have tried are not efficient and the good ones are very expensive like Foxyt.
Thank you.
retval is offline   Reply With Quote
Old 03-27-2023, 06:17 PM   #1714
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: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
To get high quality OCR in a plugin the developer would probably need to buy the relevant SDKs, in Foxit's case that would be $3,000 per platform (Windows, MacOS, Linux), per year ²

Most plugins are created by the first person having the need for a particular functionality.

BR

Last edited by BetterRed; 03-27-2023 at 06:27 PM.
BetterRed is offline   Reply With Quote
Old 03-28-2023, 10:50 AM   #1715
waynia
Junior Member
waynia began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Mar 2023
Device: kindle paperwhite 3
Smile [GUI Plugin]An idea for building a plugin of Calibre with ChatGPT

Hello everyone, I am a user of Calibre software for a long time. Recently I developed a python program to recursively summarize the information of an epub format ebook, and output the summaries to a .csv file. This could be further developed as a plugin for Calibre. Imagine that you drag a new e-book into Calibre, and clicked a button, then the plugin summarizes the content of this new book in the back, and the summarized content could be a context for you to chat with ChatGPT. This would be not only interesting but also useful for us.

The program I have developed has been hosted on Github:https://github.com/waynia/epub_retrieval ,while this is only the first step towards the plugin I just described. I have no experience about how to build a GUI plugin of Calibre and I believe the best way to create it is to ask you to join me together.
Moderator Notice
Moved to the plugin ideas thread. Making a new thread labeled like that suggests you already have a plugin made.

Last edited by JimmXinu; 03-28-2023 at 11:24 AM.
waynia is offline   Reply With Quote
Advert
Old 04-02-2023, 10:04 AM   #1716
feuille
Connoisseur
feuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enough
 
Posts: 52
Karma: 666
Join Date: May 2020
Location: Germany
Device: android smartphone + tablet
I like this idea

Quote:
Originally Posted by retval View Post
Greetings to all, I wanted to suggest an add-on that allows to insert OCR in pdfs.
As you may have experienced there are old pdf's that were scanned as image. That's why you can't use Calibre's full text search.
Hello retval,
I like this idea. I've always converted scanned documents outside of Calibre, but a plugin would have some advantages for the process flow (save the desired output format via Calibre's conversion tool, writing metadata, etc.).
The OCR SDK shouldn't be a problem. I have developed a Python program (I call it Doculyzer) that can be used in companies and government agencies to extract data from scanned PDF files or faxes and store it in a backend database. I use Tesseract as the OCR library, which delivers very good results (see attached example).
If I have some time in the next few weeks, I'll integrate the Python code into a Calibre GUI plugin. Suggestions are welcome!
Attached Thumbnails
Click image for larger version

Name:	scanned_pdf_2.jpg
Views:	91
Size:	249.2 KB
ID:	200750  
Attached Files
File Type: txt scanned_pdf_2.txt (1.7 KB, 73 views)
feuille is offline   Reply With Quote
Old 04-02-2023, 07:34 PM   #1717
retval
Enthusiast
retval began at the beginning.
 
Posts: 29
Karma: 10
Join Date: Mar 2011
Device: none
An add-in that integrates OCR to pdf scanned as image.

Quote:
Originally Posted by feuille View Post
Hello retval,
I like this idea. I've always converted scanned documents outside of Calibre, but a plugin would have some advantages for the process flow (save the desired output format via Calibre's conversion tool, writing metadata, etc.).
The OCR SDK shouldn't be a problem. I have developed a Python program (I call it Doculyzer) that can be used in companies and government agencies to extract data from scanned PDF files or faxes and store it in a backend database. I use Tesseract as the OCR library, which delivers very good results (see attached example).
If I have some time in the next few weeks, I'll integrate the Python code into a Calibre GUI plugin. Suggestions are welcome!
Great, I'm completely ignorarte in programming, I'm just a user. Of the OCR programs I know the one that I think achieves the best results is Foxyt. Many programs bog down the pc, as pdfs without OCR are often too many megabytes in weight. I don't know if that will be a limitation.
Hopefully you can create a plug-in that integrates OCR.
Best of luck with it.
PS: what program do you use for OCR? The test you upload is very good.

Last edited by retval; 04-02-2023 at 07:40 PM.
retval is offline   Reply With Quote
Old 04-03-2023, 02:50 AM   #1718
feuille
Connoisseur
feuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enoughfeuille will become famous soon enough
 
Posts: 52
Karma: 666
Join Date: May 2020
Location: Germany
Device: android smartphone + tablet
Quote:
Originally Posted by retval View Post
PS: what program do you use for OCR? The test you upload is very good.
As I wrote, I use my own frontend. This first breaks down the PDF into individual images using the Poppler library (which Calibre also uses). Then the text is recognized using the Tesseract library. Since this is done image by image, the overall size of the PDF file is irrelevant. Tesseract (https://en.m.wikipedia.org/wiki/Tesseract_(software)) is free software under an Apache license, for which there are various frontends. Tesseract also has training data for different fonts. For example, I have many books in German Fraktur, which I convert with the training data from the University of Mannheim.
feuille is offline   Reply With Quote
Old 04-10-2023, 08:44 PM   #1719
Ertagon
Junior Member
Ertagon began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2022
Device: Kindle Scribe
Quote:
Originally Posted by tomsem View Post
I took a look at the KCC (command line) code a few months ago, as it was the closest thing to my use case (make photo albums from a set of images, with landscape spreads that join smoothly when in 2 page mode on a tablet, and scaling up and down for 'best fit').

I had some success hacking to get it to do this, but reached a point where I was struggling too much with the way the code is structured, and concluded it would be better to start over from scratch.

The KCC IMO is not well structured, it seems to do too many things to do any of them well, and the greatest Python sin of all, it doesn't conform to Python naming conventions or PEP8 generally.

I think one of the KCC developers had a project to create a calibre plugin, but they wanted to use Python 3 features which wasn't supported at the time so it probably isn't much of a starting point.

So I would agree it's better to start over with a clear list of requirements, as I plan to do with my photo album idea, should I ever get around to it.

If you don't find a willing recruit, you could just build a command line tool, get that working, and worry about the plugin stuff later. Which is my plan.
I started my own development.
I am still figuring out how to access various info from the conversion panel.
Calibre does not have the most comprehensive documentation out there.
Though ChatGPT was surprisingly helpful.
I successfully overwrote most of the functions that handle CBZ as input.
Right now I am trying to figure out the right XML format for Kindle devices.
I looked at KCC but there seems to be a lot of extra code just for individual panels.
I looked at the XML used in manga bought on Amazon and it seems those extra panels are required even if they are empty.

I had to replace my Scribe and that took me some time so I had to put development on hold since I couldn't test things properly. Might give it another shot sometime soon.

Your idea of just doing CLI sounds half decent but then you can't really take advantage of lots of built-in functions of calibre conversion. I think letting Calibre handle image manipulation and just figuring out the XML format is the best approach for a calibre plugin. Though I am very new to this environment so I might be mistaken.
Ertagon is offline   Reply With Quote
Old 04-11-2023, 09:03 AM   #1720
AJLane
Member Retired
AJLane began at the beginning.
 
AJLane's Avatar
 
Posts: 7
Karma: 10
Join Date: Feb 2014
Device: Kindle
When using email to share books in Calibre is there some way to add Series and Comments to to the body of the email? Is there an easy way to view a simple log of books that have been shared via email with when, email address and book?
AJLane is offline   Reply With Quote
Old 04-11-2023, 10:36 AM   #1721
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: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by AJLane View Post
When using email to share books in Calibre is there some way to add Series and Comments to to the body of the email? Is there an easy way to view a simple log of books that have been shared via email with when, email address and book?
You can use the Template Language in the 'Subject'
{title}-{series}
balloon help on many items is the only easy documentation.

No easy 'log'. It might be buried in the Debug Log (if running)
theducks is offline   Reply With Quote
Old 04-14-2023, 08:05 AM   #1722
AJLane
Member Retired
AJLane began at the beginning.
 
AJLane's Avatar
 
Posts: 7
Karma: 10
Join Date: Feb 2014
Device: Kindle
Thanks for the info!
AJLane is offline   Reply With Quote
Old 04-19-2023, 10:23 AM   #1723
asymon
Junior Member
asymon began at the beginning.
 
asymon's Avatar
 
Posts: 4
Karma: 10
Join Date: Oct 2011
Device: KO2/PW4
Hi!

I'm curious is there any way to send e-books from Calibre to kindle device using wi-fi? Just like copy via USB, but... without USB. Of course I'm talking about jailbreaked device that's in the same local network as PC with Calibre.

So... I have jailbraked kindle, succesfully configured openssh server in usbnetwork, set password, installed public ssh key. I can send e-book directly to my kindle using scp. All this can be (and has to be) done without Calibre.

But why bother with command line and not build some interface in Calibre? Like in command:

$ ssh $EbookFileName root@$MyKindleLocalIP:/mnt/us/documents/$SomePath

- I assume that $MyKindleLocalIP is to enter in plugin options and $EbookFileName and $SomePath are just taken from book database, like in USB 'case'.

What do you think? Or maybe it has been done already? The problem I see is one-way communication, ssh have some status messages, though. But we can't "connect" device, and kindle doesn't replay for pings.

There's something in Connect/Share menu "Start wireless device connection", but I'm pretty sure it's designed for something else.
asymon is offline   Reply With Quote
Old 04-20-2023, 08:55 AM   #1724
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: 995
Karma: 6417070
Join Date: Sep 2020
Device: Calibre E-book viewer
How about a plugin that places a button on Calibre toolbar, which will toggle on/off the "Use internal viewer" behaviour setting.

Use case, for instance, is when frequently alternating between FTS module -- in which is desirable to have internal viewer ON -- and Main Calibre Program, in which is desirable to have default system programs open EPUB, AZW3, CBR and MOBI formats.

Comfy.n is online now   Reply With Quote
Old 04-20-2023, 05:39 PM   #1725
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: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Comfy.n View Post
How about a plugin that places a button on Calibre toolbar, which will toggle on/off the "Use internal viewer" behaviour setting.

Use case, for instance, is when frequently alternating between FTS module -- in which is desirable to have internal viewer ON -- and Main Calibre Program, in which is desirable to have default system programs open EPUB, AZW3, CBR and MOBI formats.
What's wrong with using View->View with calibre E-book viewer if that's what you specifically want.

You could give it a shortcut and or add it to Favourites.

BR
BetterRed 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 12:46 AM.


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