Skip to main content

A PyQt5 application for converting Chinese novel txt files into Kindle mobi files.

Project description

Create a simple PyQt5 application for converting Chinese txt files into mobi files. It wraps txt2mobi3. Since it supports Chinese only, the documentation and the code comments are written in Chinese.

1. 安装和运行

1.1. 从PyPI安装和运行:

$ pip install txt2mobi3_app
$ txt2mobi3_app

1.2. 从安装包:

  1. Linux

下面以Ubuntu 16.04LTS为例:

$ sudo dpkg -i target/txt2mobi3_app.deb
  1. MacOS

TODO

  1. Windows

TODO

2. 产生安装包

这里我们使用fbs来产生Linux、MacOS和Windows上的安装包。

2.1. Linux

下面以Ubuntu 16.04LTS为例:

  1. 安装fbm

$ sudo apt install ruby ruby-dev rubygems build-essential
$ sudo gem install --no-ri --no-rdoc fpm
  1. 产生安装包

$ python -m fbs installer

生成的安装包txt2mobi3_app.deb会在target目录中。

如果想产生一个可以单独运行的可执行文件,那么就运行下面这个fbs命令。

$ python -m fbs freeze

生成的可执行文件位于target/txt2mobi3_app目录中。将target/txt2mobi3_app目录复制到别的机器上后就可运行其中的可执行文件。

2.2. MacOS

TODO

2.3. Windows

  1. 如果是Windows 10,你可能需要安装Windows 10 SDK

  2. 安装NSIS并将其安装目录添加到PATH环境变量中。

  3. 产生安装包

$ python -m fbs installer

生成的安装包txt2mobi3_appSetup.exe.ext会在target目录中。

如果想产生一个可以单独运行的可执行文件,那么就运行下面这个fbs命令。

$ python -m fbs freeze

3. README.rst

README.rst is generated from README.md via pandoc.

$ pandoc --from=markdown --to=rst --output=README.rst README.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

txt2mobi3_app-0.1.7.tar.gz (23.8 MB view details)

Uploaded Source

Built Distribution

txt2mobi3_app-0.1.7-py3-none-any.whl (23.9 MB view details)

Uploaded Python 3

File details

Details for the file txt2mobi3_app-0.1.7.tar.gz.

File metadata

  • Download URL: txt2mobi3_app-0.1.7.tar.gz
  • Upload date:
  • Size: 23.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for txt2mobi3_app-0.1.7.tar.gz
Algorithm Hash digest
SHA256 761650aef1ebca326115d5af8959fb03022e701747d1fabd5028a4d44c35cf5a
MD5 0c8134cc419cd4a3831016925ea3627e
BLAKE2b-256 5504b6cb20ec31542f9fcb5fc521bda4b9aeb39c27a77e17658dd120f8023800

See more details on using hashes here.

File details

Details for the file txt2mobi3_app-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: txt2mobi3_app-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 23.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.6

File hashes

Hashes for txt2mobi3_app-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e5574031ecd0e1203a1e301c55b31e8779df82addf167a1f8b0438a136f431fa
MD5 1ff21d88655d22e2002351cf42268551
BLAKE2b-256 3ea74ea4e8ba1ecce86536aab30b0e8f4a0accf63f355220b57f8fe35521b605

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page