Skip to content

Commit

Permalink
Mobi: update ebook_mobi.py and README.md, #299
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jun 7, 2021
1 parent bf7db71 commit 923ace8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ Feature-specific Requirements
+ `sudo pip3 install PyICU`
+ PyICU >= 1.5 is required, see [doc/pyicu.md](./doc/pyicu.md) for more details.

- **Writing to Kobo E-Reader Dictionary**

`sudo pip3 install marisa-trie`

- **Reading from Zim** (see [#228](https://github.com/ilius/pyglossary/issues/228))

`sudo pip3 install libzim`
Expand All @@ -202,6 +198,15 @@ Feature-specific Requirements
First try converting your MDX file, if failed (`AssertionError` probably),
then try to install [LZO library and Python binding](doc/lzo.md).

- **Writing to Kobo E-Reader Dictionary**

`sudo pip3 install marisa-trie`

- **Writing to Mobipocket (`.mobi`) E-Reader file**

Install [KindleGen](https://wiki.mobileread.com/wiki/KindleGen)



**Using Termux on Android?** See [doc/termux.md](./doc/termux.md)

Expand Down
5 changes: 3 additions & 2 deletions pyglossary/plugins/ebook_mobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

enable = True
format = "Mobi"
description = "MOBI E-Book"
description = "Mobipocket (.mobi) E-Book"
extensions = (".mobi",)
extensionCreate = ".mobi"
sortOnWrite = ALWAYS
Expand Down Expand Up @@ -138,7 +138,8 @@ def write(self):

# run kindlegen
if not kindlegen_path:
log.info(f"Not running kindlegen, the raw files are located in {filename}")
log.warn(f"Not running kindlegen, the raw files are located in {filename}")
log.warn(f"Provide KindleGen path with: --write-options 'kindlegen_path=...'")
return

name = self._glos.getInfo("name")
Expand Down

0 comments on commit 923ace8

Please sign in to comment.