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

Tobias Klein contact at tklein.info
Sun Mar 17 09:30:19 MST 2019


Hi,

when working with the German Schlachter Bibel (1951) [GerSch] I noticed 
that there's some special markup in the Psalms:

Ein Psalm Davids, als er vor seinem Sohne Absalom floh.
<H3-2> Ach, HERR, wie zahlreich sind meine Feinde! Viele stehen wider 
mich auf;
<H3-3> viele sagen von meiner Seele: «Sie hat keine Hilfe bei Gott.» 
(Pause.)
<H3-4> Aber du, HERR, bist ein Schild um mich, meine Ehre und der mein 
Haupt emporhebt.

...


It may be a beginners question - what's the purpose of the <H*-*> markup?
Is there a filter option in the Sword API that would allow me to not 
show it?

To get the text of the verse I'm using the API function 
SWModule::stripText().
In the Sword code it says that this function "calls all StripTextFilters 
on current text" and that it returns the "module's text at specified key 
location massaged by Strip filters".

Am I using the right function? Do I have to apply additional filters to 
remove the markup mentioned above?

Best regards,
Tobias




More information about the sword-devel mailing list