EasyTranslator

Weekly Pick

基于OpenAI API的命令行翻译工具,支持多种文件格式(如txt、pdf、docx等)的翻译,提供批量处理和调试选项,简化多语言文本翻译流程。

Check out EasyTranslator on CurateClick

• Copy the embed code to showcase this product on your website

• Share on X to spread the word about this amazing tool

:bookmark_tabs: 介绍利用 OpenAI API 打造的命令行工具,支持多种格式文件的翻译,包括 .txt、.pdf、.docx、.md、.mobi 和 .epub。 轻松快捷地翻译您的文本文件,让语言不再成为阻碍。## :running: 使用方法bashpython easy_translator.py filename [--show] [--tlist] [--azure] [--test]``````bashpython translate_all.py> 请在.md文档中没有结束标点符号的位置添加英文格式的句号.###### :clap: 说明- filename: 指定要翻译的文件名,支持 txt、pdf、docx、epub、mobi 格式- --show: 显示文本翻译过程- --tlist: 使用译名表- --azure: 使用 Azure 调用 OpenAI API- --test: 用于测试翻译效果,翻译三段文字,通常用于调试程序- translate_all.py:使用脚本 translate_all.py 批量翻译文本 - 首先,请确保文件名的格式为 01_filea.txt, 02_fileb.txt 等,在每个文件名前添加排序前缀 - 其次,请将您想要翻译的文本放置在 book 目录中,如果需要,可以在源代码中修改此目录 - 最后,请注意 Linux 和 Windows 处理事务的方式不同,为了确保正确执行,请根据您的操作系统进入源代码,并取消或注释掉必要部分###### :pushpin: 举例bashpython easy_translator.py ./book/profile.txt``````bashpython easy_translator.py ./book/profile.txt --azure``````bashpython easy_translator.py ./book/profile.pdf --show``````bashpython easy_translator.py ./book/profile.pdf --azure --show``````bashpython easy_translator.py ./book/profile.mobi --show --tlist``````bashpython easy_translator.py ./book/profile.mobi --show --tlist --azure``````bashpython easy_translator.py ./book/profile.epub --show --tlist --test``````bashpython easy_translator.py ./book/profile.epub --show --tlist --azure --test## :scroll: 仓库及个人联系方式仓库:EasyTranslator领英:LinkedinGithub:Github

Latest Weekly Picks

make.ink favicon
Weekly Pick

Your AI tattoo generator for pro-grade concepts

Leo Wade
sellfy.com favicon
Weekly Pick

A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.

Maris
www.videotoblog.ai favicon
Weekly Pick

Convert videos into awesome blog posts.

Video To Blog
www.sellerpic.ai favicon
Weekly Pick

SellerPic is the all-in-one AI design platform for e-commerce

SellerPic
fastimage.ai favicon
Weekly Pick

Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.

Fast AI Team
linkedinpro.daisy.so favicon
Weekly Pick

AI-powered tool that transforms casual photos into professional LinkedIn headshots instantly. No photographer needed—just upload and download.

Gabriel
crevas.ai favicon
Weekly Pick

Crevas unifies Veo 3, Sora 2, Nano Banana and more into one intuitive canvas — so filmmakers can script, prompt, and generate cinematic stories without switching tools or losing consistency.

Spark Alpha
fotominiatur.com favicon
Weekly Pick

AI Foto Edit - Text to Image & Image Edit

foto miniatur