tkarabela / pysubs2

A Python library for editing subtitle files
http://pysubs2.readthedocs.io
MIT License
306 stars 39 forks source link

ASS escaping #2

Open gamedeff opened 9 years ago

gamedeff commented 9 years ago

See http://ffmpeg.org/doxygen/trunk/ass_8c_source.html#l00178

tkarabela commented 8 years ago

I don't think "standard ASS escaping" actually appears in the spec, but the whole thing is quite implementation-defined anyway, so I wouldn't mind implementing this.

Do you suggest escaping {} by default when reading SRT? I have seen some files which mixed SRT with ASS escape tags and it seems I'm not the only one: https://ffmpeg.org/pipermail/ffmpeg-devel/2011-November/117059.html