SubtitleEdit / subtitleedit

the subtitle editor :)
http://www.nikse.dk/SubtitleEdit/Help
GNU General Public License v3.0
8.4k stars 891 forks source link

Problem with Revome text for HI function #8843

Open m0ck69 opened 1 week ago

m0ck69 commented 1 week ago

I have a problem with Revome text for HI. I want to remove song lyrics which are typically between ♬,♪,♫ signs but SE this also removes normal lines as well . Example:

480
00:39:21,400 --> 00:39:27,900
- Some text here. 
♫ <i>Song lyrics here</i> ♫

481
00:39:27,900 --> 00:39:30,390
Some text here.

482
00:39:30,390 --> 00:39:32,120
♬Song lyrics here♬
Some text here.

483
00:39:32,120 --> 00:39:34,160
Some text here....

Turns into:

1
00:39:27,900 --> 00:39:30,390
Some text here.

2
00:39:32,120 --> 00:39:34,160
Some text here...

And I want:

480
00:39:21,400 --> 00:39:27,900
- Some text here. 

481
00:39:27,900 --> 00:39:30,390
Some text here.

482
00:39:30,390 --> 00:39:32,120
Some text here.

483
00:39:32,120 --> 00:39:34,160
Some text here....

What am I doing wrong? test.zip

RAMoynihan commented 1 week ago

Seems to work how you want for me. But are you using the "remove text if it contains" function on the HI form instead of the "remove text between" function?

And I noticed your lines 480 and 482 use different music note symbols.

m0ck69 commented 1 week ago

Clipboard01

Yes, I use "remove text if it contains". I don't use "remove text between" because I can only add one character there (one music note). The subtitles I work on use different symbols like ♬, ♪, and ♫ within the same .srt file. These are fan-made subs, so people use different or unusual symbols to indicate lyrics.

RAMoynihan commented 1 week ago

Ah. It looks like SE is working as designed, then. What would probably work better for you is if SE had an additional option in the “remove text between” list that referred to the special chars you declared in the “remove text if it contains” list.

Ding-adong commented 1 week ago

"remove text if it contains" should be "remove lyrics". Simple as that no need to select musical symbols, just refer to the list of symbols in option - tools "♪,â™,,,#,*,¶,カ,§,♫,~,"

niksedk commented 1 week ago

Sorry, SE does not support this. Also, why would the keep the "-" ?

m0ck69 commented 6 days ago

OK, I understand. Maybe you can handle this somehow in the future releases.

niksedk commented 6 days ago

IMO a single line starting with a dialog dash is wrong...

m0ck69 commented 6 days ago

Yes, but that was just an example. As I mentioned, these are fan-made subs where people don’t follow the established "translation rules" or Netflix specifications. I’m pretty sure they aren’t even aware of them, which is why - for instance - they use different signs for lyrics.