GithubHelp home page GithubHelp logo

qute-translate's Introduction

Qute-Translate

userscript for qutebrowser for translation of pages or selected text using Google translate.

Installation

Run install.sh or simply create a symbolic link or copy the file translate to the qutebrowser's userscripts directory (usually ~/.local/share/qutebrowser/userscripts) and make it executable.

Usage

Translate page

To translate the current page simply to

spawn --userscript translate

By default the source language will be automatically detected and the target language will be English. To specify other languages use the arguments -s/--source and -t/--target. For example to translate from German to Swedish do

spawn --userscript translate -s de -t sv

Default languages can also be set using the environment variables QUTE_TRANS_SOURCE and QUTE_TRANS_TARGET in bash.

Translate selected text

To translate selected text add the --text argument as for example

spawn --userscript translate --text

In hint mode

The userscript can also be used in hint mode by doing

hint links userscript translate

Key-bindings

You can set your own key-bindings for examples as

config.bind(';t', 'hint userscript link translate')
config.bind(';T', 'hint userscript all translate --text')
config.bind('<Ctrl+T>', 'spawn --userscript translate')
config.bind('<Ctrl+Shift+T>', 'spawn --userscript translate --text')

Contributions

Feel free to contribute or suggest improvements. Examples of things that could be extended:

  • Other translation services other than Google.
  • ...

qute-translate's People

Contributors

nacknime-official 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

Watchers

 avatar

qute-translate's Issues

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.