<html><head></head><body>Hi Loren,<br><br>There should be examples you can find under the examples/ folder in the source which output plain text, but there are 2 general ways to do this in SWORD:<br><br>1)<br><br>SWMgr library;<br>SWModule *kjv = library.getModule("KJV");<br>kjv->setKey("jn.3.16");<br>cout << kjv->stripText() << endl;<br><br>(see example: <a href="https://crosswire.org/svn/sword/trunk/examples/classes/simplechapter.cpp">https://crosswire.org/svn/sword/trunk/examples/classes/simplechapter.cpp</a> )<br><br><br>2) preferred:<br><br>SWMgr library(new MarkupFilterMgr(FMT_PLAIN));<br>SWModule *kjv = library.getModule("KJV");<br>kjv->setKey("jn.3.16");<br>cout << kjv->renderText() << endl;<br><br>(See example <a href="https://crosswire.org/svn/sword/trunk/examples/cmdline/outrender.cpp">https://crosswire.org/svn/sword/trunk/examples/cmdline/outrender.cpp</a> )<br><br>Hope this helps.<br><br>Welcome!<br><br>Troy<br><br><br><div class="gmail_quote">On November 14, 2020 8:35:06 PM MST, Loren Burkholder <computersemiexpert@outlook.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">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><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">salvm="strong:H072255">In the beginning<br></blockquote><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<hr>sword-devel mailing list: sword-devel@crosswire.org<br><a href="http://crosswire.org/mailman/listinfo/sword-devel">http://crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page<br></pre></blockquote></div><br>-- <br>Sent from my Android device with K-9 Mail. Please excuse my brevity.</body></html>