<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2802" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space"
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you for taking the time to respond. Sorry I
did not make it clear in my past as to what I am trying to do. Basically, my
goal is to get a chapter from the KJV module in HTML format, and display it in
the internet explorer browser, along with strong's tags. The HTML seems to
be valid for most chapters except that I encountered a problem in Genesis 24:67.
The code that I am using in order to get the words and strong's tag in
a verse is the same as that in the lookup tool (found in
sword-1.5.8\examples\cmdline )</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here is the code that lookup.cpp uses:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial><FONT face=Verdana color=#000080 size=2>int main(int argc,
char **argv)<BR>{<BR>        SWMgr manager(0, 0, true, 0, true);<BR>        SWModule
*target;<BR>        ModMap::iterator it;<BR><BR>        if (argc != 3) {<BR>                fprintf(stderr,
"\nusage: %s <modname> <\"lookup key\">\n"<BR>                                                         "\tExample:
lookup KJV \"James 1:19\"\n\n", argv[0]);<BR> <BR>                exit(-1);<BR>        }<BR><BR>        it =
manager.Modules.find(argv[1]);<BR>        if (it == manager.Modules.end())
{<BR>                fprintf(stderr, "Could not find module [%s]. Available modules:\n",
argv[1]);<BR>                for (it = manager.Modules.begin(); it != manager.Modules.end();
it++) {<BR>                        fprintf(stderr, "[%s]\t - %s\n", (*it).second->Name(),
(*it).second->Description());<BR>                }<BR>                exit(-1);<BR>        }<BR><BR>        manager.setGlobalOption("Headings",
"On");<BR><BR>        target =
(*it).second;<BR><BR>        target->setKey(argv[2]);<BR><BR>        (const char
*)*target;                // force an entry lookup to resolve key so we get the idxbuf
entry for the key<BR>        std::cout << (const char *)(SWKey &)*target
<< ":\n";<BR>//std::cout << target->StripText();<BR>        std::cout
<< target->getRawEntry();<BR>        std::cout << "\n";<BR>        std::cout
<< "==========================\n";<BR>        std::cout << "Entry
Attributes:\n\n";</FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT face=Verdana size=2><FONT
face=Arial></FONT></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT face=Verdana size=2><FONT
face=Arial></FONT> </DIV>
<DIV><BR><FONT color=#000080>AttributeTypeList::iterator
i1;<BR>        AttributeList::iterator i2;<BR>        AttributeValue::iterator
i3;</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><BR><FONT color=#000080> for (i1 =
target->getEntryAttributes().begin(); i1 !=
target->getEntryAttributes().end(); i1++) {<BR>                std::cout << "[ "
<< i1->first << " ]\n";<BR>                for (i2 = i1->second.begin(); i2
!= i1->second.end(); i2++) {<BR>                        std::cout << "\t[ " <<
i2->first << " ]\n";<BR>                        for (i3 = i2->second.begin(); i3 !=
i2->second.end(); i3++) {<BR>                                std::cout << "\t\t" <<
i3->first << " = " << i3->second <<
"\n";<BR>                        }<BR>                }<BR>        }<BR>        std::cout << std::endl;<BR>        return
0;<BR>}</FONT></FONT><BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I will try running the above code on KJV2006 module
to see if it gives the same problem. Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Mmital</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dmsmith555@yahoo.com href="mailto:dmsmith555@yahoo.com">DM Smith</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=sword-devel@crosswire.org
href="mailto:sword-devel@crosswire.org">SWORD Developers' Collaboration
Forum</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, June 11, 2006 8:07 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [sword-devel] KJV Genesis
24:67</DIV>
<DIV><BR></DIV>
<DIV>Could you provide a little more information? Which tool is the "lookup
tool?"</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>The output does not look like the tool is reporting anything that
is outside of <w> elements.</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>I'm working on fixing the KJV
module as it has some encoding problems and some missing 's. Would you check
to see if the new module has the same problem.
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>You can get a beta of it here:
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV><SPAN class=Apple-tab-span
style="WHITE-SPACE: pre"></SPAN>www.crosswire.org/~dmsmith/kjv2006</DIV>
<DIV><BR class=khtml-block-placeholder>
<DIV>Just follow the links at the bottom of the page.</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>(This beta has only one known problem and that is with the last verse of
every book. Some frontends ignore the problem.)</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV><BR>
<DIV>
<DIV>On Jun 11, 2006, at 1:31 AM, Mmital wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The lookup tool in Genesis 24:67 gives the
following output:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=h? size=2>Genesis 24:67:<BR><w
lemma="x-Strongs:H03327">And Isaac</w> <w
morph="x-StrongsMorph:TH8686" lemma="x-Strongs:H0935">brought
her</w> <w lemma="x-Strongs:H0517">into his mother</w>
<w lemma="x-Strongs:H08283">Sarah'</w> <w
lemma="x-Strongs:H0168">tent</w>, <w
morph="x-StrongsMorph:TH8799" lemma="x-Strongs:H03947">and took</w>
<w lemma="x-Strongs:H07259">Rebekah</w>, <w
lemma="x-Strongs:H0802">and she became his wife</w>; <w
morph="x-StrongsMorph:TH8799" lemma="x-Strongs:H0157">and he
loved</w> <w lemma="x-Strongs:H03327">her: and Isaac</w>
<w morph="x-StrongsMorph:TH8735" lemma="x-Strongs:H05162">was
comforted</w> <w lemma="x-Strongs:H0310">after</w> <w
lemma="x-Strongs:H0517">his mother'</w> <transChange
type="added">death</transChange> .<milestone type="x-p"
/><BR>==========================<BR>Entry Attributes:</FONT></DIV>
<DIV><FONT face=h? size=2></FONT> </DIV>
<DIV><FONT face=h? size=2>[ Word ]<BR> [ 001 ]<BR> Lemma =
H03327<BR> LemmaClass = strong<BR> Text = And
Isaac<BR> [ 002 ]<BR> Lemma =
H0935<BR> LemmaClass = strong<BR> Morph =
TH8686<BR> MorphClass = x-StrongsMorph<BR> Text =
brought her<BR> [ 003 ]<BR> Lemma =
H0517<BR> LemmaClass = strong<BR> Text = into his
mother<BR> [ 004 ]<BR> Lemma =
H08283<BR> LemmaClass = strong<BR> Text =
Sarah'<BR> [ 005 ]<BR> Lemma =
H0168<BR> LemmaClass = strong<BR> Text =
tent<BR> [ 006 ]<BR> Lemma =
H03947<BR> LemmaClass = strong<BR> Morph =
TH8799<BR> MorphClass = x-StrongsMorph<BR> Text = and
took<BR> [ 007 ]<BR> Lemma =
H07259<BR> LemmaClass = strong<BR> Text =
Rebekah<BR> [ 008 ]<BR> Lemma =
H0802<BR> LemmaClass = strong<BR> Text = and she
became his wife<BR> [ 009 ]<BR> Lemma =
H0157<BR> LemmaClass = strong<BR> Morph =
TH8799<BR> MorphClass = x-StrongsMorph<BR> Text = and
he loved<BR> [ 010 ]<BR> Lemma =
H03327<BR> LemmaClass = strong<BR> Text = her: and
Isaac<BR> [ 011 ]<BR> Lemma =
H05162<BR> LemmaClass = strong<BR> Morph =
TH8735<BR> MorphClass = x-StrongsMorph<BR> Text = was
comforted<BR> [ 012 ]<BR> Lemma =
H0310<BR> LemmaClass = strong<BR> Text =
after<BR> [ 013 ]<BR> Lemma =
H0517<BR> LemmaClass = strong<BR> Text = his
mother'</FONT></DIV>
<DIV><FONT face=h? size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The last block of text should be "his mother's
death". When using a HTML filter to display the text in the browser (with
both lemma and morphological tags on), the word<EM> 'death'</EM> is
lost.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV
style="MARGIN: 0px">_______________________________________________</DIV>
<DIV style="MARGIN: 0px">sword-devel mailing list: <A
href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</A></DIV>
<DIV style="MARGIN: 0px"><A
href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://wwwcrosswire.org/mailman/listinfo/sword-devel</A></DIV>
<DIV style="MARGIN: 0px">Instructions to unsubscribe/change your settings at
above page</DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>sword-devel mailing
list:
sword-devel@crosswire.org<BR>http://www.crosswire.org/mailman/listinfo/sword-devel<BR>Instructions
to unsubscribe/change your settings at above page</BLOCKQUOTE></BODY></HTML>