Fix ass syntax

This commit is contained in:
2025-06-30 00:04:53 +08:00
parent b53fc11b37
commit 7453e571fc

View File

@ -397,7 +397,7 @@ def WriteCommentAcfunPositioned(f, c, width, height, styleid):
try:
comment_args = c[3]
text = ASSEscape(str(comment_args['n']).replace('\r', '\n'))
common_styles = ['\org(%d, %d)' % (width / 2, height / 2)]
common_styles = ['\\org(%d, %d)' % (width / 2, height / 2)]
anchor = {0: 7, 1: 8, 2: 9, 3: 4, 4: 5, 5: 6, 6: 1, 7: 2, 8: 3}.get(comment_args.get('c', 0), 7)
if anchor != 7:
common_styles.append('\\an%s' % anchor)