[sword-devel] ActiveDiatheke 1.2 question.html.html

Lynn Allan sword-devel@crosswire.org
Fri, 19 Dec 2003 08:26:12 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C3C609.C2CA77C0
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

[sword-devel] ActiveDiatheke 1.2 question.htmlHi Steve,

>> I can send you a file I wrote that might help get it working again.
>> HowTo_BuildAndUseActiveDiatheke.rtf

> Please. Thanks.

After "lurking" several months on sword-develop and reading about a =
years worth of posts on it and jsword-devel, I thought I could =
contribute a fix to Active Diatheke (AD).  I was interested in the =
InVerse Scripture memorization freeware program having access to =
./sword/modules/texts but was reluctant to confront the "worthless until =
proven useful" mentality about newbies that occasionaly was noticeable. =
Not wanting to appear uselessly "empty handed", I proposed fixes to AD. =
Per a sword maintainers guidance, I put together=20
http://osdn.dl.sourceforge.net/sourceforge/lcdbible/LynnAllanChanges.zip
to send to them using C++ com code rather than VB. This has the .rft =
file mentioned above, the changes to actual ActiveDiatheke code, and the =
complete Visual C++ 6.0 package to exercise the revised ActiveDiatheke. =
There was also some code for ./sword/examples/cmdline to exercise the =
changes.

You would probably need to merge the AD changes from what is currently =
in CVS. The compile error was related to a missing parameter to "query" =
for "range", which I didn't understand and simply used NULL. I believe =
"range" became a new feature of 1.5.6 code, but many of the apps such as =
AD didn't stay in sync and thus "broke". My impression is that 1.5.7 =
will remove the apps from the distribution, and I speculate it is for a =
related reason for sync issues.

As far as I could tell, the AD code was fixed with something meaningful =
for "range", then applied, then overwritten sometime later and thus =
returned to broken status. I think the AD Demo VB code was changed to =
have something related to "range", so that might explain why it doesn't =
work anymore.=20

I gave up on AD and started wrestling with sword-api code directly.

> ActiveDiatheke.ocx is only 311k in size - this makes me think that the
> working routines reside in some other file(s) - swicu20.dll perhaps.
> I wonder if it might be an easier idea to try to tag along with those =
vs.
> trying to keep the ocx up.

This is the nature of static linking. The linker pulls in those routines =
from 2.5+meg swordlib that are actually referenced. Unfortuately, the =
VerseKey code has "octopus tentacles" with many parsing dependencies =
(listkey and beyond) that bloat it's size. It could be about 50kb =
otherwise, including references to compressed Bible texts. This is the =
"point" of my experiments with CanonVersifier and an "experimental =
plug-in subset" of the sword-api. The entire statically linked =
LcdBible.exe is 32kb using CanonVersifier instead of VerseKey.

ActiveDiatheke is relatively independent of icu, and it greatly =
simplifies the whole thing to use the non-icu project in the .dsp.

> Steve Tang...

I haven't been able to find your direct eMail address. It generally =
isn't included when you post to sword-devel, so some people include =
their eMail address to facilitate offline communications.

Sharing the reason for the season,
http://learningcards.eeworks.org/EeCard01.html

Lynn A.
l.allan@att.net

