btpf / Alexandria

A minimalistic cross-platform eBook reader built with Tauri, Epub.js, and Typescript
GNU General Public License v3.0
2.15k stars 50 forks source link

Embedded Span Tags Break Copy Highlighted Text #30

Closed ddewett closed 8 months ago

ddewett commented 8 months ago

Issue: Embedded page breaks in the EPUB file are translated into SPAN tags in the HTML. These tags cause select and copy text features to break.

Platform: Linux

Settings:

Steps:

1) Display text that covers an embedded SPAN tag. These are assigned as "pagebreaks," but are invisible in flowable text. Screenshot from 2024-01-10 21-38-33

2) Highlight text with mouse and copy using the popup. 3) User received "Text Copied" toast message. 4) Pasting into another context (e.g., a different application) only pastes the text following the SPAN tag. This implies that the SPAN tag is segmenting the text copied to the clipboard into multiple streams, and the last one is retained.

btpf commented 8 months ago

An explanation of these tags: https://www.mobileread.com/forums/showthread.php?t=331107

This will be fixed in the next release.