Opened 11 years ago

Closed 11 years ago

#17 closed enhancement (fixed)

Basic Subtitle Support

Reported by: dconrad Owned by: astrange
Priority: normal Milestone: 1.0
Component: Subtitles Version:
Severity: normal Keywords:


No fancy styles, just basic support for plain-text subtitles in Matroska, stripping SSA styles for 1.0. Will probably need to involve a separate renderer due to limitations of QTText.

Change History (9)

comment:1 Changed 11 years ago by dconrad

Basic renderer & importing for plain-text UTF-8 committed using Quartz (QTText would have required more work and not supported many SSA/ASS features in the future.) What's left includes:
•Stripping / using tags, which seem to be html-like (e.g. <i>Text</i> for italics)
•Word Wrapping
•Probably a better font/color/size choice (currently Chalkboard bold at 30, yellow front and black outlines)
•SSA/ASS support (need to strip the header and SSA styles, which are between curly brackets {})

comment:2 Changed 11 years ago by astrange

Changed the font.

It only handles ASCII subtitles right, though... everything else is garbage.

comment:3 Changed 11 years ago by dconrad

Looks like Quartz 2D only supports MacRoman? encodings, we'll have to use ATSUI or something else for Unicode. Probably a good idea anyways for better layout control.

comment:4 Changed 11 years ago by tick

  • Component changed from matroska to Subtitles

comment:5 Changed 11 years ago by astrange

  • Owner set to astrange
  • Status changed from new to assigned

comment:6 Changed 11 years ago by astrange

(In [310]) * Add Ragel parser generator binaries for use in SSA renderer (when I enable it).

  • Import external .ass files. Does not actually work, but rapidly approaches it.

References #17.

comment:7 Changed 11 years ago by astrange

(In [313]) Renderer for SSA subtitles. (!!!)
Supports most files, w/ text styles.
Add ssa/ass to external imports.
Refs #17.

comment:8 Changed 11 years ago by astrange

(In [333]) Apply overlap handling to Matroska.
This should make the vast majority of files playable.
Refs #17

comment:9 Changed 11 years ago by astrange

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [336]) Handle the rest of SSA tags (by ignoring some and implementing others).
Fix text color in old files and misc. memory handling problems.
This should complete support for most subtitle files. Closes #17.

Note: See TracTickets for help on using tickets.