Open
Conversation
🐛 Bug修复: - 修复tex_validator.py中跨盘符路径问题,改为直接复制图片到临时目录 - 修复main.py中非交互式终端的无限循环问题 ✨ 新功能: - 添加--ppt-language参数,支持多语言PPT生成(zh/ja/de/fr/es/ko/ru) - 创建content_translator.py模块,实现智能学术翻译 - 创建content_translation.py提示词,保留技术术语和专业格式 - 移除tex_generator.py中的强制英文生成,支持动态语言切换 📝 改进: - 翻译自动保留作者姓名、技术术语、数学公式、LaTeX命令 - 中文自动使用xelatex编译器和ctex包 - 翻译失败时自动回退到英文版本 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
📝 文档更新: - 在Features部分添加多语言支持说明 - 添加"Generate Multilingual Presentations"使用示例 - 更新命令行选项说明,详细解释--ppt-language参数 - 更新输出结构,说明翻译文件的位置 - 在系统架构中添加Content Translator组件 - 扩展语言支持部分,详细列出8种支持的语言 - 说明翻译功能的特性(保留技术术语、自动回退等) ✨ 新增内容: - 8种语言的具体使用示例(zh, ja, de, fr等) - 翻译功能的技术细节和特性 - 区分--language和--ppt-language的用途 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 新增功能
- prompts/content_translation.py - 学术翻译提示词模板
- modules/content_translator.py - 内容翻译器模块
- main.py - 添加 --ppt-language 参数,集成翻译步骤
- modules/tex_generator.py - 移除强制英文生成,支持多语言
💡 使用方法
✨ 功能特点
- 翻译标题、正文、图表标题、表格内容
- 保留作者姓名、技术术语、数学公式、代码块
- 保留LaTeX命令和图片路径引用
- 中文自动使用xelatex编译器和ctex包
- 其他语言使用pdflatex编译器
- 字体和排版自动优化
- 翻译失败时自动回退到英文版本
- 不中断主流程
- 详细的日志输出