Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jodyel

macrumors member
Original poster
Jun 11, 2022
37
2
Hi there,

Does anyone know of a text editor that will automatically delete all sentences that are written all in caps?

This is how some of the British shows do their hearing-impaired parts instead of putting them in brackets or something else I can easily strip them out of using a free online subtitle tool I found.

It is driving me batty to have to go thru each entire subtitle file and manually delete all the HI caps parts. Invariably, I always miss one or some.

Any help is greatly appreciated!

Thank you,
jodyel

Examples from Grace (UK TV show):

23
00:02:04,960 --> 00:02:06,320
HE CHUCKLES

29
00:03:15,800 --> 00:03:17,320
SHE GASPS
 
Last edited:
Tricky.
If you select all the text in the file you can easily change it to lower case in a single click. Does that help?
I don't know of a way of deleting just upper text files sorry.
 
  • Like
Reactions: jodyel
Thanks for the reply, Ruggy.

No, I want to get rid of them completely.

This handy tool will strip them out automatically if they are between any characters like parentheses or asterisks or brackets. I did ask the developer if he could add what I need and he said he would add it to the list but it wouldn't be done anytime soon.

 
BBedit would likely be able to do it.
From their support, who I did write. But this is Greek to me. I am not technically inclined. Thank you.

Hi Jody,

Thank you for writing in and I expect you can accomplish this task by using BBEdit's search & replace capability in combination with a suitable grep pattern.

As background, please see Chapter 7 of the PDF manual (choose Help -> User Manual) for complete details about using BBEdit's search & replace features, and Chapter 8 for details about using grep patterns (including examples).

Finally, though I regret we can't offer routine assistance with writing grep patterns[*], the BBEdit Talk discussion group is an excellent place to request advice on using grep patterns (and other task-related matters).

<https://groups.google.com/group/bbedit>

[*: If however you encounter any errors or unusual problems, please do let us know and we'll be happy to investigate.]

Regards,

Patrick Woolsey
==
Bare Bones Software, Inc. <https://www.barebones.com/>
 
You can do that with sed, from Terminal:

Code:
sed -i '' '/[[:digit:][:lower:]]/!d' /path/to/file.srt

I still use Subtitle Workshop in CrossOver to fix subtitles.
http://subworkshop.sourceforge.net
To my knowledge, Jubler is not capable of removing hearing impaired subtitles.
https://www.jubler.org/index.html
Thanks, bog. But this is alien to me. Another friend mentioned sed but it means nothing to me.

Is this something that could be automated easily and then set to do regularly? I just went thru one 90-minute subtitle file and it took me more than an hour to pull out all the hearing-impaired capped sentences manually. And that was searching with phrases and words that they use regularly, like PHONE BUZZES, PHONE RINGS, DOOR BELL, or just PHONE, DOOR...cuts down on some but I can't guess every word/phrase they'll use. In the end, I go line by line and some of these files have over 1200 line subtitles.
 
Last edited:
Does anyone know anything about TextSoap?
 
Last edited:
Incredibly, this abandoned, alpha2, app from 2016 does exactly what you want. :)
Tools – Remove text for hearing impaired – Remove line if UPPERCASE
Remove text for hearing impaired.jpg

https://github.com/SubtitleEdit/subtitleedit-mac/releases
 
Last edited:

Attachments

  • Screen Shot 2022-06-13 at 8.45.49 PM.png
    Screen Shot 2022-06-13 at 8.45.49 PM.png
    37.7 KB · Views: 69
I wrote the SubtitleEdit developer and asked if he'd read this thread when he had time.

Maybe something will come of that.

Still so impressed, bog, for that find! Just wow!
 
Dled and attempted to open and cannot. I am on a new Mac Mini with the M1 chip though so that is probably why.

Thoughts on getting this to work? Or just abandon it?
On Intel/Big Sur, I had to make a small fix for it to work. Open Terminal (Application- Utilities – Terminal), copy-paste the code below and press Return (Enter).
Code:
chmod +x /Applications/SubtitleEdit.app/Contents/MacOS/SubtitleEdit
Then, in Applications, right-click on the SubtitleEdit app and open.
On M1, you have to install Rosetta 2 https://support.apple.com/kb/HT211861
 
  • Like
Reactions: jodyel
On Intel/Big Sur, I had to make a small fix for it to work. Open Terminal (Application- Utilities – Terminal), copy-paste the code below and press Return (Enter).
Code:
chmod +x /Applications/SubtitleEdit.app/Contents/MacOS/SubtitleEdit
Then, in Applications, right-click on the SubtitleEdit app and open.
On M1, you have to install Rosetta 2 https://support.apple.com/kb/HT211861

Oh boy, I will give it a try and report back. Thanks!
 
Okay, first stumble...where do I get Rosetta? I assume the app store which I have never been able to access for some reason.

Any suggestions as to how I can get access to the app store? I almost never used it when I had my late-2009 iMac so my original sign up was lost to the ether. I tried again, several times, and still could never get signed in. So I just gave up.

Sorry, guys, but I am a real dunce when it comes to these things. Thanks for helping me and sticking with me.
 
Well, maybe not a total dunce. Surmised from the article that Rosetta is already on my Mac mini M1 so opened the info page on SE and it shows no "open with Rosetta." It does show up on the Safari info page as in the article.

So do I go the Intel route and do the command/terminal thing?
 

Attachments

  • Screen Shot 2022-06-16 at 1.00.03 PM.png
    Screen Shot 2022-06-16 at 1.00.03 PM.png
    73.5 KB · Views: 76
Last edited:
Did not work with the command/terminal thing either. Still won't open per my original post about it.

Friend showed me how to install Rosetta from terminal so I will see if it changed anything.
 
Last edited:
No change whatsoever after installing Rosetta via terminal. I also trashed SE and dled again. Same error it could not be opened.

So all a bust for me.
 
I can confirm that it's working on M1/Monterey
subedit.jpg
Same fix as on Intel:
in Terminal
Code:
chmod +x /Applications/SubtitleEdit.app/Contents/MacOS/SubtitleEdit
then in Applications right-click and open
 
  • Love
Reactions: jodyel
Ah so, I missed the part where I had to let it in via Security and Privacy. Eureka! It is now working.

How do I get it to strip out those capped sentences?
 
Open the subtitle in the app, Tools – Remove text for hearing impaired – Remove line if UPPERCASE
 
  • Like
Reactions: jodyel
Worked but left some extraneous stuff behind as you can see in the second screenshot.
 

Attachments

  • Screen Shot 2022-06-16 at 1.47.18 PM.png
    Screen Shot 2022-06-16 at 1.47.18 PM.png
    238.9 KB · Views: 88
  • Screen Shot 2022-06-16 at 1.46.42 PM.png
    Screen Shot 2022-06-16 at 1.46.42 PM.png
    156.6 KB · Views: 89
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.