I've spent the last couple of days reading various highly knowledgeable solutions (All Hail @Mofi) for this task, but I'm more confused now than I was at the start. I'm just starting a hobby of amateur American English subtitle corrector. You would not believe all the stupendously stupid text renditions to subtitles in film and video spoken language out there! When I've finished correcting the errors, I plan to upload the revisions to subtitle hosts for free.
What follows is not in error, but it is an example from the subtitle file I'm currently working on: Star Trek: First Contact...
This particular file is quite good, but I hate reading text in all caps. And sadly, a significant fraction of all English subtitle files are entirely in caps! So what I need is a macro or script or whatever is most appropriate that will convert text in all caps to either title case (with each word capitalized) or sentence case (only the first letter of each sentence capitalized). From what I've read so far, apparently I need to use the Perl regular expression syntax to perform this task most effectively (which is somewhat unfortunate since I'm much more comfortable with the UltraEdit legacy regexps).
But I just don't know how to do this. I had a career in systems software development (even developing a few full-power custom text editors), but all that is 20 years behind me now, and I'm not longer anywhere near the top of my game.
Would you wise folks help me with this, please?
ETA: I don't expect the macro/script to know when to convert to sentence case and when to choose title case. That's my job...
What follows is not in error, but it is an example from the subtitle file I'm currently working on: Star Trek: First Contact...
Code: Select all
2
00:02:59,440 --> 00:03:01,311
[DISTORTED BORG VOICES]
3
00:03:32,299 --> 00:03:33,256
[GASPING]
But I just don't know how to do this. I had a career in systems software development (even developing a few full-power custom text editors), but all that is 20 years behind me now, and I'm not longer anywhere near the top of my game.
Would you wise folks help me with this, please?
ETA: I don't expect the macro/script to know when to convert to sentence case and when to choose title case. That's my job...