[jsword-devel] Nave's Topical Bible Reference linking

DM Smith dmsmith at crosswire.org
Mon Mar 1 05:39:23 MST 2010


I think there's a beta for it.
Are you using that?
-- DM

On Mar 1, 2010, at 2:40 AM, Trenton D. Adams wrote:

> textPaneBookDataDisplay.refresh()
> 
> Under the following line...
>            String text = XMLUtil.writeToString(htmlsep);
> 
> put....
>            if ("Nave".equals(bmd.getInitials())) {
>                text = text.replaceAll("(#)(.+\\|)", "$1<a href=\"bible://{$2}\">$2</a>");
>            }
> 
> 1. The Nave's is pretty much raw text, and the biblical references are not marked up as far as I can see.  So, I figured a regex replacement with a link was the best way of doing it.
> 2. Used the convenience method replaceAll() as it's a single call, unless you want to cache a pre-compiled pattern matcher in some way?
> 
> Any thoughts?  Can we add this?
> 
> Thanks.
> 
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel




More information about the jsword-devel mailing list