diff --git a/src/ttml2ssa.py b/src/ttml2ssa.py index 01de0e3..dbfec28 100644 --- a/src/ttml2ssa.py +++ b/src/ttml2ssa.py @@ -41,8 +41,6 @@ class Ttml2Ssa(object): 'FILM2PAL' : 24/25 } - TOP_MARKER = '{\\an8}' - def __init__(self, shift=0, source_fps=23.976, scale_factor=1, subtitle_language=None): self.shift = shift self.source_fps = source_fps @@ -72,9 +70,11 @@ def __init__(self, shift=0, source_fps=23.976, scale_factor=1, subtitle_language self._top_regions_ids = [] self._allowed_style_attrs = ( + 'backgroundColor', 'color', 'fontStyle', 'fontWeight', + 'textAlign', ) ## This variable stores the language ID from the xml file. @@ -203,8 +203,8 @@ def extract_rate(s): # Grab