Introduction
TMPlayer subtitles are a very simple plain text format kept in .txt files. Each line gives only the time a subtitle starts, and its text.
Structure
This follows the code in Subtitle Edit. A line is a time in hours, minutes and seconds, a colon, then the text. A space is also accepted in place of that last colon. A | breaks the text into lines.
0:02:36:You've returned to the village|after 2 years, Shekhar.
00:00:50:America has made my fortune.
Not described
This page is a short summary. The full rules are not yet described here, and there is no viewer for TMPlayer subtitles.
Known, not yet covered
- Reference: the other line shapes in use and how the end of a subtitle is chosen.
- Viewer: reading and showing the subtitles.
Also used for
- EBCDIC text – IBM mainframe text, not based on ASCII: a space at 40, letters at 81 and C1.
- GB18030 text – China’s national encoding: one, two or four bytes a character, covering all of Unicode.
- ISO-2022 and HZ text – 7-bit Japanese, Korean and Chinese text, with escape sequences that switch character sets.
- Legacy code page text – A pre-Unicode code page (Windows-1252, Mac OS Roman, DOS 437, Shift_JIS …), guessed.
- MPL2 subtitles – Plain text subtitles timed in tenths of a second.
- OGM chapters – Plain text chapter times and names in the OGM tools' form.
- OpenAir Airspace – OpenAir airspace file under its older extension.
- Plain text – Characters and line endings, nothing more, in an encoding the file rarely names.
- TI-TXT hex file – Texas Instruments text format for memory images.
- UTF-16BE text – Unicode in two or four bytes a character, high byte first.
- UTF-16LE text – Unicode in two or four bytes a character, low byte first; Windows’ “Unicode”.
- UTF-32BE text – Every character in four bytes, high byte first. Rare in files.
- UTF-32LE text – Every character in four bytes, low byte first. Rare in files.
- UTF-7 text – Unicode written as pure ASCII, with runs of Base64 holding UTF-16 units.
- UTF-8 text – Unicode in one to four bytes a character, with ASCII unchanged; the usual text today.
- UltraStar song – Karaoke game songs: header lines, then timed and pitched syllables.
Links
Software
- Subtitle Edit – subtitle editor that reads and writes this format
Reference
- TMPlayer.cs – Subtitle Edit's code for the format