Giter Site home page Giter Site logo

laorange / paper-assistant Goto Github PK

View Code? Open in Web Editor NEW
321.0 1.0 21.0 961 KB

论文工具:文本复制工具 (智能删除空行空格乱码)

Home Page: https://laorange.github.io/paper-assistant/

License: GNU Affero General Public License v3.0

HTML 1.17% Vue 60.56% TypeScript 34.79% CSS 3.47%
github-pages vue3-typescript

paper-assistant's Introduction

📝论文工具

在线使用(GitHub) | 在线使用(Gitee) | uTools插件(@swjqq)

更新日志 | 视频介绍 | 鼓励作者

功能

(1) 文本复制工具

😣在复制PDF中的文字时,有时会出现莫名其妙的空格、换行、全角字符或乱码。

😫如果手动删改,工作量巨大;如果直接全文替换,可能会误删英文单词间的空格。

💡开发这个项目正是为了解决这些问题。

🚩如何使用?可直接在线使用后点击"使用说明",或前往B站查看视频介绍

(2) 英文语法检查

✍如果您在电脑上在线使用,在输入英文时,将为您检查语法 (基于Grammarly)。

😭Grammarly的开发者接口已于2024年1月10日废弃,目前该功能已无法使用,详情可见其官网公告

(3) 其他辅助功能

  • 删除引用角标,如: [1], [2, 3], [4-7], (1), (2, 3), (4-7)...
  • 全角字符转半角字符
  • 批量替换字符
  • 汉字繁简转换
  • 中英文标点转换
  • ······

Q&A

为什么不直接查找替换?

出现的若是空格的话,直接替换会误删英文单词中的空格;因此需要用到正则表达式来替换,有较高门槛。

仅粘贴文本,复制到文本文档/记事本?

仅粘贴文本、复制到记事本是去除格式,但并不能去除空行空格乱码这样的干扰内容,因为这些是"内容"而不是"格式"。

复制到浏览器地址栏?

浏览器地址栏本质上是一个单行无格式输入框,确实可以去除换行符,但并不能处理空格、乱码和全角字符。

为什么不推荐使用OCR?

有条件复制粘贴的话还是不太建议用OCR,识别不准确的话会产生新的麻烦。

未来考虑加入翻译功能吗?

不考虑。若需PDF翻译功能,建议使用知云文献

空行空格乱码等痛点是在哪些软件出现的?

空行素材来自Acrobat,空格素材来自Zotero,乱码素材来源于CAJViewer,全角字符素材来自知云文献,重复换行素材来源于Typora

还有哪些具有相似功能的程序?

  1. 若使用quicker,可搜索安装英文规范粘贴中文规范粘贴插件。
  2. copy++项目地址 | 官方网站

致开发者

😉为方便看代码的朋友,我把文本处理的方法都单独整理成了一个文件,并写了注释、规范了接口:

// handlers.ts
export interface TextHandler {
    activate: boolean,  // 默认是否启用
    description: string,  // 对该功能的描述
    executor: (text: string) => string  // 功能函数
}

😄若您有好的想法,可以在以上内容的基础上修改。欢迎在GitHub仓库上发起 pull request😊

🥳若您觉得本项目还不错,可以在页面右上角为本项目点上一颗⭐~

Star History Chart

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.