On Fri, Oct 19, 2012 at 9:39 AM, Murthy Avanithsa <[email protected]> wrote: > Hello everyone, > > I am using Dynamic-Filter to add text overlay on a video. > I have some special characters in my text, as per documentation I am > escaping special character '&' as '&' > > While playing mlt file I am finding an error like this > > Pango-WARNING **: pango_layout_set_markup_with_accel: Error on line 1: > Entity did not end with a semicolon; most likely you used an ampersand > character without intending to start an entity - escape ampersand as & > > > My filter is like this > > <filter> > <property name="mlt_service">dynamictext</property> > <property name="argument">Special character & </property>
Pango markup is similar to XML and requires escaping special chars. However, so does MLT XML. When the MLT XML is processed, the & becomes a real ampersand, which is going to be interpreted as the start of an entity in the pango markup. So, you need to either put the pango markup in a CDATA section of the MLT XML or use double escaping: &amp; > <property name="family">Sansation</property> > <property name="size">30</property> > <property name="fgcolour">0xffffffff</property> > <property name="weight">400</property> > <property name="bgcolour">0x00000000</property> > <property name="olcolour">0x00000000</property> > <property name="geometry">0%/22%:100%/100%</property> > </filter> > > Can some one please help me how to encode special characters in this case. > > -- > Regards, > Murthy. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_sfd2d_oct > _______________________________________________ > Mlt-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mlt-devel > -- +-DRD-+ ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
