[jsword-devel] jsword-devel Digest, Vol 47, Issue 11

Yiguang Hu yighu at yahoo.com
Sat Apr 19 19:57:47 MST 2008


DM,

I'd like to propose another api in DwrBridge.java
similar to getOSISString:

public String getOSISString(String bookInitials,
String reference, int maxKeyCount)

The new api better be called something other than
getOSISString such as 

public String getOSISStringAny(String bookInitials,
String reference, int startCount, int maxKeyCount)  

for easy use with DWR.

This api need to deal with the bounday condition such
as the following scenario:
if (startCount<0){
startCount=0;
}
if (total<startCount+maxKeyCount){
startCount=total-maxKeyCount;
}

With this api, we could create paging effect with
buttons"<<" and ">>" etc to navigate forward and
backward through all the search results instead of the
first maxKeyCount results.

Thanks
Yiguang

--- jsword-devel-request at crosswire.org wrote:

> Send jsword-devel mailing list submissions to
> 	jsword-devel at crosswire.org
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
> 
>
http://www.crosswire.org/mailman/listinfo/jsword-devel
> or, via email, send a message with subject or body
> 'help' to
> 	jsword-devel-request at crosswire.org
> 
> You can reach the person managing the list at
> 	jsword-devel-owner at crosswire.org
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of jsword-devel digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: jsword-devel Digest, Vol 47, Issue 8
> (Yiguang Hu)
>    2. Re: jsword-devel Digest, Vol 47, Issue 8 (DM
> Smith)
>    3. Re: JSword servlet usage. (Joe Walker)
> 
> 
>
----------------------------------------------------------------------
> 
> Message: 1
> Date: Sat, 19 Apr 2008 12:39:36 -0700 (PDT)
> From: Yiguang Hu <yighu at yahoo.com>
> Subject: Re: [jsword-devel] jsword-devel Digest, Vol
> 47, Issue 8
> To: jsword-devel at crosswire.org
> Message-ID:
> <114299.9876.qm at web36103.mail.mud.yahoo.com>
> Content-Type: text/plain; charset=iso-8859-1
> 
> Please ignore my previous question. I changed with
> Sarissa.getDocument and also added sarissa_dhtml.js
> then it works now.
> Thanks
> Yiguang
> --- jsword-devel-request at crosswire.org wrote:
> 
> > Send jsword-devel mailing list submissions to
> > 	jsword-devel at crosswire.org
> > 
> > To subscribe or unsubscribe via the World Wide
> Web,
> > visit
> > 
> >
>
http://www.crosswire.org/mailman/listinfo/jsword-devel
> > or, via email, send a message with subject or body
> > 'help' to
> > 	jsword-devel-request at crosswire.org
> > 
> > You can reach the person managing the list at
> > 	jsword-devel-owner at crosswire.org
> > 
> > When replying, please edit your Subject line so it
> > is more specific
> > than "Re: Contents of jsword-devel digest..."
> > 
> > 
> > Today's Topics:
> > 
> >    1. Re: JSword servlet usage. (DM Smith)
> >    2. Re: JSword servlet usage. (Joe Walker)
> >    3. Re: [sword-devel] Web Front-end for JSword
> > (iPhone	targeted)
> >       (DM Smith)
> >    4. Re: JSword servlet usage. (DM Smith)
> > 
> > 
> >
>
----------------------------------------------------------------------
> > 
> > Message: 1
> > Date: Fri, 18 Apr 2008 23:13:40 -0400
> > From: DM Smith <dmsmith555 at yahoo.com>
> > Subject: Re: [jsword-devel] JSword servlet usage.
> > To: J-Sword Developers Mailing List
> > <jsword-devel at crosswire.org>
> > Message-ID:
> > <B661F6E6-06FD-4A43-BF50-9D2D5DA9F7DB at yahoo.com>
> > Content-Type: text/plain; charset=US-ASCII;
> > format=flowed; delsp=yes
> > 
> > I found out that this does not work on the Mac.
> I've
> > narrowed down the  
> > problem to Safari not having an XSLT processor.
> I'm
> > looking into  
> > alternatives.
> > 
> > -- DM
> > 
> > On Apr 18, 2008, at 1:42 PM, DM Smith wrote:
> > 
> > > I have worked up an example, demo, starting
> point
> > of how to use JSword
> > > in a servlet using DWR - Direct Web Remoting.
> > >
> > > Here is a tutorial on how to do it:
> > > http://www.crosswire.org/jsword/tutorial.html
> > >
> > > Here is a somewhat working version of it.
> > > (I don't have any of these indexed, so search
> does
> > not work.)
> > > http://www.crosswire.org:8080/jsword/iBD.html
> > >
> > > This doesn't follow the tutorial exactly. I had
> to
> > tweak the dwr
> > > javascript inclusions.
> > >
> > > There are some shortcomings in this example:
> > > 1) Because all the links are handled via java
> > script, it never leaves
> > > the page. Hitting the brower's back button does
> > not take you to the
> > > prior verse. It would be really nice to have
> > history.
> > > 2) There are no options, e.g. show/hide
> > notes/Strong's/xrefs/verse
> > > numbers/verse per line, .... There should be.
> > > 3) This does no caching at all.
> > >    a) It should cache the XSLT processor. During
> > development, you  
> > > don't
> > > want caching.
> > >    b) In doing options, we should cache the dom
> > for the current view.
> > > No sense in getting it again.
> > >    c) It may make sense to cache the dom for
> some
> > items in history.
> > > 4) It does not make good use of JavaScript.
> These
> > are pretty trivial.
> > >    a) Rather than notes in a sidebar, it would
> be
> > good to have a hover
> > > enabled popup of the note body.
> > >    b) Implement Strong's and Robinson's
> morphology
> > lookup into a  
> > > popup.
> > > Currently, it does these are not handled at all.
> > >    c) Perhaps highlight all words on the page
> > having the same Strong's
> > > number.
> > >    d) The javascript constrains the return to
> 100
> > verses to prevent
> > > overloading the server with a request like:
> > Gen-Rev. It would be  
> > > good to
> > > be able to get the next "n" verses.
> > >    e) Allow dictionary lookup of a displayed
> word.
> > >    f) The search input box and button should be
> > disabled when a book  
> > > is
> > > not indexed.
> > > 5) It makes no use of Cookies:
> > >    a) It would be good to have it remember
> current
> > state
> > >       - Current Bible.
> > >       - Current passage.
> > >       - Last lookup
> > >       - History
> > >       - Settings, e.g. show hide
> > >    b) Allow the user to prune the Bible list to
> > only those that they
> > > care about.
> > > 6) Handle right-to-left languages.
> > > 7) Allow for the specification of where to look
> > for modules and an
> > > alternate location ~/.jsword. (This is a
> > shortcoming in JSword that
> > > should be fixed.)
> > >    Right now it looks at every conceivable
> > location for SWORD modules
> > > and it will let you specify additional
> locations.
> > There is no way to
> > > prune the list or to specify that it should only
> > look in a given  
> > > location.
> > >    Right now it will only look at ~/.jsword,
> which
> > must be writable.  
> 
=== message truncated ===



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ



More information about the jsword-devel mailing list