<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 20, 2013 at 3:43 AM, Jonathan Morgan <span dir="ltr">&lt;<a href="mailto:jonmmorgan@gmail.com" target="_blank">jonmmorgan@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Greg,<br><br><div class="gmail_quote"><div class="im">On Sun, Jan 20, 2013 at 3:52 AM, Greg Hellings <span dir="ltr">&lt;<a href="mailto:greg.hellings@gmail.com" target="_blank">greg.hellings@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Sat, Jan 19, 2013 at 10:28 AM, Troy A. Griffitts <span dir="ltr">&lt;<a href="mailto:scribe@crosswire.org" target="_blank">scribe@crosswire.org</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">I&#39;ve done my part and changed one more tag.  transChange has been upgraded from:<br>

&lt;i&gt;&lt;/i&gt;<br>
<br>
to:<br>
<br>
.transChangeSupplied {<br>
      font-style: italic;<br>
}<br>
<br>
&lt;span class=&quot;transChangeSupplied&quot;&gt;&lt;/<u></u>span&gt;<br>
<br>
More changes welcome.<br>
<br>
Nic, you mentioned doing similar work on your own copies of our filters.  Any experience you&#39;d like to share?<br>
<br>
Bibletime, same.  I know you guys have had stuff styled for quite some time.<br></blockquote><div><br></div></div><div>BT outputs the following (found on lines 383ff of src/backend/filters/osistohtml.cpp):</div><div>
&lt;span class=&quot;transchange&quot;&gt;&lt;span class=&quot;**type**&quot;&gt; ...... &lt;/span&gt;&lt;/span&gt;</div><div><br></div><div>where **type** is the value of the type attribute of transChange. If no type attribute is specified, the value of the changeType attribute is used. If the type or changeType attribute of transChange is equal to &quot;added&quot; then the outer span gets a title=&quot;Added text&quot; and if it is equal to &quot;tenseChange&quot; it gets a title=&quot;Verb tense changed&quot; added to it.</div>


</div></div></div></blockquote></div><div><br>Would you really want a title to be output for this?  It seems very specific markup, quite different from the &quot;class based&quot; markup, and also raises the questions &quot;How do we change the text displayed for a transChange?</div>
</div></blockquote><div><br></div><div style>I&#39;m thinking we may have gotten our wires crossed in that line. The title is not instead of the class but in addition to. So a &lt;transChange type=&quot;tenseChange&quot;&gt; is replaced with &lt;span class=&quot;transchange&quot; title=&quot;Verb tense changed&quot;&gt;&lt;span class=&quot;tenseChange&quot;&gt;**textual content of original**&lt;/span&gt;&lt;/span&gt;</div>
<div style><br></div><div style>So the CSS still works as intended. Granted, you can set CSS selectors on arbitrary attributes with XPath-inspired syntax if you have a new enough rendering engine, which both BibleTime and Xiphos have at this time. Based on the code, I&#39;m guessing this handling was originally limited to only added and tenseChange and later people just got a little lazy with it and didn&#39;t add in those titles.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_quote"><div>  Or translate it?  </div>
</div></blockquote><div><br></div><div style>It&#39;s translated the same way every other UI string in BibleTime is translated.</div><div style><br></div><div style><div>                    buf.append(&quot;&lt;span class=\&quot;transchange\&quot; title=\&quot;&quot;);</div>
<div>                    buf.append(QObject::tr(&quot;Verb tense changed&quot;).toUtf8().constData());</div><div>                    buf.append(&quot;\&quot;&gt;&lt;span class=\&quot;tenseChange\&quot;&gt;&quot;);</div></div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_quote"><div>Or show it in some other way than a tooltip?&quot;<br>
</div></div></blockquote><div><br></div><div style>At least in the QtWebKit bindings, you can listen in on mouseover/hover events and pull out the text of the elements to display it however you want.</div><div style><br></div>
<div style>Also, to be clear, I wasn&#39;t suggesting that this BT code is /the way to go/, I was just answering Troy&#39;s question about how do those frontends which customize their HTML renderers handle the transChange element by telling him what the BT code does for the sake of comparison and discussion.</div>
<div style><br></div><div style>--Greg</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_quote">
<div>

<br>Jon<br> <br></div><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra">
<div class="gmail_quote">
<div><br></div><div>Only some of our styles have CSS associated with the .transchange, but those which do have font-style=italic.</div><div><br></div><div>Looking at the particular C++ code, I see a very straightforward simplification we could do for it, so I&#39;ll probably simplify that logic down.</div>


<span><font color="#888888">
<div><br></div><div>--Greg</div></font></span><div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Would ultimately like to get this filter set to something we all can share and improve.<br>
<br>
Troy<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/<u></u>mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</blockquote></div></div><br></div></div>
<br>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br></blockquote></div></div><br>
<br>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" target="_blank">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br></blockquote></div><br></div></div>