<div dir="ltr">On Fri, Sep 13, 2013 at 3:56 PM, Joey Morris <span dir="ltr">&lt;<a href="mailto:rjmorris.list@zoho.com" target="_blank">rjmorris.list@zoho.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Jim Stichnoth &lt;<a href="mailto:stichnot@gmail.com">stichnot@gmail.com</a>&gt; wrote on Fri, Sep 13, 2013 at 06:59:52AM -0700:<br>

<div><div class="h5">&gt; On Thu, Sep 12, 2013 at 6:28 PM, Joey Morris &lt;<a href="mailto:rjmorris.list@zoho.com">rjmorris.list@zoho.com</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; I&#39;m playing MKV files that I ripped from my DVDs using Handbrake on<br>
&gt; &gt; Linux. When I enable closed captions, MythTV displays a little empty<br>
&gt; &gt; box at the end of every caption, representing what I assume is a<br>
&gt; &gt; non-printable character. Like maybe the captions end in \n\r and<br>
&gt; &gt; MythTV can&#39;t handle the \r. I used mkvextract to export a CC track to<br>
&gt; &gt; an SRT file. When I examined the captions, I didn&#39;t see any unusual<br>
&gt; &gt; characters at the end of them, just a 0x0a.<br>
&gt; &gt;<br>
&gt; &gt; Closed captions from OTA recordings do not exhibit this behavior.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m running 0.26-fixes. Does anyone else have this problem? Any<br>
&gt; &gt; thoughts on what&#39;s causing it or additional steps to debug?<br>
&gt; &gt;<br>
&gt; &gt; If you run mythfrontend with &quot;-v vbi&quot;, it should produce logs describing<br>
&gt; the text strings it&#39;s trying to render, which would hopefully also show any<br>
&gt; unusual characters that may be rendered as an empty rectangle.  This is<br>
&gt; unlikely to be whitespace like \r, since all caption text has leading and<br>
&gt; trailing whitespace removed by the QString::trimmed() operation.  From the<br>
&gt; QString documentation, &quot;This includes the ASCII characters &#39;\t&#39;, &#39;\n&#39;,<br>
&gt; &#39;\v&#39;, &#39;\f&#39;, &#39;\r&#39;, and &#39; &#39;.&quot;<br>
<br>
</div></div>I ran mythfrontend with -v vbi, and I&#39;ve attached the log file. I<br>
don&#39;t see any unusual characters, even when viewing in hex mode, but<br>
one thing does look odd: The rendered text strings are missing a<br>
closing quotation mark everywhere the empty rectangle appears. For<br>
example, the first rendered subtitle written to the log is:<br>
<br>
  text=&#39;FROM ALMOST CERTAIN&#39;<br>
  text=&#39;TEMPTATION,<br>
<br>
This appears on my screen as two lines of text with an empty<br>
rectangle at the end of the second line.<br><br></blockquote><div>Yes, that seems like there might be a ^H backspace character embedded at the end of the line.  In my setup, it results in a rectangle outline with a question mark inside, but the difference between my funny character and yours may be from the font.  A backspace character also does weird things to the log message.</div>
<div><br></div><div>You probably want to figure out how to get the external tool to stop adding those extra characters, whatever they are exactly.</div><div><br></div><div>Jim </div></div><br></div></div>