arXiv / html_feedback

Supports a student project developing a UI for feedback on arXiv articles rendered as html.
MIT License
18 stars 3 forks source link

Document title cannot be selected properly #592

Open tobirolinew opened 8 months ago

tobirolinew commented 8 months ago

Description

I have experienced this issue when I tried to select the title of the paper at https://arxiv.org/html/2402.17116v1. The double click seleted the index denoting the affiliation of the author:"The Composition and Chemistry of Titan’s Atmosphere 1"I would expect that "1" should not be marked by a double click.

(Optional:) Please add any files, screenshots, or other information here.

No response

(Required) What is this issue most closely related to? Select one.

Choose One

Internal issue ID

f2714a6c-fb5c-492e-a58a-87edd91c36fc

Paper URL

https://arxiv.org/html/2402.17116v1

Browser

Firefox/123.0

Device Type

Desktop

html-feedback-bot[bot] commented 8 months ago

Location in document: ltx_document

Selected HTML: data:text/html;charset=utf-8,The%20Composition%20and%20Chemistry%20%0A%3Cbr%20class%3D%22ltx_break%22%3Eof%20Titan%E2%80%99s%20Atmosphere%0A%3Cspan%20class%3D%22ltx_note%20ltx_role_footnote%22%20id%3D%22footnote1%22%3E%3Csup%20class%3D%22ltx_note_mark%22%3E1%3C%2Fsup%3E%3Cspan%20class%3D%22ltx_note_outer%22%3E%3Cspan%20class%3D%22ltx_note_content%22%3E%3Csup%20class%3D%22ltx_note_mark%22%3E1%3C%2Fsup%3E%3Cspan%20class%3D%22ltx_tag%20ltx_tag_note%22%3E1%3C%2Fspan%3EKeywords%3A%20Titan%3B%20Astrochemistry%3B%20Astrobiology%3B%20Atmospheres%3B%20Photochemistry%3C%2Fspan%3E%3C%2Fspan%3E%3C%2Fspan%3E%0A

github-actions[bot] commented 8 months ago

Hello @tobirolinew, thanks for the issue report! We are reviewing your report and will address it as soon as possible.

dginev commented 8 months ago

Interesting, this suggests that footnote marks (and possibly other similar note marks) deposited by latexml shouldn't be selectable in HTML.

That is quite easy to achieve with CSS:

.ltx_note_mark {
  user-select: none; 
}

An organizational question is whether all projects are interested in the rule - I think the upgrade also fits with the ar5iv CSS, and maybe also with the mainline LaTeXML CSS.

Edit: The trouble is that disabling footnote selection will make it impossible to copy out any of the notes, which is not really a good trade-off. Maybe the inconvenience of copying the title together with its footnotes is acceptable for now?