MaKTaiL / gemini-srt-translator

Python tool for translating subtitles using Google Gemini AI
https://pypi.org/project/gemini-srt-translator/
MIT License
8 stars 2 forks source link

Feat: Add Right-to-Left Language Support #5

Closed MaKTaiL closed 3 days ago

MaKTaiL commented 3 days ago

This pull request introduces support for right-to-left (RTL) languages in the Gemini SRT Translator. Significant changes include the detection of RTL text and the embedding of RTL markers to ensure proper display in subtitle files. Special thanks to @Theamoz for helping. Key improvements are as follows:

Impact:

This change will enable the translation of subtitles into RTL languages, ensuring they are correctly displayed in media players. It also improves the robustness of the translation process, handling quotas and errors more effectively.