<!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>Yep, that was it. I got it working! Thanks!</div><div><br></div><div class="zmail_extra"><div id="Zm-_Id_-Sgn1"><div><br></div><div>---- On Thu, 28 Dec 2017 02:51:04 -0500&nbsp;<b>Manfred Bergmann &lt;manfred.bergmann@me.com&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>I believe the unit test you need to look at is „RawFileBackendTest“.<br></div><div>It’ll set up a new commentary and writes entries to it.<br></div><div><br></div><div><br></div><div>Manfred<br></div><div><br></div><div>&gt; Am 28.12.2017 um 03:50 schrieb Tim Hawes &lt;<a href="mailto:trhawes@althusius.net">trhawes@althusius.net</a>&gt;:<br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; ---- On Wed, 27 Dec 2017 21:25:51 -0500 DM Smith &lt;<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>&gt; wrote ----<br></div><div>&gt; <br></div><div>&gt; 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. <br></div><div>&gt; <br></div><div>&gt; — DM Smith<br></div><div>&gt; From my phone. Brief. Weird autocorrections. <br></div><div>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; _______________________________________________<br></div><div>&gt; jsword-devel mailing list<br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div><div>&gt; _______________________________________________ <br></div><div>&gt; jsword-devel mailing list <br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div><div>&gt; 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>&gt; <br></div><div>&gt; <br></div><div>&gt; ---- On Tue, 26 Dec 2017 12:46:51 -0500 Tim Hawes &lt;<a href="mailto:trhawes@althusius.net">trhawes@althusius.net</a>&gt; wrote ----<br></div><div>&gt; <br></div><div>&gt; Thank you! That did it.<br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; ---- On Tue, 26 Dec 2017 10:51:55 -0500 DM Smith &lt;<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>&gt; wrote ----<br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; _______________________________________________ <br></div><div>&gt; jsword-devel mailing list <br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div><div>&gt; Just migrated the xslt from BibleDesktop into JSword.<br></div><div>&gt; <br></div><div>&gt; The converter that the ConverterFactory uses is now org.crosswire.jsword.xml.ConfigurableConverter.java<br></div><div>&gt; <br></div><div>&gt; The xslt is a resource of the same path.<br></div><div>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; In Him,<br></div><div>&gt; DM<br></div><div>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; DM<br></div><div>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; Exception in thread "main" java.util.MissingResourceException: Cannot find resource: xsl/cswing/simple.xsl<br></div><div>&gt;         at org.crosswire.common.util.ResourceUtil.getResource(ResourceUtil.java:75)<br></div><div>&gt;         at org.crosswire.common.util.ResourceUtil.getResource(ResourceUtil.java:57)<br></div><div>&gt;         at com.selfdidactic.APIExamples.searchAndShow(APIExamples.java:286)<br></div><div>&gt;         at com.selfdidactic.APIExamples.main(APIExamples.java:465)<br></div><div>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; I've searched for other references for 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>&gt; <br></div><div>&gt; ---- On Wed, 20 Dec 2017 23:20:54 -0500 DM Smith &lt;<a href="mailto:dmsmith@crosswire.org">dmsmith@crosswire.org</a>&gt; wrote ----<br></div><div>&gt; <br></div><div>&gt; I’ll check it out. I think that JSword’s example uses the xslt from BibleDesktop. I’ve been working on that. <br></div><div>&gt; <br></div><div>&gt; I should move it into JSword. <br></div><div>&gt; <br></div><div>&gt; — DM Smith<br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; 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>&gt; <br></div><div>&gt; _______________________________________________<br></div><div>&gt; jsword-devel mailing list<br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div><div>&gt; _______________________________________________ <br></div><div>&gt; jsword-devel mailing list <br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div><div>&gt; When trying to run the APIExamples.java for JSword, it throws this exception:<br></div><div>&gt; <br></div><div>&gt; Exception in thread "main" java.lang.NullPointerException<br></div><div>&gt; at org.crosswire.jsword.util.ConverterFactory.getConverter(ConverterFactory.java:51)<br></div><div>&gt; at com.selfdidactic.APIExamples.readStyledText(APIExamples.java:163)<br></div><div>&gt; at com.selfdidactic.APIExamples.main(APIExamples.java:461)<br></div><div>&gt; <br></div><div>&gt; It is happening in the readStyledText method where...<br></div><div>&gt; <br></div><div>&gt; Converter styler = ConverterFactory.getConverter();<br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; Has JSword changed without updating the API examples?<br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; _______________________________________________<br></div><div>&gt; jsword-devel mailing list<br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div><div>&gt; <br></div><div>&gt; _______________________________________________<br></div><div>&gt; jsword-devel mailing list<br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div><div>&gt; <br></div><div>&gt; _______________________________________________ <br></div><div>&gt; jsword-devel mailing list <br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a> <br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a> <br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; <br></div><div>&gt; _______________________________________________<br></div><div>&gt; jsword-devel mailing list<br></div><div>&gt; <a href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a><br></div><div>&gt; <a href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br></div><div><br></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></div><div><br></div></div><br></body></html>