[sword-devel] Support for morph segmentation in front-ends?
DM Smith
dmsmith at crosswire.org
Tue Mar 25 15:34:49 EDT 2025
From the source documentation: This filters toggles splitting of morphemes (for morpheme segmented Hebrew in the WLC).
So this seems to be a module specific filter.
The filter, https://crosswire.org/sword/apiref/osismorphsegmentation_8cpp_source.html,
It governs how <seg type=“morph”>segmented text</seg> is handled (or type=“x-morph”)
It seems that the “segmented text” is copied into:
module->getEntryAttributes()["Morpheme"][buf]["body"] = tagText;
where buf is position of the <seg> in the verse, starting at 1 and tagText is <seg>segmented text</seg> (with no attribute).
If the option is to hide then <seg> and </seg> are not output.
There is no toggle.
> On Mar 25, 2025, at 11:06 AM, David Haslam <dfhdfh at protonmail.com> wrote:
>
> Does any SWORD front-end app include support for this ?
>
> GlobalOptionFilter=OSISMorphSegmentation
>
> Might Xiphos be enhanced to implement this in future?
>
> The SWORD engine knows about it, yet AFAICT, it effects no change in displayed text.
>
> What it ought to do was once suggested by someone at STEP Bible.
>
> Alternate segments should display in different colours.
>
> I’m currently working on a Bible text where this might prove beneficial.
>
> Best regards,
>
> David
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://crosswire.org/pipermail/sword-devel/attachments/20250325/89ee9574/attachment.htm>
More information about the sword-devel
mailing list