Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karim23657/Subtr
This user-friendly tool seamlessly translates SRT and DFXP subtitles to any language, making it the ideal choice for handling subtitle sentence breaks across tracks. Experience the ease and accuracy of effortless subtitle translation.
https://github.com/karim23657/Subtr
google-translate subtitle-translation subtitle-translator translate
Last synced: 3 months ago
JSON representation
This user-friendly tool seamlessly translates SRT and DFXP subtitles to any language, making it the ideal choice for handling subtitle sentence breaks across tracks. Experience the ease and accuracy of effortless subtitle translation.
- Host: GitHub
- URL: https://github.com/karim23657/Subtr
- Owner: karim23657
- Created: 2023-11-17T18:00:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-03T16:08:30.000Z (9 months ago)
- Last Synced: 2024-05-28T04:57:18.602Z (6 months ago)
- Topics: google-translate, subtitle-translation, subtitle-translator, translate
- Language: HTML
- Homepage:
- Size: 31.3 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Subtr
Effortless Subtitle Translation is a user-friendly tool that seamlessly translates SRT and DFXP subtitles.It's the ideal choice for handling subtitle sentence breaks across tracks, ensuring smooth and accurate translations.
for exp. :
```
8
00:01:10,374 --> 00:01:12,576
Adam is paying9
00:01:12,776 --> 00:01:15,655
attention to the teacher.
```We translate ✅:
```
8
00:01:10,374 --> 00:01:12,576
آدم حواسش به9
00:01:12,776 --> 00:01:15,655
معلم است.
```But others ❌:
```
8
00:01:10,374 --> 00:01:12,576
آدام پرداخت می کند9
00:01:12,776 --> 00:01:15,655
توجه به معلم
```# How to use
put `subtr.py` next to your code , then :
```python
from subtr import SubTrtranslator = SubTr()
translator.srt('Avengers Infinity War 2018.srt')
translator.translate(dest_lang="fa" , src_lang="en",save_path='Avengers Infinity War 2018-fa.srt')
```or dfpx :
```python
from subtr import SubTrtranslator = SubTr()
translator.dfpx('67_000_Dreams_.html')
translator.translate(dest_lang="fa" , src_lang="en",save_path='67_000_Dreams_fa.srt')
```or simply use pip to install :
```shell
pip install git+https://github.com/karim23657/Subtr
```