[jsword-devel] Passage List Parsing
Tonny Kohar
tonny.kohar at gmail.com
Mon Sep 1 02:23:13 MST 2008
Hi,
On Sat, Aug 30, 2008 at 7:19 PM, DM Smith <dmsmith555 at yahoo.com> wrote:
>> How is the tree solve the problem of
> It is a Trie not a Tree. A tree has data at the nodes. A Trie encodes
> data on the path to the leaf.
> ...
>> - point 3.1
> Ambiguous user input for book names.
> The outcome of the Trie lookup for Jo would be Job, Jonah and John.
> JSword prioritizes these differently than SWORD: NT first and then by
> the order that they occur in the testament.
>
Does java.util.TreeMap methods tailMap suffice to handle this case ?
And yes, TreeMap is not trie, but the methods tailMap provide
something similar like trie operation.
The problem is the return value which is SortedMap based on natural ordering.
Cheers
Tonny Kohar
--
Alkitab Bible Study
imagine, design, create ...
http://www.kiyut.com
More information about the jsword-devel
mailing list