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 08-09-2021, 10:27 AM   #196
steakhutzeee
Connoisseur
steakhutzeee began at the beginning.
 
Posts: 63
Karma: 10
Join Date: Mar 2020
Device: Kindle Paperwhite 4 (2018)
Hi, I actually use kfx output plugin to convert my epub and send them to my kindle.

So using Worddumb I should first convert to kfx with kfx output and then use worddumb?

Inviato dal mio Mi 9T utilizzando Tapatalk
steakhutzeee is offline   Reply With Quote
Old 08-09-2021, 03:06 PM   #197
TheWizardOf
Junior Member
TheWizardOf began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2021
Device: Oasis
Wordwise

Does wordwise only work with English books?
TheWizardOf is offline   Reply With Quote
Advert
Old 08-09-2021, 07:21 PM   #198
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
Quote:
Originally Posted by steakhutzeee View Post
So using Worddumb I should first convert to kfx with kfx output and then use worddumb?
It also supports AZW3 and MOBI books.
xxyzz is offline   Reply With Quote
Old 08-09-2021, 07:24 PM   #199
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
Quote:
Originally Posted by TheWizardOf View Post
Does wordwise only work with English books?
That's right, Word Wise is for helping people read English books. But X-Ray supports more languages.
xxyzz is offline   Reply With Quote
Old 08-16-2021, 12:39 AM   #200
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
v3.11.1

- save disambiguation Wikipedia pages to cache
- install spaCy's dependencies for NLTK
- update dependencies
- update book ASIN inside ThreadedJob
- tell 32bit calibre Windows users to install 64bit calibre in error window

Some dependencies for X-Ray don't provide 32bit wheel file and I don't know how to build them. So 32bit calibre is not supported.

Last edited by xxyzz; 08-16-2021 at 01:07 AM.
xxyzz is offline   Reply With Quote
Advert
Old 08-20-2021, 09:15 AM   #201
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
I write a script to parse Kindle English-Japanese dictionary to create a Japanese klld file. I can't upload the klld file but you can find the code at: https://github.com/xxyzz/WordDumb/tree/master/klld

I want to use xpath to extract definitions but didn't figure out how to write the correct expression.
Attached Thumbnails
Click image for larger version

Name:	screenshot.png
Views:	239
Size:	51.2 KB
ID:	188803  

Last edited by xxyzz; 08-20-2021 at 09:18 AM.
xxyzz is offline   Reply With Quote
Old 08-20-2021, 11:14 AM   #202
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
^
Very nice!
PoP is offline   Reply With Quote
Old 08-29-2021, 10:01 AM   #203
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
v3.11.2

- check processed named entity's length and content
- update dependencies

I updated the klld code last week to support Oxford dictionaries. I only tested four Oxford dictionaries but other Oxford dictionaries could also be used as long as they have the same xml structure.
xxyzz is offline   Reply With Quote
Old 09-01-2021, 01:00 AM   #204
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
v3.12.0

- use spaCy's PhraseMatcher to find word wise phrases
- match lemma contains "'"
- use `continue` instead of `return` to check rest named entities when a token contains 'chapter'

v3.12.1
insert end column for word wise phrases

Last edited by xxyzz; 09-01-2021 at 01:40 AM.
xxyzz is offline   Reply With Quote
Old 09-02-2021, 05:28 AM   #205
cat0705
Member
cat0705 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2020
Device: Kindle Oasis 1
Hello, recently I've just switched from Windows to Linux so I'm still pretty new with the systems. Somehow the plugins is not working even though I had python3-pip installed.

Code:

Quote:
calibre, version 5.26.0 (linux, embedded-python: True)
Weak: subprocess.run() failed

Starting job: Generating Word Wise and X-Ray for _
Job: "Generating Word Wise and X-Ray for _" failed with error:
Traceback (most recent call last):
File "calibre/gui2/threaded_jobs.py", line 83, in start_work
File "calibre_plugins.worddumb.parse_job", line 24, in do_job
install_libs(model, create_ww)
File "calibre_plugins.worddumb.unzip", line 50, in install_libs
pip_install(pkg, value['version'], value['compiled'])
File "calibre_plugins.worddumb.unzip", line 104, in pip_install
subprocess.run(args, check=True, capture_output=True)
File "subprocess.py", line 512, in run
subprocess.CalledProcessError: Command '['python3', '-m', 'pip', 'install', '-t', PosixPath('/home/cat0705/.var/app/com.calibre_ebook.calibre/config/calibre/plugins/worddumb-libs/blis_0.7.4_3.8'), '--no-deps', '--python-version', '3.8', 'blis==0.7.4']' returned non-zero exit status 1.

