Hi DM,
I’m assuming that the front-end app would normally show the original text
that’s enclosed by the abbr element, but that the expansion would be displayed
in place of the abbr text when the UI switch is toggled.
The default would always be the former, particularly for apps that had not yet
been given the UI switch by its developers.
On the other hand, SWORD developers might decide the the expansion text ought
to be displayed above or below the main verse text, like Xiphos does for (eg)
Strong’s.
AFAIK, SWORD front-ends don’t use HTML like you described. It’s unique to
JSword apps.
Not only so, but it’s not really as convenient to use mouseover tooltip for
touchscreen devices, such as phones & tablets. I don’t see that function very
often for my iPad Mini 4. Correct me if I’m wrong.
David
On Tue, May 13, 2025 at 00:35, DM Smith <[dmsm...@crosswire.org](mailto:On Tue,
May 13, 2025 at 00:35, DM Smith <<a href=)> wrote:
> The XSLT for JSword uses the HTML abbr element to display the OSIS abbr
> element. Most browsers will show the expansion as a tooltip.
>
> Are you thinking that this should be a toggle so that the tooltip shows up?
> Are you thinking that the expansion should be shown with the (ABBR) following?
>
> In Him,
> DM
>
>> On May 12, 2025, at 12:52 PM, David Haslam <dfh...@protonmail.com> wrote:
>>
>> It would be really cool if the SWORD API could be enhanced to support the
>> expansion of the OSIS element abbr.
>>
>> Example: <abbr type="x-Roman" expansion="30">.xxx.</abbr>
>>
>> When selected via the enhanced UI in any SWORD front-end app, the expansion
>> value should be displayed in place of the abbreviation.
>>
>> Please would SWORD (& JSword) developers seriously consider implementing
>> this.
>>
>> NB. We may soon have a suitable candidate module for testing this
>> functionality.
>> I would like to see all the numbers that use lowercase Roman numerals which
>> are found within verse text in the Bible module Tyndale suitably encoded
>> using the abbr element. Implementing this enhancement to the OSIS XML source
>> text is eminently scriptable.
>>
>> Aside: First, we must ensure that all these instances are tidied up, and
>> consistently wrapped between 2 periods as they are in the printed edition.
>> Please refer to my feedback observations sent to the module team.
>>
>> Best regards,
>>
>> David
>>
>> Sent with [Proton Mail](https://pr.tn/ref/SWXT9A5YZ67G) secure email.
>> _______________________________________________
>> sword-devel mailing list: sword-devel@crosswire.org
>> http://crosswire.org/mailman/listinfo/sword-devel
>> Instructions to unsubscribe/change your settings at above page
_______________________________________________
sword-devel mailing list: sword-devel@crosswire.org
http://crosswire.org/mailman/listinfo/sword-devel
Instructions to unsubscribe/change your settings at above page