diff --git a/danmaku2ass.py b/danmaku2ass.py index ef854a2..6e5a249 100755 --- a/danmaku2ass.py +++ b/danmaku2ass.py @@ -436,6 +436,7 @@ def WriteCommentAcfunPositioned(f, c, width, height, styleid): except (IndexError, ValueError) as e: logging.warning(_('Invalid comment: %r') % c[3]) + def WriteCommentSH5VPositioned(f, c, width, height, styleid): def GetTransformStyles(x=None, y=None, fsize=None, rotate_z=None, rotate_y=None, color=None, alpha=None): @@ -479,6 +480,7 @@ def WriteCommentSH5VPositioned(f, c, width, height, styleid): except (IndexError, ValueError) as e: logging.warning(_('Invalid comment: %r') % c[3]) + # Result: (f, dx, dy) # To convert: NewX = f*x+dx, NewY = f*y+dy def GetZoomFactor(SourceSize, TargetSize):