Git Product home page Git Product logo

Comments (10)

VoxelCubes avatar VoxelCubes commented on May 31, 2024

You can do that all on your own by creating a custom hotkey to open deepqt (using whatever means you like). Since deepqt doesn't support direct translation of clipboard contents, there isn't any further integration I could meaningfully provide.

The closest I think I could manage would be to add a launch option telling deepqt to grab whatever file paths are on the clipboard and immediately translate them. So the workflow being:

  • Look for a file in your file browser
  • Select the file and copy it to clipboard (this stores the file path in your clipboard)
  • press whatever hotkey your have configured to execute deepqt --from-clipboard
  • deepqt immediately opens with that file in the table and starts translating.

Does that sound useful to you? If so, I can see if adding the launch option is feasible. I'll be working on a minor deepqt overhaul once I release the gui for PanelCleaner, whoch has some extra quality of life features (like a theme switcher, if you don't have Qt theming set up on your system already).

from deepqt.

GrgMdmn avatar GrgMdmn commented on May 31, 2024

Thank you for your answer. I think that solution could work but is less practical than just being able to support clipboard content. In my day use, I practically only use deepl shortcut to translate a sentence or a paragraph, rarely to translate files.

from deepqt.

VoxelCubes avatar VoxelCubes commented on May 31, 2024

I'm not sure I understand then, do you want DeepQt to offer the same features that the official deepl app does? Because in that case, what's wrong with the deepl app that you're already using? DeepQt uses the same deepl api to translate, so the quality will be no different, unless you want to make use of the DeepQt glossaries in a way that the official glossary system does not allow.

from deepqt.

GrgMdmn avatar GrgMdmn commented on May 31, 2024

The problem is that I am using Linux, so deepl app does not exist for Linux 😅

from deepqt.

VoxelCubes avatar VoxelCubes commented on May 31, 2024

Oh, that's cool. In your previous comment you said you used it all the time, so I figured you had it working.

Unfortunately that's kinda out of scope for my project, but I did find projects that provide essentially the same.

There is https://github.com/Freed-Wu/translate-shell as the backend and, if you're on Plasma, you can use this gui as the front end: https://store.kde.org/p/1395666
It looks just like the deepl app. Hope that works for you :)

from deepqt.

GrgMdmn avatar GrgMdmn commented on May 31, 2024

Thank you sir, I will try this and keep you updated :)

from deepqt.

VoxelCubes avatar VoxelCubes commented on May 31, 2024

Hey, I'm still in the middle of working on a massive overhaul of deepqt, but part of that will be this interactive mode that's like the deepl app. So when that's all done (which is still a few months off) I'll actually be able to fulfill your request...should you still be interested and not already perfectly happy with a different solution :)
The main goal of the refactor though is to support many more APIs, including local models.

from deepqt.

GrgMdmn avatar GrgMdmn commented on May 31, 2024

Hi! Of course, I am interested! I did not find any solution that suits me. The biggest problem is that the other solutions are not Wayland compatible so all the proposed shortcuts are not working and the devs are not wanting to move from x11 to Wayland

from deepqt.

VoxelCubes avatar VoxelCubes commented on May 31, 2024

Well, luckily for you I'm on Wayland so I'll be sure to find a solution. But I think the issue has to do with the security model, where apps can't listen for keybinds unless they are in focus. I think KDE has a solution for this with their global hotkey portal or something, haven't looked into it much. Although, that depends on how you'd want deepqt to behave when pressing the shortcut while it's already open. It'd be easiest to spawn a new window for the new clipboard content, but that does seem very silly, so it should instead intercept that and update the input on the current instance of deepqt.

I'll be working on this, but with how busy this semester is it'll take a long time.

from deepqt.

GrgMdmn avatar GrgMdmn commented on May 31, 2024

No problem, I will be patient. And thank you :)

from deepqt.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.