<div>If that’s the case, then we need to review how the bright idea might be applied so as to facilitate pasting into social media edit boxes that squish all rich text or HTML format </div><div><br></div><div>David</div><div><br></div><div id="protonmail_mobile_signature_block">Sent from ProtonMail Mobile</div> <div><br></div><div><br></div>On Mon, May 6, 2019 at 01:25, Greg Hellings <<a href="mailto:greg.hellings@gmail.com" class="">greg.hellings@gmail.com</a>> wrote:<blockquote class="protonmail_quote" type="cite"> <div dir="auto">I'm pretty sure that verse numbers are exclusively the purview of front ends and aren't part of the engine markup.<div dir="auto"><br></div><div dir="auto">--Greg</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 5, 2019, 15:29 David Haslam <<a href="mailto:dfhdfh@protonmail.com">dfhdfh@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div>No - although a front-end would include the UI option to “Copy Special”,</div><div>IMHO, the right place for the special filter would be the back-end engine.</div><div><br></div><div>It’s the back-end that “knows” which object is a verse tag, </div><div>as opposed to verse text that just happens to contain some digits.</div><div>Eg. The integer 144,000 in Revelation 7:4 for some translations.</div><div><br></div><div>No front-end developer is obliged to make use of the suggested filter.</div><div>But it gives them a design choice that can be exploited to advantage in the described usage case.</div><div><br></div><div>In Xiphos, for example, the dialogue would simply require an extra tick box with (say) a mouseover tooltip.</div><div><br></div><div> Best regards,</div><div><br></div><div>David</div><div><br></div><div id="m_-6745686258296855953protonmail_mobile_signature_block">Sent from ProtonMail Mobile</div> <div><br></div><div><br></div>On Sun, May 5, 2019 at 21:08, <a href="mailto:refdoc@gmx.net" rel="noreferrer">refdoc@gmx.net</a> <<a href="mailto:refdoc@gmx.net" rel="noreferrer">refdoc@gmx.net</a>> wrote:<blockquote class="m_-6745686258296855953protonmail_quote" type="cite"> I think the main problem is that there is a whole huge worlds out there of weird and wonderful restrictions. Some blogging platforms accept wiki mark up, others markdown yet others restricted html, etc. <br><br>I do not think the engine is the place other than for well defined standardised output formats, as much of the rest ephemeral. But front-ends maybe can do more?<br><br>Sent from my mobile. Please forgive shortness, typos and weird autocorrects.<div class="m_-6745686258296855953quote" style="line-height:1.5"><br><br>-------- Original Message --------<br>Subject: Re: [sword-devel] Sword front-ends, the clipboard and social media<br>From: David Haslam <br>To: SWORD Developers' Collaboration Forum <br>CC: <br><br><br type="attribution"><blockquote class="m_-6745686258296855953quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <div>Jack,</div><div><br></div><div>I think you’ve missed the main point too.</div><div><br></div><div>Facebook edit boxes for posts, comments and replies sees everything pasted as plain vanilla text.</div><div>Text styles are simply squished.</div><div><br></div><div>However, being a global platform, it supports the whole Unicode character set.</div><div><br></div><div>David</div><div><br></div><div id="m_-6745686258296855953protonmail_mobile_signature_block">Sent from ProtonMail Mobile</div> <div><br></div><div><br></div>On Sun, May 5, 2019 at 20:14, Jaak Ristioja <<a href="mailto:jaak@ristioja.ee" rel="noreferrer">jaak@ristioja.ee</a>> wrote:<blockquote class="m_-6745686258296855953protonmail_quote" type="cite"> I'd suggest using CSS with custom element attributes instead, for example:<br><br><html><head><br><title>Hallelujah! :)</title><br><style><br>span::before {<br> content: attr(verse-id);<br> vertical-align: super;<br> font-size: 50%;<br> margin: 0 0.4em 0 0;<br>}<br></style><br></head><br><body><br><span verse-id='12'>Christ</span><br><span verse-id='13'>is</span><br><span verse-id='14'>risen!</span><br></body><br></html><br><br>Online example: <a href="https://jsfiddle.net/23z5n9dc/" rel="noreferrer">https://jsfiddle.net/23z5n9dc/</a><br><br><br>Best regards,<br>J<br><br><br>On 05.05.19 18:58, David Haslam wrote:<br>> When pasting a Bible passage from the clipboard to Social media, text styles are usually squished.<br>><br>> This often means that superscripted verse tags just become ordinary numbers.<br>> Some front-ends even leave no space between the verse tag and the start of verse text.<br>> The result in social media is a tad ugly.<br>><br>> Surely we could do better?<br>><br>> 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.<br>><br>> Convert verse number digits to Unicode superscript digits, ⁰¹²³⁴⁵⁶⁷⁸⁹<br>><br>> NB. These special 10 characters are not in a continuous block.<br>><br>> 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.<br>><br>> Aside: I made my own TextPipe filter to convert digits to these special characters.<br>> I included a restriction to avoid converting chapter numbers.<br>> I did not yet consider what to do about digits that are part of verse text (such as 144,000).<br>><br>> Even so, how do software developers feel about the concept ?<br>><br>> Best regards,<br>><br>> David<br>><br>> Sent from ProtonMail Mobile<br>><br>><br>> _______________________________________________<br>> sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" rel="noreferrer">sword-devel@crosswire.org</a><br>> <a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>> Instructions to unsubscribe/change your settings at above page<br>><br><br><br>_______________________________________________<br>sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" rel="noreferrer">sword-devel@crosswire.org</a><br><a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>Instructions to unsubscribe/change your settings at above page</blockquote><div><br></div><div><br></div></blockquote></div></blockquote><div><br></div><div><br></div>_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" rel="noreferrer">sword-devel@crosswire.org</a><br>
<a href="http://www.crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer noreferrer">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page</blockquote></div>
</blockquote><div><br></div><div><br></div>