[MPlayer-dev-eng] [PATCH] Style tag support for srt and microdvd subtitles

Kazuo Teramoto kaz.rag at gmail.com
Sat May 15 17:03:04 CEST 2010


2010/5/15 ubitux <ubitux at gmail.com>:
> - Let the old filter html tags if there is ones left

I think this filter need to be improved. Because it is to greedy...
The patch Jonatan have a better handling on this, it only strip
"invalid" html tags. Of course is hard to determine what is a invalid
html tag...

But, for example the current filter of mplayer (and the one use by you
patch) cause problem with this srt subtitle

==================
1
00:00:00,000 --> 00:00:10,000
vlc < mplayer, and this is not displayed.
==================

So < and > are not safe inside srt.

I problem with the current filter and Johatan is a subtitle like this:
==================
1
00:00:00,000 --> 00:00:10,000
The <mplayer>!
==================

Get displayed wrong (in my interpretation) as "The ",  Some languages
use a ‹ › to quote, and so somebody can try to use <> as a substitute,
and can have others uses too (for example marking different voices
'[Alice] How are you? <phone rings>').

The problem is srt dont have a spec, so is hard to define what is
wrong and what is not. Sometime ago I see a site that give feature
comparassion of srt rendering. Its list ass override tags as a
feature! Clearly this is a abuse...

Uhh and a question, I'm confused Wikipedia call the format we are
describing as SubRip, but mplayer describe it as subviewer and what
mplayer calls subrip is subviewer in the Wikipedia...

Regards,
Kazuo

-- 
«Dans la vie, rien n'est à craindre, tout est à comprendre»
Marie Sklodowska Curie.



More information about the MPlayer-dev-eng mailing list