[sword-devel] Sword front-ends, the clipboard and social media

David Haslam dfhdfh at protonmail.com
Sun May 5 12:35:15 MST 2019


Jack,

I think you’ve missed the main point too.

Facebook edit boxes for posts, comments and replies sees everything pasted as plain vanilla text.
Text styles are simply squished.

However, being a global platform, it supports the whole Unicode character set.

David

Sent from ProtonMail Mobile

On Sun, May 5, 2019 at 20:14, Jaak Ristioja <jaak at ristioja.ee> wrote:

> I'd suggest using CSS with custom element attributes instead, for example:
>
> <html><head>
> <title>Hallelujah! :)</title>
> <style>
> span::before {
> content: attr(verse-id);
> vertical-align: super;
> font-size: 50%;
> margin: 0 0.4em 0 0;
> }
> </style>
> </head>
> <body>
> <span verse-id='12'>Christ</span>
> <span verse-id='13'>is</span>
> <span verse-id='14'>risen!</span>
> </body>
> </html>
>
> Online example: https://jsfiddle.net/23z5n9dc/
>
> Best regards,
> J
>
> On 05.05.19 18:58, David Haslam wrote:
>> When pasting a Bible passage from the clipboard to Social media, text styles are usually squished.
>>
>> This often means that superscripted verse tags just become ordinary numbers.
>> Some front-ends even leave no space between the verse tag and the start of verse text.
>> The result in social media is a tad ugly.
>>
>> Surely we could do better?
>>
>> One bright idea implemented externally by one of our members is simple enough for us to consider adding as a new filter in the SWORD API.
>>
>> Convert verse number digits to Unicode superscript digits, ⁰¹²³⁴⁵⁶⁷⁸⁹
>>
>> NB. These special 10 characters are not in a continuous block.
>>
>> How front-ends might include the filter such that copying a passage to the clipboard would automatically make use of these special characters is yet to be determined, but if the idea is not yet discussed, we’ll not make any progress.
>>
>> Aside: I made my own TextPipe filter to convert digits to these special characters.
>> I included a restriction to avoid converting chapter numbers.
>> I did not yet consider what to do about digits that are part of verse text (such as 144,000).
>>
>> Even so, how do software developers feel about the concept ?
>>
>> Best regards,
>>
>> David
>>
>> Sent from ProtonMail Mobile
>>
>>
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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/20190505/379a3c3a/attachment.html>


More information about the sword-devel mailing list