Converts subtitles of StarCraft II: Heart of the Swarm cinematic videos (in .event format) to SubRip format (.srt)
Necessary libraries are required in main.html
. This script use WebKit console interface to take commands and give outputs. Note that only Safari allow XHR on local files by default. You have to enable relevant options in Chrome or it should raise Allow Origin errors when attempt to read .event
files. I haven't tried Firefox, but it sould be compatible with the console interface of Firefox.
Put the relative path to the folder where your .event
files are located in the last line of HOTSSubtitleConverter.coffee
. Then run main.html
and toggle your WebKit console. The converter should have been initialized as window.hotsConverter
(or simply hotsConverter
.) It contains an array of parsed subtitles. Run:
hotsConverter.convert(0);
where 0
can ususally be from 0
to 11
for Heart of the Swarm files. Each run will print subtitle in SubRip (.srt) format in console. Now you can copy them and paste to other text editors and save the subtitle files. Done!