Git Product home page Git Product logo

deepl-linux's Introduction

DEPRECATION NOTICE

Go webview is not very suitable for desktop apps, so I reimplement this repo with Electron.

See this repo.

About

A client for deepl in Linux, using webview.

Tested under ubuntu 20.04 only.

./demo.png

How to use

install dependencies

sudo apt install libwebkit2gtk-4.0-dev xsel xdotool golang
  • xsel

    clipboard needs it

  • xdotool

    active this app when do translating work in other apps

  • golang

    Go programming language compiler, 1.14 or higher is needed

    Check it:

    go version
        

    You can download prebuilt binaries from https://golang.org

build

cd /path/to/someDir
git clone https://github.com/kumakichi/Deepl-linux.git
cd Deepl-linux
make

modify loader.sh if you need to

WIDTH=800 # window width
HEIGHT=600 # window height

add system shortcut

in ubuntu

settings => keyboard shortcut => Add Custom Shortcut

add this command: /path/to/someDir/Deepl-linux/loader.sh

I set this command with shortcut Ctrl-Alt-D

use it

select text in any application, press Ctrl+c to copy selected content into clipboard, then press the shortcut you just defined for loader.sh, here I press Ctrl-Alt-D

deepl-linux's People

Contributors

kumakichi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

deepl-linux's Issues

Thank you!

I just wanted to say thank you for this! Works flawlessly and is really helpful for my language learning journey! Please let me know if you have a BuyMeACoffee or something!

[ISSUE]: Missing Go as a dependency

For the program to be compiled, the package "go" is required, which is not standard on Linux machines.
It should thus be in the dependency-list.

undefined: errors.Is

./deepl.go:135:6: undefined: errors.Is
./deepl.go:143:8: undefined: errors.Is
make: Nothing to be done for 'all'.

I cloned github.com/atotto/clipboard and github.com/zserge/webview to ~/go/src/github.com
because of

deepl.go:7:2: cannot find package "github.com/atotto/clipboard" in any of:
        /usr/lib/go-1.10/src/github.com/atotto/clipboard (from $GOROOT)
        /home/niwo/go/src/github.com/atotto/clipboard (from $GOPATH)
deepl.go:8:2: cannot find package "github.com/zserge/webview" in any of:
        /usr/lib/go-1.10/src/github.com/zserge/webview (from $GOROOT)
        /home/niwo/go/src/github.com/zserge/webview (from $GOPATH)
make: Nothing to be done for 'all'.

undefined: errors.Is

I cloned github.com/atotto/clipboard and github.com/zserge/webview to ~/go/src/github.com
because of

deepl.go:7:2: cannot find package "github.com/atotto/clipboard" in any of:
        /usr/lib/go-1.10/src/github.com/atotto/clipboard (from $GOROOT)
        /home/niwo/go/src/github.com/atotto/clipboard (from $GOPATH)
deepl.go:8:2: cannot find package "github.com/zserge/webview" in any of:
        /usr/lib/go-1.10/src/github.com/zserge/webview (from $GOROOT)
        /home/niwo/go/src/github.com/zserge/webview (from $GOPATH)
make: Nothing to be done for 'all'.

Then I got

./deepl.go:135:6: undefined: errors.Is
./deepl.go:143:8: undefined: errors.Is
make: Nothing to be done for 'all'.

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.