<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Martin,<br>
    <br>
    Thanks for the info, this is really good to know. I'll look deeper
    into mmseg4j and later JSword versions when I move beyond this
    immediate release.<br>
    <br>
    Best,<br>
    Brian.<br>
    <br>
    On 11/15/2011 12:02 AM, Martin Denham wrote:
    <blockquote
cite="mid:CAJ30_OPA8_=R=v0nAz_Du0VoMfmJHK+L+YjSJV9oAZ0piWj6HA@mail.gmail.com"
      type="cite">And Bible couldn't use smartcn because it was too
      large and slow for mobile phones so we used mmseg4j.  From memory
      the only change required was changing AnalyzerFactory.properties
      as below:
      <div>zh.Analyzer=org.crosswire.jsword.index.lucene.analysis.Mmseg4jChineseLuceneAnalyzer</div>
      <div><br>
      </div>
      <div>and adding the attached file.</div>
      <div><br>
      </div>
      <div>Regards</div>
      <div>Martin</div>
      <div><br>
        <br>
        <div class="gmail_quote">On 14 November 2011 08:36, Brian
          Fernandes <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:infernalproteus@gmail.com">infernalproteus@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex;">DM,<br>
            <br>
            Thanks for the notes. Given my need to release sooner rather
            than later, I will stick to JSword 1.6 for now; as that is
            the version  that FireBible currently recommends, there are
            just too many index related issues to take care of to allow
            a quick release.<br>
            <br>
            I think I will *not* bundle the libraries into FireBible but
            make some sort of downloading provision where FireBible will
            automatically download and unzip the JSword distribution
            (probably through a set of dialogs with minimal user input).
            For future FireBible updates, I will update the version of
            JSword it points to.<br>
            <br>
            I've been out of the JSword space for too long, so if there
            are any specific areas or bugs in JSword that you could use
            help with, please let me know. How is the alternate
            versification work coming? If I can help there, please let
            me know how.<br>
            <br>
            In Him,<br>
            Brian.
            <div class="HOEnZb">
              <div class="h5"><br>
                <br>
                On 11/13/2011 5:12 PM, DM Smith wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex"> On
                  11/10/2011 05:14 AM, Brian Fernandes wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    Currently when you install FireBible you are
                    expected to point it to a JSword installation on
                    your system, the FireBible extension is small and
                    does not include JSword.<br>
                    When I submitted this for inclusion in the Firefox
                    add-ons list, they told me that the whole
                    installation process was just too complicated;
                    besides the fact that you must have Java installed,
                    you also need to download JSword, unzip, point to
                    this location in FireBible. I can see their point,
                    especially for non dev types. FireBible is currently
                    listed (but hidden from most public) in their
                    extension registry for this reason and I intend to
                    correct this now, at least the JSword installation
                    bit.<br>
                    <br>
                    I intend to include the JSword binaries in the
                    extension, but continue to give users the ability to
                    specify an external JSword installation if they
                    wish. This takes the extension size up from 300KB to
                    nearly 4MB. But that is with JSword 1.6. With the
                    latest nightly builds, the sizes of JARs are
                    significantly higher and I have a few questions:<br>
                    <br>
                    a) I assume a large number of fixes and enhancements
                    (like faster/better searching) have been made since
                    1.6 and they are in the nightly builds. Does it make
                    sense to include a nightly build in the extension or
                    should I stick to 1.6 for now? Is there a more
                    recent stable build that I could use?<br>
                  </blockquote>
                  <br>
                  The nightly build is probably the best at this point,
                  but test it first.<br>
                  <br>
                  I know there are some problems with the BibleDesktop
                  resources.<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
                    b) In the nightly binary, there are multiple
                    versions of Lucene - 2.9.1, 3.0.2 and 3.0.3. Is this
                    intentional or can I stick with Lucene 3.0.3?<br>
                  </blockquote>
                  For the nightly build, you should be using only the
                  latest. The others should not be there. That is a
                  problem with our upgrade process.<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
                    <br>
                    c) I know the newest version of Lucene, Lucene 3,
                    will not work with indices created with Lucene 1.
                    Some time ago DM mentioned that the code to detect
                    that the index present was a Lucene 1 index and thus
                    invalid was not complete. Has any work been done on
                    that front or will users still have to manually
                    delete their indices?<br>
                  </blockquote>
                  <br>
                  That's correct. They will appear to work but won't.
                  Also the nightly build also assumes that the indexes
                  are built with it.<br>
                  <br>
                  The index detection has not been completed. It will
                  need to be before a release is done.<br>
                  <br>
                  Also, Java 4, 5 and 7 differ in the Unicode standard
                  they support. (5 and 6 were the same.) This will
                  require new indexes for some languages, but without
                  analysis it'd be best to rebuild all non-English
                  language indexes. (It hasn't affected ASCII and
                  probably not affected Latin 1.)<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
                    d) What is lucene-smartcn? That JAR is 3.5MB in size
                    and almost equals the size of all the other JARs
                    that make up JSword. From what I could find online,
                    it adds better Chinese indexing but I would like to
                    avoid including this as it has a very significant
                    impact on the size of the extension.<br>
                    i) Will Lucene / JSword still work if this file is
                    absent?<br>
                  </blockquote>
                  Yes. But you may need to change a resource file to
                  point to the other Chinese analyzer.<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
                    ii) If yes, will indexing of Chinenese modules be
                    completely broken or just not as "smart" if I remove
                    the library from the distribution?<br>
                  </blockquote>
                  You'll have to try and see whether it is broken. :)
                  Regarding "smart", it includes a Chinese dictionary
                  that helps it know what are words (a gross
                  oversimplification).<br>
                  <br>
                  <br>
                  For searching to work it has to use the same analyzer
                  with which the index was created.<br>
                  <br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex"> <br>
                    <br>
                    Thanks,<br>
                    Brian.<br>
                    <br>
                    _______________________________________________<br>
                    jsword-devel mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:jsword-devel@crosswire.org"
                      target="_blank">jsword-devel@crosswire.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://www.crosswire.org/mailman/listinfo/jsword-devel"
                      target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
                  </blockquote>
                  <br>
                  <br>
                  _______________________________________________<br>
                  jsword-devel mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:jsword-devel@crosswire.org"
                    target="_blank">jsword-devel@crosswire.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.crosswire.org/mailman/listinfo/jsword-devel"
                    target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
                  <br>
                </blockquote>
                <br>
                _______________________________________________<br>
                jsword-devel mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:jsword-devel@crosswire.org"
                  target="_blank">jsword-devel@crosswire.org</a><br>
                <a moz-do-not-send="true"
                  href="http://www.crosswire.org/mailman/listinfo/jsword-devel"
                  target="_blank">http://www.crosswire.org/mailman/listinfo/jsword-devel</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
jsword-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jsword-devel@crosswire.org">jsword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/jsword-devel">http://www.crosswire.org/mailman/listinfo/jsword-devel</a>
</pre>
    </blockquote>
  </body>
</html>