Translate Chinese PowerPoint presentations (.pptx) to English with professional business styling.
This skill translates Chinese PPTX files to English using any OpenAI-compatible LLM endpoint (local or cloud). It preserves all non-text content while:
python-pptx, requestsIf you're running this skill within Qoderwork, models are already available. Just run:
bash
pip install python-pptx requests
python .qoder/skills/translate-ppt/scripts/translate_ppt.py input.pptx --api-base <qoderwork-endpoint> --model <available-model>
Install Ollama: Download and install from https://ollama.com
Pull a recommended model: bash
ollama pull qwen2.5:14b
Install Python dependencies: bash
pip install python-pptx requests
Run translation: bash
python .qoder/skills/translate-ppt/scripts/translate_ppt.py input.pptx
If output path is not specified, defaults to <input_name>_en.pptx.
Run with your cloud endpoint:
bash
python .qoder/skills/translate-ppt/scripts/translate_ppt.py input.pptx --api-base https://api.openai.com/v1 --api-key sk-xxx --model gpt-4o
ElementFontStyleTitlesCalibriBoldBody textCalibriRegular
Translation quality varies significantly between models. Choose based on your setup:
Note for Qoderwork users: You can use whatever models are already configured in your client environment — no additional setup required.
ModelSizeQualitySpeedCommandqwen2.5:14b~9GB★★★★★ Best for ChineseFastollama pull qwen2.5:14b``qwen2.5:7b~4.7GB★★★★ Good balanceFasterollama pull qwen2.5:7b``llama3.1:8b~4.7GB★★★ DecentFastollama pull llama3.1:8b``gemma2:9b~5.4GB★★★ DecentFastollama pull gemma2:9b``qwen2.5:3b~2GB★★ BasicFastestollama pull qwen2.5:3b
Tip: For best results with Chinese-to-English business content, Qwen2.5 14B is strongly recommended as it has excellent Chinese language understanding. Smaller models may produce less accurate or less natural translations.
OptionDescriptionDefault--fontOverride default fontCalibri--modelLLM model to useqwen2.5:14b--api-baseOpenAI-compatible API base URLhttp://localhost:11434/v1--api-keyAPI key (optional, not needed for local models)None--batch-sizeText segments per API call20--verbose, -vEnable detailed loggingFalse
IssueSolutionConnection refusedCheck your API endpoint URL. For Ollama: ensure ollama serve is running. For cloud APIs: verify the URL is correct.Model not foundVerify the model name is correct for your endpoint. For Ollama: ollama pull <model>Corrupt PPTXVerify file opens in PowerPoint; try saving as new file firstFont not foundEnsure Calibri is installed on your systemAPI rate limitsReduce --batch-size or add delay between calls
See reference.md for detailed API documentation and architecture.