Git Product home page Git Product logo

popweb's Introduction

What is popweb?

I want a pop-up window display web multimedia content, such as, translation tooltip, LaTex preview, code completion etc.

Browser related technology comes from my other project Emacs Application Framework

Installation

  1. Make sure install PyQt5 from your operating system repository (DON'T install PyQt5 from pip, otherwise browser will crash)
  2. Install library python-epc
  3. Clone or download this repository (path of the folder is the <path-to-popweb> used below).
  4. In your ~/.emacs, add the following two lines:
(add-to-list 'load-path "<path-to-popweb>") ; add popweb to your load-path
(require 'popweb-dict-bing)
(require 'popweb-dict-youdao)
(require 'popweb-katex)

Usage

  • popweb-dict-bing-input: popup input translation window with Bing
  • popweb-dict-youdao-input: popup input translation window with Youdao
  • popweb-dict-bing-pointer: popup pointer translation window with Bing
  • popweb-dict-youdao-pointer: popup pointer translation window with Youdao
  • popweb-katex-show: show LaTex preview
  • popweb-katex-update: update LaTex preview
  • popweb-katex-hide: hide LaTex preview

Proxy

If you need to use a proxy to access the internet, one can configure the proxy settings.

(setq popweb-proxy-type "http")
(setq popweb-proxy-host "127.0.0.1")
(setq popweb-proxy-port "1080")

If you use Socks5 as a local proxy, one can set proxy type with:

(setq popweb-proxy-type "socks5")

Screenshot

Popweb with Bing translate.

Popweb with Youdao translate.

Popweb with KaTex.js preview.

popweb's People

Contributors

manateelazycat avatar yqu212 avatar ctrl2wei avatar

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.