Latest version License

This is an experimental tool to help language-learners exploit parallel subtitles in various ways.

It's written using Rust, a programming language that's still under heavy development. So it may be hard to get this working on any given day. But if the following badge is green, there's a good chance everything will work:

Build Status

Installing substudy

The easiest way to install substudy is using the cargo install command. To get access to this, you'll need a nightly build of Rust. The easiest way to to this is to install multirust by running:

sh curl -sf https://raw.githubusercontent.com/brson/multirust/master/blastoff.sh | sh multirust update nightly

Follow any extra installation instructions printed by multirust. Once that is set up, you can then install substudy by running:

sh multirust run nightly cargo install substudy

Running substudy

To get a list of supported commands, run target/substudy --help:

``` Subtitle processing tools for students of foreign languages

Usage: substudy clean substudy combine substudy --help

For now, all subtitles must be in *.srt format. Many common encodings will be automatically detected, but try converting to UTF-8 if you have problems. ```

So, for example, you could run:

sh substudy combine foreign.srt native.srt > bilingual.srt

Finding & preparing subtitles

The simplest tool for extracting subtitles from DVDs is Handbrake. If you can't find what you need on the DVD, another good source of subtitles is opensubtitles.org. To OCR, convert, realign and otherwise clean up subtitles, the open source Windows application Subtitle Edit is an excellent choice, and it runs fine in a Windows VM.

Watching video with bilingual SRT subtitles

My favorite tools are VLC, for watching on my computer, and Videostream, for streaming videos to my TV using a Chromecast. The same subtitle file should work fine with both.

Building substudy

Assuming you have multirust installed as described above, you can run:

sh git clone https://github.com/emk/substudy.git cd substudy cargo build

If this fails, please feel free to submit an issue.

Using substudy as a library

You can find API documentation on the Rust CI site. Note that all APIs are experimental and subject to change. If you want to use substudy as a library in your own tools, you're encouraged to do so, but it might be worth letting me know which APIs you're using so that I can stabilize them.

Contributing

Please feel welcome to send me a pull request or submit an issue!

Things which I'd love to see subs2srs support include:

Things which I'll probably merge if they come with clean code and solid test suites:

License

This program is released into the public domain using the Unlicense. Our test suites contain a half-dozen lines of subtitles from copyrighted TV shows, which should presumably fall under de minimis, fair use or equivalent exceptions in most jurisdictions.