do-something-for-fun / thesis-helper Goto Github PK
View Code? Open in Web Editor NEW毕业论文小助手:一个翻译英文并将中文结果显示在侧边的PDF阅读器
毕业论文小助手:一个翻译英文并将中文结果显示在侧边的PDF阅读器
pip install -r requirements.txt
安装包文件,如果未指定版本,会默认安装最新版本。而googletrans此时(2020.6.16)已是3.0.0版本,里面googletrans.compat模块已移除。pip install googletrans=2.4.0
I've developed a similar program for similar reasons.
However, the translation API blocks your IP address after several translation attempts.
This also happens when you use translate.googleapi.com or translate.google.cn.
Haven't tested for baidu translator.
My advice is, use your web browser to do the translation.
May end up with a better look right?
My try is here(using chrome): https://github.com/dendenxu/Chrome-Based-Thesis-Translator
Download the thesis-helper-windows-v2.1'
and the directory is C:\Users\12345\Downloads\Compressed\thesis-helper-windows-v2.1\thesis-helper
execute the .exe will show error
System: Windows
Traceback (most recent call last):
File "thesis-helper.py", line 233, in
File "thesis-helper.py", line 165, in init
File "thesisUtils\text_filter.py", line 11, in init
File "thesisUtils\text_filter.py", line 14, in __loadDictFromTxt
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Windows/system32/dictionary/words_alpha.txt'
[11980] Failed to execute script thesis-helper
I‘m just wondering if it's possible to use web stack as GUI instead of PyQt5.
如果作者考虑,那是再好不过的,如没有也不打紧。
安装完整,正常打开,拖拽文件进入显示栏无反应,命令行报错:
[12972:775:1105/211956.349852:ERROR:permission_manager_qt.cpp(82)] Not implemented reached in ProfileAdapter::PermissionType QtWebEngineCore::toQt(content::PermissionType)Unsupported permission type: 13
不知是否是我用法有问题。
PS E:\Software\PaperTools\thesis-helper> python .\thesis-helper.py Traceback (most recent call last):
File ".\thesis-helper.py", line 9, in
from PyQt5.QtWebEngineWidgets import QWebEngineView
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'
PS E:\Software\PaperTools\thesis-helper> python -V Python 3.6.3 :: Anaconda custom (64-bit)
PS E:\Software\PaperTools\thesis-helper> pip show pyqt5 Name: PyQt5
Version: 5.13.2
Summary: Python bindings for the Qt cross platform UI and application toolkit
Home-page: https://www.riverbankcomputing.com/software/pyqt/
Author: Riverbank Computing Limited
Author-email: [email protected]
License: GPL v3
Location: c:\software\anaconda3\lib\site-packages
Requires: PyQt5-sip
Required-by: PyQtWebEngine
PS E:\Software\PaperTools\thesis-helper>
Maybe give more explanation when a single word is selected.
If you are using the F0 free trial, the upbound would be 2000,000, and this is a fairly small amount for multiple users. Try using free translating APIs.
采用 pip freeze > requirements.txt
来导出python依赖信息,不然各个版本不一致,无法运行成功
为什么最近用不了了,不翻译。
As you see, the word, in the end, will stick with the beginning word in the next line.
@QSCTech-Sange
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.