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

Troy A. Griffitts scribe at crosswire.org
Sun May 5 10:57:43 MST 2019


Just to add a few bits to this conversion.

I am sure each frontend is slightly different.  In BibleCS you are
cutting and pasting from an RTF control, so assuming your os paste
facility and destination supports this, then you might get rich markup. 
Same for other frontends which use and HTML widget to display.  Bishop's
"Share" facility formats reasonably nicely for sharing, including full
verse reference and from which module the verse was shared.  SWORDWeb
has long had a Facebook-specific "Like" and "Share" option (upper right):

http://crosswire.org/study/passagestudy.jsp?key=John.3.16

It's fun to see which verses have a higher "like" count than others (no,
I have no idea how to ask Facebook to give me a list of most liked verses).

Troy


On 5/5/19 10:38 AM, David Haslam wrote:
> The context is that when I’m posting to (eg) Facebook, all text
> formatting is simply squished, even when what was pasted to the
> clipboard had (eg) HTML styling. 
>
> AFAICT, only Facebook Notes permit some rudimentary text styles and
> layout formats. 
>
> So the response by Michael Hart, interesting as it may be, does not
> really address the issue in focus. 
>
> Best regards,
>
> David
>
> Sent from ProtonMail Mobile
>
>
> On Sun, May 5, 2019 at 18:32, Michael H <cmahte at gmail.com
> <mailto:cmahte at gmail.com>> wrote:
>> I like the plan to improve copy functions over plain text. However,
>> it might be more feasible and productive to copy a (possibly
>> simplified) html snippet to the clipboard rather than producing
>> presentation glyphs that may or may not render in many apps where
>> fallback fonts may or may not be available.
>>
>> That is, when I copy-paste a web page into Office, I have to choose
>> whether to import the formatted html, or just the plain text.
>> However, when I paste the same clipboard item into a simple text
>> editor, the formatted option isn't present. A similar approach for
>> sword front ends would fit the user expectation of a rich copy, but
>> also be more likely to succeed in all cases. 
>>
>> Is there already a sword front end that already has this rich copy
>> enabled (even for a subset of the allowable markups?) 
>>
>> (And related to the implied reason why this capability is missing:)
>>
>> In addition to improving the functionality of the text rendering for
>> copy/paste, the configuration files should probably be improved to
>> include a "copy-allowed" item (and "print-allowed" if/where
>> applicable.) That is, be able to restrict the copy function when the
>> license provided doesn't include even limited copying. This will help
>> to undo the risk of pass-through copying en-mass. 
>>
>> On Sun, May 5, 2019 at 11:00 AM David Haslam <dfhdfh at protonmail.com
>> <mailto:dfhdfh at protonmail.com>> 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
>>     <mailto: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/63458d98/attachment-0001.html>


More information about the sword-devel mailing list