Skip to content

feat: batch recursive translation #793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zpofrp opened this issue Mar 22, 2025 · 1 comment
Open

feat: batch recursive translation #793

zpofrp opened this issue Mar 22, 2025 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed Normal priority

Comments

@zpofrp
Copy link

zpofrp commented Mar 22, 2025

在什么场景下,需要你请求的功能?

对于一些论文需要分目录进行存放,目前的功能可实现整个文件夹的翻译,但是如果我的文件夹下面还有子文件夹,对于子文件夹的文件翻译后,还是指能存在我指定(如-o ./trans)的文件夹中,我希望有个功能可实现,子文件夹中的文件放入我指定目录下面的子文件夹中,孙文件夹中的文件放入我指定目录下的孙文件夹下面,这样翻译后的文件的存放结构与我原始文件就是匹配的。

解决方案

看能否在PDF2zh中集成这个功能,对于科研狗来说,很有用啊。

其他内容

No response

@zpofrp zpofrp added the enhancement New feature or request label Mar 22, 2025
@awwaawwa awwaawwa added help wanted Extra attention is needed good first issue Good for newcomers Normal priority labels Mar 22, 2025
@reycn reycn changed the title 递归文件夹翻译 feat: batch recursive translation Mar 24, 2025
@reycn
Copy link
Collaborator

reycn commented Apr 30, 2025

是一个很实用的功能,但这个需求相对边缘。考虑到暂无人贡献,暂时不在 pdf2zh 主程序提供吧。

如确有需要可以直接让 gemini 写一个 bash 递归脚本实现(<3 mins)。注意指定翻译后的文件输出目录,通过 pdf2zh ... -o $dir 这个指令。详情参见 https://github.com/Byaidu/PDFMathTranslate#advanced-options

@reycn reycn closed this as completed Apr 30, 2025
@reycn reycn reopened this Apr 30, 2025
@reycn reycn closed this as completed Apr 30, 2025
@reycn reycn reopened this Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed Normal priority
Projects
None yet
Development

No branches or pull requests

3 participants