[sword-devel] Question regarding special markup in Psalms and SWModule::stripText

Tobias Klein contact at tklein.info
Sun Mar 17 10:45:34 MST 2019


On 17.03.19 18:38, Greg Hellings wrote:
> You might need to add an instance of the GBFPlain class to the filter 
> set before calling for stripText. It is specifically crafted to strip 
> the tags you're talking about.
>
> In general, you'll want to add a <Format>Plain object to the filter 
> set for any module you're processing to plain text, where <Format> can 
> be picked up by a query to the conf for the given module. Classes 
> should exist for GBF, OSIS, TEI, and ThML source formatted text.
>
Thanks, makes sense.

Before figuring out the details myself - can you point me to any code 
example already existing? I think I once tried to add the GBFPlain class 
to the filter set, but somehow it didn't work as expected? Maybe I used 
it wrongly ...

Best regards,
Tobias




More information about the sword-devel mailing list