Let me tell the story behind PureSubtitles.
I have a Thomson DVD Player which reads DIVX and XVID files with subtitles files associated. (In this case, SubRip Subtitles, *.srt).
But this DVD Player has a problem, it cuts the words of some subtitles. I think that's because the total length of some phrases are bigger that DVD player supports. And Some subtitles have TAGS (<i>, </i>, ...) which this DVD don´t support. So it born PureSubtitles, to supress this anomalies.

This program only supports SubRip Subtitles (*.srt) for now, but almost DVD players support it.
How the program works ? Very simple.
Buttons and what they do :
(LoadSubtitle) - Loads a .srt subtitle. If you have loaded a previous one and modified it, the program asks if you want to save your work. Also checks for errors in subtitle file (like numeration, Times, ...) and puts every line error in red. Also gives in statusbar how many errors you have.
(SaveSubtitle) - Saves the subtitle that you're working with.
(Select All) - Select All lines of the subtitle file.
(Remove Sel) - Remove Selection of lines of the subtitle file.
(Insert) - You can Insert a new line to Subtitle after that one you have selected in list. (This line turns green for new, all numeration is reajusted and line length is calculated automaticaly).
(Update) - You can update times and text of Subtitle line. (This line turns blue for update and line length is calculated automaticaly).
(Delete) - You can delete a subtitle line. (all numeration is reajusted automaticaly).
(Find) - you can search for a specified text in subtitle lines. (To each find, that line is selected in list).
(Replace) - Here you can replace text of subtitle lines. (you can replace several words at the same time).
Example : In find what you put <i>;</i>;<b>;</b>;#;*;[;] and in replace with you put ;;;;;;;, press the replace button and the program will replace in all subtitle lines the words <i>,</i>,<b>,</b>,#,*,[ and ] for nothing in this case. Each line turns blue for updated and line length is calculated automaticaly).
(Adjust Line(s)) - Ok, here you will readjust the subtitle lines according to this:
Code: Select all
If (Subtitle Line Length) <= (Break if line exceeds)
Do Nothing
ElseIf (Subtitle Line Length) between (Break if line exceeds) and (Maximum Line Length)
If (Subtitle Line) has "|" -> Return Character in SubRip
Do Nothing
Else
Breaks one line in two with "|"
Subtitle line turns blue for update
EndIf
ElseIf (Subtitle Line Length) > (Maximum Line Length)
If (Subtitle Line) does not have "|"
Breaks one line in two with "|"
EndIf
From one subtitle line creates two
The times are readjusted from one into two (break in two)
Existing Line turns blue for update
New Line turns green for new
Numeration and Lines length are calculated automaticaly
EndIf
(File association) - Associates .srt files with PureSubtitles
(Load Preferences) - Loads preferences (you keep Find what, Replace with, Break if line exceeds, Maximum line length, Backup Original file, Process only selected and Enable log)
When program loads, it reads preferences.
(Save Preferences) - Saves preferences (When program quits, it saves preferences)
Other Options:
Backup Original File - Every time you save the subtitle file, you can backup the previous version of it.
Process Only Selected - Just process the subtitle lines that are selected. (The list is multiselect).
Enable Log - Enable log file(s) to tell what you're doing. this log files are in same directory has the application.
And that's it.
File and Source ->PureSubtitles.zip

Instalation:
Just copy the PureSubtitles dir with exe and ini files inside to any part of your disk.
Enjoy it.
Cesar Baptista