Ticket #17 (closed enhancement: fixed)

Opened 8 years ago

Last modified 8 years ago

Basic Subtitle Support

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

Description

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

comment:1 Changed 8 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 8 years ago by astrange

Changed the font.

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

comment:3 Changed 8 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 8 years ago by tick

  • Component changed from matroska to Subtitles

comment:5 Changed 8 years ago by astrange

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

comment:6 Changed 8 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 8 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 8 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 8 years ago by astrange

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

(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.