[bt-devel] basiv v11n mapper available

Greg Hellings greg.hellings at gmail.com
Wed Jun 28 13:46:18 MST 2006


I applaud this step... it certainly seems that a C++ wrapper for it,
if it proves effective, would be perfectly in-line, since that is the
main language for Sword and Bibletime.  Thanks for making this effort
:).

--Greg

On 6/28/06, Martin Gruner <mg.pub at gmx.net> wrote:
> Hi,
>
> in the SVN module "sword-tools":/versification/mapper you can find a first
> attempt at mapping of OSIS schema data. A perl script reads in the data
> available from http://www.ccel.org/refsys/refsys.html and puts it into two
> sqlite3 databases.
>
> The first one, v11n-schema.db, is about 7.6 Megs and contains the full osis
> schemas.
> The second one, v11n-mapping.db, is about 1.1 Megs and contains the mapping
> data, where schemas do differ.
>
> A little perl program demonstrates how to use the mapping data. To try it out,
> you'll need perl, sqlite3, libdbi-perl and libdbd-sqlite-perl. It will
> perform the db access. The fact that it is about 50 lines shows how easy
> using the db is.
>
> I chose sqlite3 because it is index based, supports ACID (transactions) and
> lightning fast. Applications could do all kinds of fancy things with these
> databases. A C interface exists, and I guess that bindings for other
> languages are available too. If desired, a C++ class for Sword can be written
> which uses the db to perform the mappings. At least the mappings db would
> have to be part of the Sword distribution then.
>
> It should also be possible to add to the perl script so that it produces other
> file formats in addition to sqlite, which other frontends might need
> (jsword?). Please let me know, feedback is appreciated.
>
> I hope this brings us closer to full v11n support in Sword.
>
> mg
> _______________________________________________
> bt-devel mailing list
> bt-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/bt-devel
>


More information about the bt-devel mailing list