02-19-2023, 06:49 PM | #1 |
Enthusiast
Posts: 27
Karma: 30
Join Date: Jul 2011
Device: none
|
Preferred way to install an external modules for a plugin?
[Again, my apologies for previously posting this to the Sygil thread]
I'd like to write a plugin that uses PyDictionary, which is a english language dictionary. How do I "install" external modules so they are available to my Calibre plugin, and can be re-distributed within the zip? I tried copying the module source into a directory of my module. It works in my IDE, but when I restart Calibre, my plugin will not load, and Calibre gives the error: `ModuleNotFoundError: No module named 'PyDictionary'` I'm a Python and Calibre plugin newb so I have lots of trial and error ahead. The goal of my plugin will be to help me un-mangle a very messy Calibre library. There are hundreds of books with titles mixed into the author fields, and vice-versa. My first pass is to find authors that have several common english words in the name. Then I can inspect them to see if they are really titles, and process them further. I tried hunspell, becuase it seems it might be faster, but it seems to have compatibility issues, and has not been updated fro quite some time. |
02-19-2023, 08:52 PM | #2 |
creator of calibre
Posts: 44,108
Karma: 22669824
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
There are builtin dictionaries in calibre already use those. See the functions in spell/dictionary.py
|
Advert | |
|
Tags |
modules, plugin |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Python3: Install 3rd party modules | yparitcher | Kindle Developer's Corner | 0 | 12-15-2021 10:33 PM |
Cannot re-install Calibre after removing external drive | darkthings | Calibre | 1 | 07-24-2020 02:24 AM |
Can Calibre's conversion modules be used in an external console application? | stodge | Calibre | 6 | 03-23-2011 08:23 PM |
Plugin for external converters | jjje555 | Plugins | 2 | 12-20-2009 12:27 PM |
Turn iPod into external recording device, install OS X onto it...? | Pride Of Lions | Lounge | 1 | 01-15-2007 12:28 AM |