Giter Site home page Giter Site logo

txt2epub's Introduction

txt2epub

安装

软件需要下载源码自行编译、构建、安装,软件暂时没有发布可执行文件或发布到 crates.io 的任何计划

在下载完成后,需用使用 rust 的 cargo 工具执行安装,安装 cargo 参见文档

切换终端工作目录到源码目录,并运行安装命令:

cargo install --path .

已知问题

已知问题不会解决,此程序运行环境为 unix,windows 等系统暂时没有支持计划

文件编码

程序会假定输入的文件名和文件内容为 utf-8 编码

如果文件名或内容使用其他编码需要先转换为符合 utf-8 的编码

由于部分系统,例如:windows,中文件名可能含有部分无法识别的字符,在运行前需要确保文件名不存在非法字符

转换文件内容在 unix like 下可以使用 enca 命令转换为 utf-8:

enca -L zh_CN -x UTF-8 *

文件路径

程序使用的 epub 标准路径分隔符为 /,在 unix like 系统中可以正确处理

但在其他系统中,例如:windows 中分隔符使用 \\,这可能导致生成的文件出现路径错误

出现此问题的原因主要为 epub 内部统一使用 / 作为文件路径,在使用其他字符分割符时,可能识别错误

例如 windows 中的 test\a.txt 路径会被 epub 内部当作名称为 test\a 的 txt 文件

txt2epub's People

Contributors

vuhe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.