Split an .srt subtitle file into batches of 5000 characters to help machine-translate it with deepl
Go to file
2022-04-20 19:24:38 +12:00
linesplit.php initial commit 2022-04-20 19:05:39 +12:00
README.md add README.md 2022-04-20 19:24:38 +12:00

srt-split-for-deepl

Split an *.srt subtitle file into batches of 5000 characters to help machine-translate it with deepl.

The deepl API would be a much more suitable solution for translating long subtitle files, but it's not available in all countries. The next best thing to do is copy in batches of 5000 characters. This script uses xclip to make it require three key-chords per 5000 characters - paste in current batch; copy translated batch; press enter in terminal window.