otsaloma/gaupol

Empty lines remain after correction

mlk71075 opened this issue · 4 comments

Hello,

Ubuntu Impish (21.10)
Gaupol 1.9-1
Aeidon 1.9-1

Tools/Correct Texts/Remove empty lines checked.
Zero empty lines removed

It only removes subtitles that are blank after corrections, so primarily it's intended for use when removing hearing impaired subtitles, if e.g. everything between [...] is removed and there's nothing else left, then the whole subtitle will be removed as well.

There isn't currently a feature to remove blank subtitles otherwise, it hasn't been a common issue to my knowledge.

One way to do it would be to first do a search-replace in Gaupol: Search for \A\Z and replace with []. \A\Z is basically a regular expression for a blank string. You need to check the "Regular expression" box in the dialog. Then you can use the correct texts feature to remove hearing impaired stuff between square brackets and resulting empty subtitles will be removed as well. This will work as long as there are no brackets used elsewhere.

And, generally speaking, the reason why I say is that it's not a common issue is that blank subtitles don't usually do any harm. Playback should work fine, you can leave them in the file. But, if they somehow bother when editing or something, try the above.