Giter Site home page Giter Site logo

funye's Introduction

FunYe

‼️ 网易翻译的接口挂了 T_T

所以用不了

screenshot

FunYe是一个基于Textual框架的TUI翻译程序(终端程序)

使用

Windows

这里有Windows上的可执行文件,下载到本地,到Powershell中切换到文件所在目录下,输入以下命令即可使用。(实测在windows自带的终端模拟器无法完整渲染,最好使用Windows Terminal或者好点的终端模拟器)

.\FunYe.exe

Linux

这里有Linux上的可执行文件,下载到本地,到终端中切换到文件所在目录下,输入以下命令即可使用。

chmod +x ./FunYe && ./FunYe

因为程序有使用系统剪切板的功能,Windows上可能会报毒,杀毒软件中允许即可

如果下载的可执行文件无法运行,需要自行重新编译

快捷键

  • Enter 提交翻译内容
  • up 上一个输入记录
  • down 下一个输入记录
  • ESC 退出程序
  • ctrl+l 清空输入框中的内容
  • ctrl+y 拷贝当前的翻译结果

编译

Windows

.\bin\install.bat # 安装依赖
.\bin\make.bat # 执行编译

Linux

sh ./bin/install.sh # 安装依赖
sh ./bin/make.sh # 执行编译

make也可以直接make

需要在项目根目录下运行脚本编译

开发工具

tools目录下有一些开发脚本

python ./tools/devtools.py -h # 查看如何使用

bin目录下有一些命令脚本

  • install.shinstall.bat 安装项目依赖,编译前一定要先执行
  • make.shmake.bat 执行编译
  • remove.shremove.bat 移除项目所有依赖、删除虚拟环境、清理pyc缓存文件
  • run.shrun.bat 启动一下FunYe

toolsbin 目录下的脚本都要在项目的根目录下运行

配置颜色样式

config/style.py中可以进行颜色的调整,修改后重新编译一下即可。

问题

这个程序有些问题

  1. 在网络比较慢的时候,会卡住,因为在等待网络请求,界面无法重新更新渲染
  2. 输入中文不太友好,输入法的光标会不在预料之中,虽然Textual新版本出了input组件,但是仍没有很好的支持
  3. 终端模拟器的兼容不是很好,像windows自带的终端就不能很好的渲染

支持

funye's People

Contributors

erica-iris avatar kaze-k avatar

Stargazers

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