![]() |
#1 |
light mode user
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 66
Karma: 16268
Join Date: May 2023
Location: New England
Device: I use the Calibre ebook-viewer on macos and Apple Books on ios.
|
Using native os text selection
I was looking for a way to disable the text selection provided by the Calibre viewer using Qt, as I prefer using text selection in MacOS native dictionary/lookup functions when reading.
I was wondering if that would be possible— and if so where would I get started modifying the python code for the viewer? If someone could give advice, I would be thankful. Here is some more context/issues I thought of: 1. There might be issues with getting the correct options displayed in the MacOS context menu, but that is a completely different problem aside from Calibre. 2. The highlighting function would be broken, but I would be fine with that. Adding a toggle to allow highlighting might work though. 3. I don't think this is a feature many would want, I just want to figure out how to do it myself. 4. I have little python coding experience, I probably won't be able to do soon/quickly. It will be a long term project. |
![]() |
![]() |
![]() |
#2 |
want to learn what I want
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,543
Karma: 7096239
Join Date: Sep 2020
Device: none
|
FWIW, on Windows it took me a lot of searching to find a way to integrate the Viewer with Goldendict. GD has a Control+C+C special shortcut combination, but I wanted something mouse-driven.
So the only solution I found so far is using an AutoHotKey script together with the classic version of a mouse gesture program called StrokesPlus. The AHK I need to keep running contains an action to clear the clipboard, copy selected text and send it to GD upon a acSendKeys("%^r") mouse gesture action over calibre-parallel.exe for StrokesPlus: Code:
!^r:: Clipboard := "" ; SendInput, ^c ClipWait, 2 if (Clipboard) { Run, c:\goldendict\goldendict.exe Sleep, 300 SendInput, %Clipboard% Sleep, 70 SendInput, {Enter} } return Last edited by Comfy.n; 09-30-2023 at 03:19 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
light mode user
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 66
Karma: 16268
Join Date: May 2023
Location: New England
Device: I use the Calibre ebook-viewer on macos and Apple Books on ios.
|
Thanks for the info!
|
![]() |
![]() |
![]() |
#4 |
light mode user
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 66
Karma: 16268
Join Date: May 2023
Location: New England
Device: I use the Calibre ebook-viewer on macos and Apple Books on ios.
|
My simple solution: convert to pdf and read using a pdf viewer lol.
|
![]() |
![]() |
![]() |
Tags |
text selection |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Text selection on touchscreen displays | rrhpablo | Server | 2 | 04-03-2023 01:22 AM |
[request] New feature about text selection | Sam Sahara | Editor | 3 | 08-23-2018 11:17 AM |
Text selection / Dictionary bug on 3.13.1? | Patricius | Kobo Reader | 8 | 05-01-2015 03:56 AM |
Glo Text selection problems | SmittyBit | Kobo Reader | 14 | 10-09-2012 03:02 PM |
Occasional dysfunctional text selection | jswinden | Kindle Fire | 1 | 11-30-2011 01:11 AM |