<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div style="color: rgb(33, 33, 33); background-color: rgb(255, 255, 255); text-align: left;" dir="auto">
That does make sense. Thanks for the explanation. </div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> sword-devel <sword-devel-bounces@crosswire.org> on behalf of Troy A. Griffitts <scribe@crosswire.org><br>
<b>Sent:</b> Sunday, November 15, 2020 12:41:12 AM<br>
<b>To:</b> SWORD Developers' Collaboration Forum <sword-devel@crosswire.org><br>
<b>Subject:</b> Re: [sword-devel] Remove Strong's references from KJV module</font>
<div> </div>
</div>
<div>Greg is certainly right, the KJV source markup is OSIS, which you can discover by looking in the module's kjv.conf file. SWORD's typical nomenclature for filters is to start the filter name with the markup source which it is designed to work upon, thus
 GBFPlain would take GBF source markup and output plain text. As Greg suggests, OSISPlain would take OSIS source markup (what the KJV module uses) and output plain text.<br>
<br>
Having said all this, you probably never will need to do any of this manually. SWORD’s factory classes (SWMgr in this instance) should look at the module's .conf file and add all the right filters for you if you tell the engine what "Render" format you'd like.
 In my previous example, that's done with the line:<br>
<br>
SWMgr library(new MarkupFilterMgr(FMT_PLAIN));<br>
<br>
This says, render PLAIN text. You could just as easily say here render RTF, LATEX, XHTML, or any of a number of others (see FMT_* in swmodule.h)<br>
<br>
Hope this explains a bit of how things generally flow.<br>
<br>
Troy<br>
<br>
<div class="x_gmail_quote">On November 14, 2020 8:46:40 PM MST, Greg Hellings <greg.hellings@gmail.com> wrote:
<blockquote class="x_gmail_quote" style="margin:0pt 0pt 0pt 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="auto">Have you tried OSISPlain? KJV is not in GBF</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Sat, Nov 14, 2020, 21:42 Loren Burkholder <<a href="mailto:computersemiexpert@outlook.com">computersemiexpert@outlook.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
I'm trying to get the plain text for a verse from the KJV module, but I can't figure out how to remove the Strong's references. I've tried adding a sword::GBFPlain and sword::GBFStrongs as a strip filter to my KJV module, but it only strips out the beginning
 of the <w> element, leaving me with stuff like:<br>
<br>
> salvm="strong:H072255">In the beginning<br>
<br>
as my output, instead of taking out the whole <w salvm="strong:H072255"> tag. What should I be doing to get rid of all this?<br>
<br>
Thanks in advance.<br>
Loren Burkholder<br>
<br>
<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank" rel="noreferrer">
sword-devel@crosswire.org</a><br>
<a href="http://crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer noreferrer" target="_blank">http://crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</blockquote>
</div>
</blockquote>
</div>
<br>
-- <br>
Sent from my Android device with K-9 Mail. Please excuse my brevity.</div>
</body>
</html>