aeidon.tags.SubRip

Source: aeidon/tags/subrip.py

Anchestors: aeidon.markup.Markup, aeidon.singleton.Singleton, builtins.object

class aeidon.tags.SubRip

Text markup for the SubRip format.

SubRip format is assumed (based on the SubRip application GUI) to contain the following HTML-style tags, in either lower- or upper case.

  • <b>.........................</b>
  • <i>.........................</i>
  • <u>.........................</u>
  • <font color="#RRGGBB">...</font>

Methods

SubRip.bolden(text, bounds=None)

Return bolded text.

SubRip.clean(text)

Return text with less ugly markup.

SubRip.colorize(text, color, bounds=None)

Return text colorized to hexadecimal value.

SubRip.italicize(text, bounds=None)

Return italicized text.

SubRip.underline(text, bounds=None)

Return underlined text.