[sword-devel] [Fwd: BOUNCE sword-devel@crosswire.org: Non-member submission from ["Stuart D. Gathman" <stuart@gathman.bmsi.com>]]

Troy A. Griffitts sword-devel@crosswire.org
Thu, 20 Dec 2001 03:14:52 -0700


This is a multi-part message in MIME format.
--------------4EC40B276B0D526DFB0C3043
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Forwarded to the list.  Please use a subscribed address next time you
send.
______________________________
--------------4EC40B276B0D526DFB0C3043
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Return-Path: <owner-sword-devel@crosswire.org>
Received: (from majordomo@localhost)
	by www.crosswire.org (8.9.3/8.9.3) id XAA02466;
	Wed, 19 Dec 2001 23:02:03 -0700
Date: Wed, 19 Dec 2001 23:02:03 -0700
From: owner-sword-devel@crosswire.org
Message-Id: <200112200602.XAA02466@www.crosswire.org>
X-Authentication-Warning: www.crosswire.org: majordomo set sender to owner-sword-devel@crosswire.org using -f
To: owner-sword-devel@crosswire.org
Subject: BOUNCE sword-devel@crosswire.org:    Non-member submission from ["Stuart D. Gathman" <stuart@gathman.bmsi.com>]   

>From scribe@crosswire.org  Wed Dec 19 23:02:02 2001
Received: from www.bmsi.com ([216.133.86.66])
	by www.crosswire.org (8.9.3/8.9.3) with ESMTP id XAA02463
	for <sword-devel@crosswire.org>; Wed, 19 Dec 2001 23:02:01 -0700
Received: from gathman.bmsi.com (stuartppp [219.109.11.136])
	by www.bmsi.com (8.12.1/8.12.1) with ESMTP id fBK5uEQh067646
	for <sword-devel@crosswire.org>; Thu, 20 Dec 2001 00:56:16 -0500
Date: Thu, 20 Dec 2001 00:56:14 -0500 (EST)
From: "Stuart D. Gathman" <stuart@gathman.bmsi.com>
To: <sword-devel@crosswire.org>
Subject: RE: [sword-devel] Re: GUI interfaces
In-Reply-To: <000501c188d6$dee87640$0f01a8c0@didymus>
Message-ID: <Pine.LNX.4.33.0112200042230.3875-200000@gathman.bmsi.com>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1843103755-1157525039-1008827774=:3875"

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1843103755-1157525039-1008827774=:3875
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Wed, 19 Dec 2001, Chris Little wrote:

> Been there.  Done that. :)  But apparently we haven't promoted it
> enough, possibly because screenshots of term windows don't look cool on
> a webpage. :)
> 
> > simple command line tool to quote a verse by reference or 
> > output a concordance like list of references given a search 
> > key would be handy for a scripted web page or editor macros.  
> 
> diatheke does that.  http://www.crosswire.org/sword/diatheke/
> There's also ActiveDiatheke, which will do most of the Diatheke stuff as
> an ActiveX control, but this hasn't been updated since 1.5.2.

This did not compile in 1.5.2 - complained the UnicodeRTF::UnicodeRTF(void)
was not in the library.  I updated my spec file to patch 
src/modules/filters/Makefile to add the line

cpp += unicodertf.cpp

I have attached my sword.spec - the one supplied with the project is a bit
dated.  My version has sword-devel and sword-apps subpackages.  I have
added diatheke to the base package.

> The need for a command line interface to Sword was my reason for writing
> Diatheke.  It is the foundation of our CGI script, our SOAP interface
> (just a slightly different CGI script), & our IRC BibleBot (type
> !biblehelp in #sword on irc.openprojects.org).

Sounds good, but after I got it to compile with the above, I can't get
it to output anything but (null).  E.g.

$ diatheke -b gen -k light
(null)

Any hints?

> > A C interface would be more easily wrapped for script 
> > languages like Python or Perl.
> 
> Correct me if I'm wrong (and I probably am) but don't we keep all the
> public interefaces accesible to C?

Now that I look, I see a Pascal interface - which implies that there is a
C interface - but I couldn't guess which include was for C programs.
Any hints?  I might want to write a Python wrapper.

> > A command line tool would 
> > also let you search the Scriptures on a 4Mb 386 in console 
> > mode (although an ncurses frontend would be nicer for that).
> 
> We have an ncurses frontend also
> (http://sourceforge.net/projects/irenaeus), but it's about 10 months
> since its last release and I'm not sure if it's being maintained any
> more.  Perhaps someone would like to take this project over if its
> author isn't maintain it anymore?  Once the transliterator stuff in ICU
> is finished, it should be a nice interface interface for any of our
> modules.

I'll take a look at this.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

--1843103755-1157525039-1008827774=:3875
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="sword.spec"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.33.0112200056140.3875@gathman.bmsi.com>
Content-Description: RPM Spec for 1.5.2
Content-Disposition: attachment; filename="sword.spec"

U3VtbWFyeToJVGhlIFNXT1JEIFByb2plY3QgZnJhbWV3b3JrIGZvciBtYW5p
cHVsYXRpbmcgQmlibGUgdGV4dHMNCk5hbWU6CQlzd29yZA0KJWRlZmluZSB2
ZXJzaW9uIDEuNS4yDQpWZXJzaW9uOgkle3ZlcnNpb259DQpSZWxlYXNlOgkz
DQpJY29uOgkJc3dvcmQuZ2lmDQpDb3B5cmlnaHQ6CUdQTA0KUGFja2FnZXI6
CUNyb3NzV2lyZSBCaWJsZSBTb2NpZXR5DQpVUkw6CQlodHRwOi8vd3d3LmNy
b3Nzd2lyZS5vcmcNClNvdXJjZToJCWh0dHA6Ly93d3cuY3Jvc3N3aXJlLm9y
Zy9kb3dubG9hZC9mdHBtaXJyb3IudG1wL3B1Yi9zd29yZC9zb3VyY2UvdjEu
NS9zd29yZC0le3ZlcnNpb259LnRhci5neg0KR3JvdXA6CQlTeXN0ZW0gRW52
aXJvbm1lbnQvTGlicmFyaWVzDQpCdWlsZFJvb3Q6CS92YXIvdG1wL3N3b3Jk
LXJvb3QNCg0KJWRlc2NyaXB0aW9uIA0KVGhlIFNXT1JEIFByb2plY3QgaXMg
YW4gZWZmb3J0IHRvIGNyZWF0ZSBhbiBldmVyIGV4cGFuZGluZyBzb2Z0d2Fy
ZSBwYWNrYWdlIGZvciByZXNlYXJjaCBhbmQgc3R1ZHkgb2YgR29kIGFuZCBI
aX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