Convert English subtitle to Persian subtitle
for first use install depencency from requirements with run this command:
pip install -r requirements.txt
list of dependencies:
- googletrans
- colorama
$ git clone https://github.com/kiahamedi/ConvertSrt2Per.git
$ cd ConvertSrt2Per/
$ python ConvertStr2Per.py input.srt out.srt
$ cd /tmp
$ git clone https://github.com/kiahamedi/ConvertSrt2Per.git
$ cd ConvertSrt2Per/
$ mv ConvertSrt2Per.py convertSrt2Per
$ chmod +x convertSrt2Per
$ sudo cp convertSrt2Per /usr/local/bin/
$ convertStr2Per input.srt out.srt
cd /tmp && git clone https://github.com/kiahamedi/ConvertSrt2Per.git && cd ConvertSrt2Per && mv ConvertSrt2Per.py convertSrt2Per && chmod +x convertSrt2Per && sudo cp convertSrt2Per /usr/local/bin/
now use this command for run:
convertStr2Per input.srt out.srt
use this command for uninstall:
sudo rm /usr/local/bin/convertSrt2Per
this script work with python 3
1-Fork it!
2-Create your feature branch: git checkout -b my-new-feature
3-Commit your changes: git commit -am 'Add some feature'
4-Push to the branch: git push origin my-new-feature
5-Submit a pull request