[sword-devel] Tags showing up even though FMT_PLAIN specified.

Troy A. Griffitts scribe at crosswire.org
Wed Jun 12 18:06:49 EDT 2019


Hi David,

Give diatheke a try with your build of SWORD and your version of the KJV
module.  Here is what I get from diatheke (in sword/utilities/diatheke/):

[scribe at localhost diatheke]$ ./diatheke -b KJV -f plain -k Jn.3.16
John 3:16:
For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting life.
(KJV)

It is essentially doing exactly what you describe below-- setting
FMT_PLAIN pulling the KJV module setting the key to Jn.3.16 and calling
renderText.

Your output looks like you are calling something besides renderText.

Troy

On 6/12/19 2:34 PM, David "Judah's Shadow" Blue wrote:
> I'm working on my console based front end, BIBISH. I've got it just about
> ready for the second release (0.1.0) which is where it's actually useful for
> reading and searching. However, I'm now getting tags showing in my text. In
> the KJVA, for instance, I get for the output of john 1.1,
>
> John 1:1 <w savlm="strong:G1722" src="1">In</w> <w savlm="strong:G746"
> src="2">the beginning</w> <w savlm="strong:G2258" src="3">was</w> <w
> savlm="strong:G3588 strong:G3056" src="4 5">the Word</w>, <w
> savlm="strong:G2532" src="6">and</w> <w savlm="strong:G3588 strong:G3056"
> src="7 8">the Word</w> <w savlm="strong:G2258" src="9">was</w> <w
> savlm="strong:G4314" src="10">with</w> <w savlm="strong:G3588 strong:G2316"
> src="11 12">God</w>, <w savlm="strong:G2532" src="13">and</w> <w
> savlm="strong:G3588 strong:G3056" src="16 17">the Word</w> <w
> savlm="strong:G2258" src="15">was</w> <w savlm="strong:G2316"
> src="14">God</w>.<milestone resp="ng 2002-12-22-19:01" type="x-strongsMarkup"/
> I declared my SWMgr
>
>     this->swordLibrary = new sword::SWMgr(new sword::MarkupFilterMgr
>                                           (sword::FMT_PLAIN));
>
> I'm not certain what I've done wrong to cause the display to change from just
> the text to showing the tags. The only change I made to the way I interface by
> with the sword is that my setSwordLibrary function takes the reference the the
> pointer and assigns it to a SWMgr variable.
>
>
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page



More information about the sword-devel mailing list