<html><head></head><body>Hi Tobias. SWORD renders these tags for you if the planets are aligned. When you create your SWMgr, you tell it what "Render" markup you would like. We highly recommend XHTML. This will tell the SWMgr factory class to construct SWModule oblects with all the necessary filters added to produce your requested render markup when you call SWModule::renderText. The SWModule::stripText will also render plaintext output because SWMgr will add appropriate filters (as Greg has said GBFPlain, in this case). If the old GBF German Bible module you are using is made correctly, its .conf file will include a SourceType=GBF. This will allow SWMgr to pick the right filters to add. You shouldn't need to add any manually.<br><br>You can find examples in the source under: sword/examples<br><br>Here's a good one to steal from which contains most of the coded needed to write frontend display code.<br><br><a href="http://crosswire.org/svn/sword/trunk/examples/tasks/parallelbibles.cpp">http://crosswire.org/svn/sword/trunk/examples/tasks/parallelbibles.cpp</a><br><br><br><br><div class="gmail_quote">On March 17, 2019 10:45:34 AM MST, Tobias Klein <contact@tklein.info> 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">On 17.03.19 18:38, Greg Hellings wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> You might need to add an instance of the GBFPlain class to the filter <br> set before calling for stripText. It is specifically crafted to strip <br> the tags you're talking about.<br><br> In general, you'll want to add a <Format>Plain object to the filter <br> set for any module you're processing to plain text, where <Format> can <br> be picked up by a query to the conf for the given module. Classes <br> should exist for GBF, OSIS, TEI, and ThML source formatted text.<br><br></blockquote>Thanks, makes sense.<br><br>Before figuring out the details myself - can you point me to any code <br>example already existing? I think I once tried to add the GBFPlain class <br>to the filter set, but somehow it didn't work as expected? Maybe I used <br>it wrongly ...<br><br>Best regards,<br>Tobias<hr>sword-devel mailing list: sword-devel@crosswire.org<br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.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>