Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Open the subtitle in the app, Tools – Remove text for hearing impaired – Remove line if UPPERCASE

Yes, I did that and it worked. Did leave some extra stuff behind though, such as <br />.

However in looking at the srt file that br thing doesn't appear. Looking at line 99 on the screenshot shows it, but the srt has now changed to line 84 and no sign of anything but the dialog.

So I think this is a winner. I will check with video file and make sure the changing line numbers doesn't mess anything up.

Looks like you did it, bog!! Awesome find. Will make me want to come here for all my Mac stuff.
 
No worries...that >br stuff does not appear in the final srt file and everything is still perfectly synced.

So this is WINNER, WINNER, CHICKEN DINNER!!

Now if you could tell me where to find something that would sync subs just as efficiently and automatically, I'd have all the solutions I need for my subtitle problems folder. As you can guess, I don't do well with trying to sync them manually. Out of the goodness of their hearts, friends will usually do that for me.
 
Nisus Writer works very well for a task such as removing all CAPS text. PowerFind provides a simple GUI for UNIX regular expressions. You can easily remove all uppercase text, and remove or leave the line feeds. Works well on Intel, better on AppleSi. Very powerful word processing, very easy to use, 15 day fully functional demo.
 
  • Like
Reactions: jodyel
Nisus Writer works very well for a task such as removing all CAPS text. PowerFind provides a simple GUI for UNIX regular expressions. You can easily remove all uppercase text, and remove or leave the line feeds. Works well on Intel, better on AppleSi. Very powerful word processing, very easy to use, 15 day fully functional demo.

Thank you for this, danano.

Will bookmark this and keep it in mind as a backup should Subtitle Editor ever fail. SE is working very well for me at this time.
 
Congrats to Jodyel for not giving up and congrats to all that helped. This is what makes this forum great. Makes up for all the Trolls that have nothing good to say about anything.
 
  • Like
Reactions: Nermal and jodyel
Congrats to Jodyel for not giving up and congrats to all that helped. This is what makes this forum great. Makes up for all the Trolls that have nothing good to say about anything.

Fabulous group here that actually help!

And I cannot thank them enough even if tenacity is my middle name.

This has been a wonderful experience and I am on a few boards where nobody pitches in like this.
 
jodyel pointed out an interesting app - subsync, here is how to get it to work on
M1/Monterey:
- download subsync-0.17.0-mac-x86_64.dmg from https://subsync.online/en/download.html (or https://github.com/sc0ty/subsync/releases )
- install the subsync app into Applications
- from Terminal, remove its signature with:
Code:
codesign --remove-signature /Applications/subsync.app
- in Applications, right-click on subsync and open.

Other subtitles apps
Penguin Subtitle Player https://github.com/carsonip/Penguin-Subtitle-Player
Caption https://github.com/gielcobben/Caption
 
  • Love
Reactions: jodyel
jodyel pointed out an interesting app - subsync, here is how to get it to work on
M1/Monterey:
- download subsync-0.17.0-mac-x86_64.dmg from https://subsync.online/en/download.html (or https://github.com/sc0ty/subsync/releases )
- install the subsync app into Applications
- from Terminal, remove its signature with:
Code:
codesign --remove-signature /Applications/subsync.app
- in Applications, right-click on subsync and open.

Other subtitles apps
Penguin Subtitle Player https://github.com/carsonip/Penguin-Subtitle-Player
Caption https://github.com/gielcobben/Caption

Thanks!
 
Hi all,

One downside I've found to Subtitle Edit to strip out all the uppercase hearing-impaired sentences is that it will not delete the HI sentence if it is on the same line as a sentence of dialog.

Example: HE EXHALES Oh, shove off.

or

BANGS ON WINDOW Ah!

I guess those two sentences would have to be on separate lines in order for SE to remove the HI part.

Like this: HE EXHALES
Oh, shove off.

and

BANGS ON WINDOW
Ah!

Any idea if SE can do this and I am just not seeing how?

Otherwise it's back to going manually line by line to remove and that is always time consuming.

Thanks!
 
Also, is there a way to strip out song lyrics that have a musical note symbol in front of them?

For some reason Subtitletools.com, which usually will do this, has not on a set of subs I am working on now. Perhaps because there is a space between the musical note symbol and the start of the lyric on each line?

Example:

367
00:22:39,000 --> 00:22:40,959
♪ You say you don't know

368
00:22:40,960 --> 00:22:42,960
♪ I say

369
00:22:44,280 --> 00:22:46,280
♪ Take me out... ♪

So two new hurdles to overcome.

Thanks again.
 
Hi all,

Just thought I'd bump since no replies seems odd to me. Especially in light of all the fantastic help I received previously.

I did resolve the musical note issue by copying and pasting that note into find and replace and then just took out all lines that had it and the lyrics with them.

But I do not know how to solved the HI uppercase sentences on the same line as dialog. It cannot be fixed using find and replace unfortunately.

If anyone has a fix for that or can figure it out, I'd love to know.

Thanks again.

jodyel
 
Last edited:
Make a copy of the srt you are working on, open Terminal (Application- Utilities – Terminal), copy-paste the code below, press Space, drag& drop the file and press Return (Enter).

To remove all words in capital letters

Code:
sed -i '' 's/[A-Z]\{2,\}//g'

The code removes two, or more, consecutive upper case letters. If you have some words you would like to keep in the file, like OK, replace with Ok before running the command.

To remove all lines that contain ♪

Code:
sed -i '' '/♪/d'

You can then use SubtitleEdit – Tools – Fix common errors to remove empty subtitle lines.

There are some other options in SubtitleEdit – Tools - Remove text for hearing impaired, like Remove interjections and Remove text between ♪
 
Thanks, bogdan, but since I am not proficient with terminal I will leave this as a last resort. Def appreciate it though.

Can you think of a way to automate this in Subtitle Edit or other sub editor?

I worked around the musical note problem by using Find and Replace in Mac TextEdit. Was easy peasy to get rid of those.

Thanks again,
Jodyel
 
Here is a more user friendly version of the same commands:
Open Script Editor (/Applications/Utilities/Script Editor.app), copy-paste the code below, save it as an app.
Code:
set theFile to choose file with prompt "Please select the srt file:" of type {"srt"}
set theSRT to (quoted form of POSIX path of theFile)
do shell script "sed -i '' 's/[A-Z]\\{2,\\}//g' " & theSRT
do shell script "sed -i '' '/♪/d' " & theSRT

Start the app, you will be asked to select a srt file, the app will remove upper case words and lines with ♪ from the srt file.

As someone else suggested before, another solution for the upper case words problem is to use a text editor that can process wildcards.
In Microsoft Word you can search-replace <[A-Z]{2,}>
In LibreOffice you can use [:upper:][:upper:].
https://help.libreoffice.org/7.3/en-US/text/swriter/guide/search_regexp.html
https://help.libreoffice.org/7.3/en-US/text/shared/01/02100001.html?&DbPAR=SHARED&System=MAC
 
It turns out, we weren’t looking in the right place, SubtitleEdit has another surprise in Edit – Multiple replace – use [A-Z]{2,}
Multiple replace.jpg
 
  • Love
Reactions: jodyel
It turns out, we weren’t looking in the right place, SubtitleEdit has another surprise in Edit – Multiple replace – use [A-Z]{2,}
View attachment 2025723

Just saw you said it was in Edit. Not reading well this early in the morning.

Will give it a try and see if it works for me.

Also, see new message I sent. Thanks!
 
Yep, helps to pay attention to what is actually written.

Thanks for not whacking me over the head. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.