Giter Site home page Giter Site logo

pytxter's Introduction

简介

这是一个基于 PythonPyQt5 的 txt文本/小说编辑器。它不仅提供了记事本的所有功能,同时还提供了章节目录的支持。此外,它还为 txt 小说编辑和格式化加入了一键格式化清除空白行章节名格式化中英标点纠正屏蔽字替换等特色功能。

软件截图:

工具栏介绍

功能介绍

一键格式化

一键格式化用于对排版混乱的txt小说文本进行排版整理,使之适合手机阅读。此功能特别适合于那些从网上复制的、未分好段落的文本,以及其他从网上下载的排版混乱的txt小说文本。
此功能可以选择强制自动分段(默认判断界限为 100 字符)。当然它最终是根据句子结尾的标点符号来执行分段的,所以即使当前段的总字符数超过了 100,只要遍历器还没有碰到可作为分段的标点,那也不会自动分段。

一键格式化功能演示:

清除空白行

顾名思义,就是清除文本中的空白行。

中英标点纠正

此功能会尝试对中英标点进行纠正,具体替换类型如下:

英文标点 中文标点
,
.
!
?

功能截图

打开文件和点击目录跳转功能演示:

文本格式化功能演示:

待完善功能

  • 目录项自动定位到光标位置所对应的章节名
  • 实现"屏蔽字替换功能"
  • 为 Sigil 导入提供格式优化

pytxter's People

Contributors

ylin97 avatar

Stargazers

 avatar  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.