sinedie / SRTranslator

SRT files translator
Do What The F*ck You Want To Public License
219 stars 27 forks source link

Could you make an option to not wrap the text at all? I have many files where the sub is perfectly spaced and I would like to keep the original formatting. #40

Closed Morv55555 closed 1 year ago

sinedie commented 1 year ago

When a text is translated you can get a shorter or longer sentence and the original formatting most probably will be wrong.

Still, there is a way to avoid wraping:

In the CLI, use the -w WRAP_LIMIT, --wrap-limit WRAP_LIMIT flag and set it to a really high value, like 1000.

In the code, just don't call srt.wrap_lines() or call it with a high value as argument

Morv55555 commented 1 year ago

Thanks!