Pass the text selection event in pdf viewer to the system as well.
It seems that the text selection event is caught and handled by the PDF viewer itself to let the user select a color to mark the text.
The problem is that some translation tools can automatically catch the selection and translate the text. However, the way Zotero PDF viewer handles the text selection prevents the OS from detecting the event. For example, the pot translator https://github.com/pot-app/pot-desktop and system CLI tools like xsel cannot work properly.
The problem is that some translation tools can automatically catch the selection and translate the text. However, the way Zotero PDF viewer handles the text selection prevents the OS from detecting the event. For example, the pot translator https://github.com/pot-app/pot-desktop and system CLI tools like xsel cannot work properly.