Skip to content

english reading tools [提取英文pdf 文档单词及翻译 ]

Notifications You must be signed in to change notification settings

duanguoxue/english-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

english-helper

english reading tools

系统环境

centos 7

yum install pdftotext  # 或者 yum install poppler-utils

使用方法

pdf 使用 pdftotext 转换为 text文本单词, 使用 ECDICT 查询英文单词释义

pdftotext my_en_paper.pdf dest_en_words.txt
cat dest_en_words.txt | awk '{for (i=1; i<NF;i++) print $i}'  | sort -n | uniq -c  > en_uniq_words_list.txt
python3 trans_words.py en_uniq_words_list.txt > result_word_zh.txt
# 清理 中间文件

About

english reading tools [提取英文pdf 文档单词及翻译 ]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published