A simple translator for any SubRip(.srt) files.
Project description
srt_trans
Translage any SubRip file from any source language to any target language, and merger them into the target SubRip(.srt) file.
How to usage:
Usage: srt_trans test_file.srt [-src_lang en -dest_lang zh-CN -proxy http://youdomain:your_port]
Example:
srt_trans ./test_video.mkv
srt_trans ./test_video.mkv -src_lang en -dest_lang zh-TW
srt_trans ./test_video.mkv -src_lang en -dest_lang zh-CN -proxy http://127.0.0.1:8118
srt_trans ./test_video.mkv -track_number 2
srt_trans ./test_video.mkv -src_lang en -dest_lang zh-TW -track_number 2
srt_trans ./test_video.mkv -src_lang en -dest_lang zh-CN -proxy http://127.0.0.1:8118 -track_number 2
srt_trans test_file.srt
srt_trans test_file.srt -src_lang en -dest_lang zh-TW
srt_trans test_file.srt -src_lang en -dest_lang ja
srt_trans test_file.srt -src_lang en -dest_lang zh-CN
srt_trans test_file.srt -src_lang en -dest_lang fr -proxy http://127.0.0.1:8118
Package
pip install wheel
python setup.py sdist bdist_wheel
Publish to pypi
pip install twine
twine upload dist/*
Installation
srt_trans is available on pypi. To intall it you can:
sudo pip install srt_trans
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
srt_trans-1.0.8.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for srt_trans-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a77e36e52af5172f705802a36e0bf52e4fd6b01dba1f6568d414f30381dbb35 |
|
MD5 | ec18108b79096d0511ae74477e736bbf |
|
BLAKE2b-256 | f80c008d92b5c7c42051f536b5fc9fbd1b0c0eae9590b5ffaef9889c49af2442 |