Open GoogleCodeExporter opened 9 years ago
>I think VSFilter has the right approach: ignore section headers, and simply
accept all keys all the time.
I'm not sure about this at all. The ASS format is a mess, and somewhat correct
basic syntax is about the least we should expect for correct operation. libass
is already full of kludges and workarounds to deal with various VSFilter-isms
or just plain broken subtitle files. I'd like to avoid adding more.
Original comment by g...@chown.ath.cx
on 1 Oct 2012 at 2:49
Software needs to deal with actual data, not idealized data.
Sections in this file format mean very little, since there's nearly no overlap
in key names across sections. If I remember correctly, the only overlap is
Format:, and nobody implements that anyway. (Format: should just be struck
from the format and ignored, since nobody uses it--except to parrot the
defaults--and nobody appears to implement it, and implementing it might well
break files, since nobody's testing their files in parsers that do support it.)
You can pretty much treat SSA/ASS as if it's not a section-delimited format at
all, treating section headers as data lines. It's simpler, more
error-tolerant, and gives parity with VSFilter.
Original comment by gl...@zewt.org
on 1 Oct 2012 at 7:43
I tried to look at it, but changing the section parsing this way seems to be
really messy. Not sure if it's really worth doing for just one file?
Original comment by nfxjfg@googlemail.com
on 3 Feb 2013 at 12:07
Original issue reported on code.google.com by
gl...@zewt.org
on 18 Aug 2012 at 5:14