pannal / Sub-Zero.bundle

Subtitles for Plex, as good you would expect them to be.
Other
1.76k stars 120 forks source link

Check for open tags normalization #293

Open vBm opened 7 years ago

vBm commented 7 years ago

Lately I've seen a lot of busted subs that come from addic7ed.com Busted as in not closed font, bold, italics tags. Now that you've implemented several of "normalization" tasks could something be done for this ?

One of the examples is in line 946 of http://www.addic7ed.com/original/117563/0 where font is not closed. I guess it's a botched copy/paste :)

If there's no apparent solution in already used libraries like html5lib, maybe something like this ?

http://www.datadependence.com/2016/03/find-unclosed-tags-using-stacks/

Edit: forgot to say that i'm using 2.0.20.1364 RC9

pannal commented 7 years ago

Hmm yeah, to a certain extent I could do that.