Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0e46b874
Commit
0e46b874
authored
Dec 30, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Subsdec: initial support for <s> tag
We don't have the renderer for it, so far.
parent
cde18698
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
modules/codec/subtitles/subsdec.c
modules/codec/subtitles/subsdec.c
+13
-1
No files found.
modules/codec/subtitles/subsdec.c
View file @
0e46b874
...
...
@@ -634,7 +634,7 @@ static char *StripTags( char *psz_subtitle )
* to be carrying style information. Over time people have used them that way.
* In the absence of specifications from which to work, the tags supported
* have been restricted to the simple set permitted by the USF DTD, ie. :
* Basic: <br>, <i>, <b>, <u>
* Basic: <br>, <i>, <b>, <u>
, <s>
* Extended: <font>
* Attributes: face
* family
...
...
@@ -728,6 +728,11 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
HtmlCopy
(
&
psz_html
,
&
psz_subtitle
,
"<u>"
);
strcat
(
psz_tag
,
"u"
);
}
else
if
(
!
strncasecmp
(
psz_subtitle
,
"<s>"
,
3
)
)
{
HtmlCopy
(
&
psz_html
,
&
psz_subtitle
,
"<s>"
);
strcat
(
psz_tag
,
"s"
);
}
else
if
(
!
strncasecmp
(
psz_subtitle
,
"<font "
,
6
))
{
const
char
*
psz_attribs
[]
=
{
"face="
,
"family="
,
"size="
,
...
...
@@ -813,6 +818,10 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
b_match
=
!
strncasecmp
(
psz_subtitle
,
"</u>"
,
4
);
i_len
=
4
;
break
;
case
's'
:
b_match
=
!
strncasecmp
(
psz_subtitle
,
"</s>"
,
4
);
i_len
=
4
;
break
;
case
'f'
:
b_match
=
!
strncasecmp
(
psz_subtitle
,
"</font>"
,
7
);
i_len
=
7
;
...
...
@@ -1000,6 +1009,9 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
case
'u'
:
HtmlPut
(
&
psz_html
,
"</u>"
);
break
;
case
's'
:
HtmlPut
(
&
psz_html
,
"</s>"
);
break
;
case
'f'
:
HtmlPut
(
&
psz_html
,
"/font>"
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment