(python3 should be installed by default in Ubuntu, but you can type python3 to verify)
Code: Select all
sudo apt install python3-pip
(pip is not installed by default, no idea why)
Code: Select all
pip install stanza
(if this hangs (known pip/gnome-keyring bug on Ubuntu, apparently), adding "export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring" to your .bashrc seems to fix the problem).
Code: Select all
python3
and at the Python prompt, type
Code: Select all
import stanza
and then
Code: Select all
stanza.download('es')
(the es is the language code for Spanish; if you want a different language model, replace the language code)
(repeat as needed for however many languages you want supported)
type
Code: Select all
quit()
Code: Select all
sudo apt install npm
This should install both npm and node.js together; type npm --version and node --version to verify.
git should be installed by default in Ubuntu, but you can type git --version to verify.
Code: Select all
git clone https://github.com/mcthulhu/jorkens.git
(this downloads the source code from GitHub and puts it in a "jorkens" folder)
Code: Select all
cd jorkens
Code: Select all
rm package-lock.json
Code: Select all
npm i
(this will install all the dependencies listed in package.json; ignore the irrelevant error messages at the end about electron-builder)
Code: Select all
npm start
This last command is what runs Jorkens, and this is the only command needed to run it again later. After Jorkens opens, use File/Open file to open an epub book. In subsequent sessions, the last book opened should be resumed automatically.
You'll probably want to import a dictionary as one of your first steps, since local dictionary lookups are faster than the online ones. See the Wiki on GitHub for some tips on sources of dictionary data, and feel free to add other suggestions.