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

David Haslam dfhdfh at protonmail.com
Sun Mar 17 09:51:36 MST 2019


Further observation.

The actual GBF markup is like this example.

<WTH3-2>

PocketSword renders these as italics superscript (3-2) within parentheses.

David

Sent from ProtonMail Mobile

On Sun, Mar 17, 2019 at 16:30, Tobias Klein <contact at tklein.info> wrote:

> 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
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20190317/c8b0d4ab/attachment.html>


More information about the sword-devel mailing list