aeidon.tags.MicroDVD

Source: aeidon/tags/microdvd.py

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

class aeidon.tags.MicroDVD

Text markup for the MicroDVD format.

The MicroDVD format contains a lot of markup tags, of which the following are of interest to us. Tags that start with a lower case letter end at the end of the line, upper case ones at the end of the subtitle.

  • {c:$BBGGRR}..., {C:$BBGGRR}...
  • {f:NAME}......, {F:NAME}......
  • {s:SIZE}......, {S:SIZE}......
  • {y:STYLE}....., {Y:STYLE}.....

Note the reverse order of the color tag, BBGGRR instead of the normal RRGGBB. STYLE in the y is a string containing one or more of the letters “b”, “i” and “u” and any amount of any possible separators or other characters.

Methods

MicroDVD.bolden(text, bounds=None)

Return bolded text.

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

Return text colorized to hexadecimal value.

MicroDVD.fontify(text, font, bounds=None)

Return text changed to font.

MicroDVD.italicize(text, bounds=None)

Return italicized text.

MicroDVD.scale(text, size, bounds=None)

Return text scaled to size.

MicroDVD.underline(text, bounds=None)

Return underlined text.