<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div><br></div><div>There appears to be no references to rawcom in the junit tests at all. Only an enum reference in the code. If you can send an example next time you have time at your computer, it would be greatly appreciated.<br></div><div class="zmail_extra"><div id="Zm-_Id_-Sgn1"><div><br></div><div>---- On Wed, 27 Dec 2017 21:25:51 -0500&nbsp;<b>DM Smith &lt;dmsmith@crosswire.org&gt;</b> wrote ----<br></div></div><div><br></div><blockquote style="border-left: 1px solid #cccccc; padding-left: 6px; margin:0 0 0 5px"><div><div>Yes. In JSword. BibleDesktop doesn’t yet. Look in junit tests for rawcom. I’m away from my computer at the moment and can’t look.&nbsp;<br></div><div><br></div><div><div>— DM Smith<br></div><div>From my phone. Brief. Weird autocorrections.&nbsp;<br></div></div><div><div><br></div><div>On Dec 27, 2017, at 9:15 PM, Tim Hawes &lt;<a href="mailto:trhawes@althusius.net">trhawes@althusius.net</a>&gt; wrote:<br></div></div><div><br></div><blockquote><div><div><span>_______________________________________________</span><br></div><div><span>jsword-devel mailing list</span><br></div><div><span><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a></span><br></div><div><span><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a></span><br></div></div></blockquote><div>_______________________________________________ <br></div><div>jsword-devel mailing list <br></div><div><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div></div><blockquote><div><div style="font-size: 10pt; font-family: Verdana, Arial, Helvetica, sans-serif"><div>Does JSword have the ability to write to the Personal Commentary? I seem to remember reading something a while back that it did. However, I can't seem to find any references.<br></div><div><br></div><div class="zmail_extra"><div><div><br></div><div>---- On Tue, 26 Dec 2017 12:46:51 -0500&nbsp;<b>Tim Hawes &lt;<a href="mailto:trhawes@althusius.net">trhawes@althusius.net</a>&gt;</b> wrote ----<br></div></div><div><br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0 0 0 5px"><div><div style="font-size: 10pt; font-family: Verdana, Arial, Helvetica, sans-serif"><div>Thank you! That did it.<br></div><div><br></div><div class="zmail_extra"><div><div><br></div><div>---- On Tue, 26 Dec 2017 10:51:55 -0500&nbsp;<b>DM Smith &lt;<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>&gt;</b> wrote ----<br></div></div><div><br></div><div><br></div></div></div><div><br></div><div>_______________________________________________ <br></div><div>jsword-devel mailing list <br></div><div><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0 0 0 5px"><div style=""><div>Just migrated the xslt from BibleDesktop into JSword.<br></div><div><br></div><div>The converter that the ConverterFactory uses is now org.crosswire.jsword.xml.ConfigurableConverter.java<br></div><div><br></div><div>The xslt is a resource of the same path.<br></div><div><br></div><div>I’m in the process of updating the xslt to HTML5. If you don’t like it or it doesn’t work for you you can revert to simple.xsl. Or continue whatever you are using.<br></div><div><br></div><div>In Him,<br></div><div><div><span style=""></span>DM<br></div><div><div><br></div><blockquote><div>On Dec 23, 2017, at 9:46 AM, DM Smith &lt;<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>&gt; wrote:<br></div><div><br></div><div><div style=""><div>Configuration is done via reflection using config.xml. Config.xml brings in a couple of classes in BibleDesktop for converting via xslt. I’ve begun to look into migrating it to JSword. Problem is that I have to break the dependency on Font which is in AWT.<br></div><div><br></div><div>The converter reflects to a class in BibleDesktop which looks for xsl/cswing/simple.xsl as a resource. If that resource is not found via classpath it fails.<br></div><div><br></div><div>The resources are in the BibleDesktop project. Just copy xsl/cswing/simple.xsl to the resource folder of JSword. Or add the BibleDesktop resource folder to the APIExamples classpath.<br></div><div><br></div><div>The only execution problem I found is that ESV has been renamed. So I’ll change the example to KLV (the Klingon Bible) as that won’t change.<br></div><div><br></div><div><div>DM<br></div><div><div><br></div><blockquote><div>On Dec 21, 2017, at 7:22 AM, Tim Hawes &lt;<a href="mailto:trhawes@althusius.net">trhawes@althusius.net</a>&gt; wrote:<br></div><div><br></div><div><div><div style="font-size: 10pt; font-family: Verdana, Arial, Helvetica, sans-serif"><div>Thank you so much for looking into this! But, no, I don't think that's it. If I comment out the call to readStyledText(), I get this exception instead:<br></div><div><br></div><div>Exception in thread "main" java.util.MissingResourceException: Cannot find resource: xsl/cswing/simple.xsl<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.crosswire.common.util.ResourceUtil.getResource(ResourceUtil.java:75)<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.crosswire.common.util.ResourceUtil.getResource(ResourceUtil.java:57)<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.selfdidactic.APIExamples.searchAndShow(APIExamples.java:286)<br></div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.selfdidactic.APIExamples.main(APIExamples.java:465)<br></div><div><br></div><div>That error does go away when I add that stylesheet from bibledesktop. So that should probably still be moved to jsword. But is seemingly unrelated to the NullPointerException I am getting when I call readStyledText() in the APIExamples.java<br></div><div><br></div><div>I've searched for other references for&nbsp;ConverterFactory.getConverter() in bibledesktop. I can see where it is being called, but am clueless why it seems to work for bibledesktop and not for the API examples.<br></div><div class="zmail_extra"><div><div><br></div><div>---- On Wed, 20 Dec 2017 23:20:54 -0500&nbsp;<b>DM Smith &lt;<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>&gt;</b> wrote ----<br></div></div><div><br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0 0 0 5px"><div><div>I’ll check it out. I think that JSword’s example uses the xslt from BibleDesktop. I’ve been working on that.&nbsp;<br></div><div><br></div><div><div>I should move it into JSword.&nbsp;<br></div><div><br></div><div><div>— DM Smith<br></div><div><br></div></div><div><div><br></div><div>On Dec 20, 2017, at 7:54 PM, Tim Hawes &lt;<a href="mailto:trhawes@althusius.net">trhawes@althusius.net</a>&gt; wrote:<br></div></div><div><br></div><blockquote><div><div><span>_______________________________________________</span><br></div><div><span>jsword-devel mailing list</span><br></div><div><span><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a></span><br></div><div><span><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a></span><br></div></div></blockquote></div><div>_______________________________________________ <br></div><div>jsword-devel mailing list <br></div><div><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div></div><blockquote><div><div style="font-size: 10pt; font-family: Verdana, Arial, Helvetica, sans-serif"><div>When trying to run the APIExamples.java for JSword, it throws this exception:<br></div><div><br></div><div>Exception in thread "main" java.lang.NullPointerException<br></div><div>at org.crosswire.jsword.util.ConverterFactory.getConverter(ConverterFactory.java:51)<br></div><div>at com.selfdidactic.APIExamples.readStyledText(APIExamples.java:163)<br></div><div>at com.selfdidactic.APIExamples.main(APIExamples.java:461)<br></div><div><br></div><div>It is happening in the&nbsp;readStyledText method where...<br></div><div><br></div><div>Converter styler = ConverterFactory.getConverter();<br></div><div><br></div><div><br></div><div>Has JSword changed without updating the API examples?<br></div><div><br></div><div><br></div></div></div></blockquote></blockquote></div><div><br></div></div><div><br></div></div><div>_______________________________________________<br></div><div>jsword-devel mailing list<br></div><div><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br></div><div><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div></div></blockquote></div><div><br></div></div></div><div>_______________________________________________<br></div><div>jsword-devel mailing list<br></div><div><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br></div><div><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div></div></blockquote></div><div><br></div></div><div>_______________________________________________ <br></div><div>jsword-devel mailing list <br></div><div><a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div><a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div></div></blockquote></blockquote></div><div><br></div></div></div></blockquote></blockquote></div><div><br></div></div><br></body></html>