Called with args: ((136, 'AZW3', 'B071HDXV91', '/home/cat0705/Calibre Library/_.azw3', <calibre.ebooks.metadata.book.base.Metadata object at 0x7f919ce4d3d0>, False, {'spacy': 'en_core_web_', 'wiki': 'en'}), True, True) {'notifications': <queue.Queue object at 0x7f919ce46970>, 'abort': <threading.Event object at 0x7f919fcf0430>, 'log': <calibre.utils.logging.GUILog object at 0x7f919cee0e50>}
/usr/bin/python3: No module named pip
I think it must be due to the way Linux dealing with pip package. Any ideas on how can I solve this? Thank you!
cat0705 is offline   Reply With Quote
Old 09-02-2021, 07:20 AM   #206
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
Quote:
Originally Posted by cat0705 View Post
Somehow the plugins is not working even though I had python3-pip installed.
The error message says `/usr/bin/python3: No module named pip`. Which distro are you using? I'm pretty sure Ubuntu's python3 will have pip module once `python3-pip` package is installed.

Last edited by xxyzz; 09-02-2021 at 07:27 AM.
xxyzz is offline   Reply With Quote
Old 09-02-2021, 12:02 PM   #207
cat0705
Member
cat0705 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2020
Device: Kindle Oasis 1
Quote:
Originally Posted by xxyzz View Post
The error message says `/usr/bin/python3: No module named pip`. Which distro are you using? I'm pretty sure Ubuntu's python3 will have pip module once `python3-pip` package is installed.
I'm using Zorin OS, which is based on Ubuntu. The pip is installed and located at `./.local/lib/python3.8/site-packages`.

I wonder if this is due to the “User Scheme” of Debian/Ubuntu. When I install a package through pip in terminal I will have to include 'pip install --user', otherwise it will return the message "Defaulting to user installation because normal site-packages is not writeable".

Sorry if this is confused, I still got a lot to learn with linux
cat0705 is offline   Reply With Quote
Old 09-02-2021, 08:19 PM   #208
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
Quote:
Originally Posted by cat0705 View Post
I'm using Zorin OS, which is based on Ubuntu. The pip is installed and located at `./.local/lib/python3.8/site-packages`.
Don't download calibre from flathub, it's running in a sandbox and maybe that causes the error.

Run the command
Code:
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
to install calibre(see https://calibre-ebook.com/download_linux). All Linux users should use this command except Arch Linux users.

Last edited by xxyzz; 09-02-2021 at 10:12 PM.
xxyzz is offline   Reply With Quote
Old 09-03-2021, 12:49 AM   #209
cat0705
Member
cat0705 began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2020
Device: Kindle Oasis 1
Quote:
Originally Posted by xxyzz View Post
Don't download calibre from flathub, it's running in a sandbox and maybe that causes the error.

Run the command
Code:
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
to install calibre(see https://calibre-ebook.com/download_linux). All Linux users should use this command except Arch Linux users.
I reinstall calibre and it works perfectly now. Did not think flathub is the problem. Many thanks!
cat0705 is offline   Reply With Quote
Old 09-03-2021, 09:33 AM   #210
xxyzz
Evangelist
xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.xxyzz ought to be getting tired of karma fortunes by now.
 
Posts: 442
Karma: 2666666
Join Date: Nov 2020
Device: none
v3.13.0

- ignore "hapter*" while creating X-Ray
- add spaCy model link and tooltip to config label
- tell Debian based Linux users to install pip module and uninstall Flatpak calibre in error window
- use Flashtext to search lemmas and phrases, remove NLTK

Flashtext is way faster than regex, now word wise can be created instantly and don't need to install dependencies. So mac users no longer need to install python.
xxyzz is offline   Reply With Quote
Reply

Tags
worddumb, x-ray


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 523 07-15-2025 06:45 PM
[GUI Plugin] CalibreSpy DaltonST Plugins 245 08-18-2024 09:33 PM
[GUI Plugin] Manga plugin mastertea Plugins 6 01-06-2022 02:43 AM
[GUI Plugin] Save Virtual Libraries To Column (GUI) chaley Plugins 14 04-04-2021 05:25 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 07:12 PM.


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