crosswire / xiphos

Xiphos is a Bible study tool written for Linux, UNIX, and Windows using GTK, offering a rich and featureful environment for reading, study, and research using modules from The SWORD Project and elsewhere.
http://xiphos.org
GNU General Public License v2.0
208 stars 51 forks source link

Feature Request: Don't Copy Footnote and Cross-Reference Markers #1124

Open SirNate0 opened 1 year ago

SirNate0 commented 1 year ago

It would be nice if the footnote and cross-reference superscripts would not be copied, so that the numbers and letters don't have to be stripped out manually later. For example, if Xiphos would only put

1 In the beginning was the Word, and the Word was with God, and the Word was God.

in the clipboard rather than (as it actually does with the text content)

1 xAIn the beginning was xBthe Word, and the Word was xCwith God, and xDthe Word was God.

The html clipboard content is better, as the footnotes, etc., appear in different colors as superscripts, but it would be nice if it could be disabled there as well as an option.

[1](sword:///John 1:1) *xAIn the beginning was *xBthe Word, and the Word was *xCwith God, and *xDthe Word was God.

(Github alters the contents when pasting HTML with links and such, converting it to Markdown, which looses the syntax highlighting. The actual content is below, but with all the style markup it's hard to read, so I left the above Github-edited version)

<span style="caret-color: rgb(255, 255, 255); color: rgb(255, 255, 255); font-family: none; font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(0, 0, 0); text-decoration: none; display: inline !important; float: none;"><span class="Apple-converted-space"> </span></span><span class="word" style="caret-color: rgb(255, 255, 255); color: rgb(255, 255, 255); font-family: none; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;"><a name="1" href="sword:///John 1:1" style="text-decoration: none; color: rgb(135, 135, 135);"><font size="+0" color="#3465A4">1</font></a></span><span style="caret-color: rgb(255, 255, 255); color: rgb(255, 255, 255); font-family: none; font-size: medium; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; background-color: rgb(0, 0, 0); text-decoration: none; display: inline !important; float: none;"> </span><font color="#47E686" style="font-family: none; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.4); -webkit-text-stroke-width: 0px; text-decoration: none;"><a class="noteMarker crossReference" href="passagestudy.jsp?action=showNote&amp;type=x&amp;value=1&amp;module=NASB&amp;passage=John+1%3A1" style="text-decoration: none; color: rgb(135, 135, 135);"><small><sup class="x">*xA</sup></small></a>In the beginning was<span class="Apple-converted-space"> </span><a class="noteMarker crossReference" href="passagestudy.jsp?action=showNote&amp;type=x&amp;value=2&amp;module=NASB&amp;passage=John+1%3A1" style="text-decoration: none; color: rgb(135, 135, 135);"><small><sup class="x">*xB</sup></small></a>the Word, and the Word was<span class="Apple-converted-space"> </span><a class="noteMarker crossReference" href="passagestudy.jsp?action=showNote&amp;type=x&amp;value=3&amp;module=NASB&amp;passage=John+1%3A1" style="text-decoration: none; color: rgb(135, 135, 135);"><small><sup class="x">*xC</sup></small></a>with God, and<span class="Apple-converted-space"> </span><a class="noteMarker crossReference" href="passagestudy.jsp?action=showNote&amp;type=x&amp;value=4&amp;module=NASB&amp;passage=John+1%3A1" style="text-decoration: none; color: rgb(135, 135, 135);"><small><sup class="x">*xD</sup></small></a>the Word was God.</font>

Further, it would be nice if the verse numbers could be disabled as well as an option

LAfricain commented 1 year ago

You have this option using the context menu → Copy/export passage. Then you text.

SirNate0 commented 1 year ago

Did not realize that was a thing. Thanks!

Perhaps I have a different version, but for me, running 4.2.1 (gtk3 webkit2) I have to (Right Click) > Module Options > (Toggles for Footnotes and Cross References).

Feel free to close the issue, then. I'm open to either. Being able to toggle them off is good enough for me. But at the same time, I think it would be nice if there was a separate toggle to exclude them from what is copied, so it's still a possible point of improvement.

LAfricain commented 1 year ago

I have no right for closing issues, you can do it. I'm happy you found a way.