------=_NextPart_000_0001_01C3C609.C2CA77C0
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>[sword-devel] ActiveDiatheke 1.2 =
question.html</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dwindows-1252"><BASE=20
href=3Dhttp://www.crosswire.org/pipermail/sword-devel/2003-December/02002=
9.html><LINK=20
href=3D"index.html" rel=3DIndex><LINK =
href=3D"mailto:sword-devel%40crosswire.org"=20
rel=3Dmade>
<META content=3Dindex,nofollow name=3Drobots><LINK href=3D"020025.html"=20
rel=3DPrevious><LINK href=3D"020026.html" rel=3DNext>
<META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Steve,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV>&gt;&gt;<I> I can send you a file I wrote that might help get it =
working=20
again.<BR></I>&gt;&gt;<I> =
HowTo_BuildAndUseActiveDiatheke.rtf<BR></I><BR>&gt;=20
Please. Thanks.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>After "lurking" several months on=20
sword-develop&nbsp;and reading&nbsp;about a years worth =
of&nbsp;posts&nbsp;on=20
it&nbsp;and jsword-devel, I thought I could contribute&nbsp;a fix to =
Active=20
Diatheke (AD).&nbsp;&nbsp;I was interested in the InVerse Scripture =
memorization=20
freeware program having access to ./sword/modules/texts but was =
reluctant to=20
confront the&nbsp;"worthless until proven useful" mentality about =
newbies that=20
occasionaly was noticeable. Not wanting to appear uselessly "empty =
handed", I=20
proposed fixes to AD. Per a sword maintainers guidance, I put together=20
</FONT></DIV>
<DIV><A=20
href=3D"http://osdn.dl.sourceforge.net/sourceforge/lcdbible/LynnAllanChan=
ges.zip">http://osdn.dl.sourceforge.net/sourceforge/lcdbible/LynnAllanCha=
nges.zip</A></DIV>
<DIV><FONT face=3DArial size=3D2>to send to them using C++ com code =
rather than VB.=20
This has the .rft file mentioned above, the changes to actual =
ActiveDiatheke=20
code, and the complete Visual C++ 6.0 package to exercise the revised=20
ActiveDiatheke. There was also some code for ./sword/examples/cmdline to =

exercise the changes.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You would probably need to merge the AD =
changes=20
from what is currently in CVS. The compile error was related to a =
missing=20
parameter to "query" for "range", which I didn't understand and simply =
used=20
NULL. I believe "range" became a new feature of 1.5.6 code, but many of =
the apps=20
such as AD didn't stay in sync and thus "broke". My impression is that =
1.5.7=20
will remove the apps from the distribution, and I speculate it is for a =
related=20
reason for sync issues.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>As far as I could tell, the AD code was =
fixed with=20
something meaningful for "range", then applied, then overwritten =
sometime later=20
and thus returned to broken status.&nbsp;I think the AD Demo VB code was =
changed=20
to have something related to "range", so that might explain why it =
doesn't work=20
anymore. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I gave up on AD&nbsp;and started =
wrestling with=20
sword-api code directly.</FONT><BR><BR>&gt; ActiveDiatheke.ocx is only =
311k in=20
size - this makes me think that the<BR>&gt; working routines reside in =
some=20
other file(s) - swicu20.dll perhaps.<BR>&gt; I wonder if it might be an =
easier=20
idea to try to tag along with those vs.<BR>&gt; trying to keep the ocx =
up.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This is the nature of static linking. =
The linker=20
pulls in those&nbsp;routines from 2.5+meg swordlib that are actually =
referenced.=20
Unfortuately, the VerseKey code has "octopus tentacles" with many=20
parsing&nbsp;dependencies (listkey and beyond) that bloat it's size. It =
could be=20
about 50kb otherwise, including references to compressed Bible texts. =
This is=20
the "point" of my experiments with CanonVersifier and an "experimental =
plug-in=20
subset" of the sword-api. The entire statically linked LcdBible.exe is =
32kb=20
using CanonVersifier instead of VerseKey.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>ActiveDiatheke is relatively =
independent of icu,=20
and it greatly simplifies the whole thing to use the non-icu project in =
the=20
.dsp.</FONT><BR><BR>&gt; Steve Tang...</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I haven't been able to find your direct =
eMail=20
address. It generally isn't included when you post to sword-devel, so =
some=20
people include their eMail address to facilitate offline=20
communications.</FONT><BR><BR><FONT face=3DArial size=3D2>Sharing the =
reason for the=20
season,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://learningcards.eeworks.org/EeCard01.html">http://learningca=
rds.eeworks.org/EeCard01.html</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Lynn A.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"mailto:l.allan@att.net">l.allan@att.net</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0001_01C3C609.C2CA77C0--