[sword-devel] HTML5 front-end
greg.hellings at gmail.com
Wed Mar 28 15:12:45 MST 2012
On Wed, Mar 28, 2012 at 4:55 PM, Mike Hart <just_mike_y at yahoo.com> wrote:
> An HTML5 (or similar) reader (app free) with persistent retention of texts
> (offline, at least once the text is obtained the first time) would be a very
> very valuable item to have in the CrossWire.org stable.
> Sort of an evolved Go-Bible. :-)
Fetching the data from CrossWire and storing into a client-side data
store (either localStorage or IndexedDB) is relatively straightforward
and can be put together by any competent web developer familiar with
HTML5 and the SWORD library in a day or so.
The primary technical limitations I ran into are as follows:
* Client-side storage is typically limited to 5MB per origin, which is
hardly enough to store more than 2 or 3 full Bible texts when rendered
out to HTML. This is able to be circumvented by browser plugins but
typically the limit is hard-set for offline websites.
* Parsing user input to a reference. SWORD already has powerful and
mature code to do this, but a pure-HTML5 implementation would need to
either wrap the SWORD library client-side (which would limit the
implementation to a browser plugin) or port the existing code to a
> sword-devel mailing list: sword-devel at crosswire.org
> Instructions to unsubscribe/change your settings at above page
More information about the sword-devel