It looks like you're using an Ad Blocker.

Please white-list or disable AboveTopSecret.com in your ad-blocking tool.

Thank you.

 

Some features of ATS will be disabled while you continue to use an ad-blocker.

 

UFO subtitle files (.srt) - removing color tags?

page: 1
3

log in

join
share:

posted on May, 1 2019 @ 05:09 AM
link   
I'd like to convert some .srt subtitle files from various UFO documentaries into searchable PDFs (either directly or via some other file format), retaining the text and time codes but not the colour/color tags or special fonts.

The colour tags just mess up the appearance of the text (as below).

Is anyone familiar with SubtitleEdit (or other means of editing .srt files) and know a file format to save as if I want to achieve this goal? (SubtitleEdit allows the .srt file to be saved in about 200 different formats, so one of them must do this but I'd rather not continue trying them all out to find the best option here...).



I've seen an online tool (at the link below) which may allow the text between various brackets to be removed (which would improve the appearance), but I would prefer to know a relevant "save as" option within SubtitleEdit since I can then batch process dozens/hundreds of .srt files.
subtitletools.com...



edit on 1-5-2019 by IsaacKoi because: (no reason given)




posted on May, 1 2019 @ 05:49 AM
link   
a reply to: IsaacKoi

Any decent text editor (on windows notepad++ for example) should be able to do that for you.

Find in files the regular expression (remove the spaces from the expression, had to add them to show it correctly): < [ ^ > ] * >

Replace it with nothing.




edit on 1-5-2019 by moebius because: (no reason given)



posted on May, 1 2019 @ 06:09 AM
link   
a reply to: moebius

Many thanks Moebius.

I hadn't tried regular expressions to replace the relevant colour tags since I wanted to batch convert .srt files (since I potentially want to do dozens/hundreds of files) - BUT trying out your suggestion in Notepad++ I see that there is an option for running the relevant find and replace in all opened files, so I could do a type of batch processing within Notepad++.

In other words, thanks - job done.




edit on 1-5-2019 by IsaacKoi because: (no reason given)



posted on May, 1 2019 @ 06:26 AM
link   
a reply to: IsaacKoi

You don't have to open them. Open the Find in Files tab (Ctrl+Shift+F), set the file folder, filter for *.srt files and let it run.



posted on May, 1 2019 @ 06:29 AM
link   
Ah, even better.




posted on May, 1 2019 @ 08:04 AM
link   
*stops looking in notepad++ for answer*

lol, good to read, helps me in the future too!



new topics

top topics
 
3

log in

join