File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -163,6 +163,13 @@ void TTML2SRT::ParseTagBody(pugi::xml_node nodeTT)
163
163
// Parse <body> <div> child tags
164
164
for (xml_node nodeDiv : nodeBody.children (" div" ))
165
165
{
166
+ // Subtitles that make use of images to show text are not supported
167
+ if (nodeDiv.attribute (" smpte:backgroundImage" ) || nodeDiv.attribute (" tts:backgroundImage" ))
168
+ {
169
+ LOG::LogF (LOGWARNING,
170
+ " The \" backgroundImage\" attribute to show subtitles images is not supported." );
171
+ }
172
+
166
173
// Parse <body> <div> <p> child tags
167
174
for (xml_node nodeP : nodeDiv.children (" p" ))
168
175
{
@@ -276,6 +283,13 @@ TTML2SRT::Style TTML2SRT::ParseStyle(pugi::xml_node node)
276
283
style.id = XML::GetAttrib (node, " xml:id" );
277
284
style.color = XML::GetAttrib (node, " tts:color" );
278
285
286
+ // Subtitles that make use of images to show text are not supported
287
+ if (node.attribute (" tts:backgroundImage" ))
288
+ {
289
+ LOG::LogF (LOGWARNING,
290
+ " The \" backgroundImage\" attribute to show subtitles images is not supported." );
291
+ }
292
+
279
293
std::string styleVal;
280
294
if (XML::QueryAttrib (node, " tts:textDecoration" , styleVal))
281
295
{
You can’t perform that action at this time.
0 commit comments