Skip to the content. Fork me on GitHub

Hanzipopup

Popup Dictionary for Chinese Language
Port of zhongwen browser extension as UserScript for Android and iOS.

Description

A UserScript for browsers to show meaning in popup for selected Chinese characters. The UserScript uses zhongwen browser extension codes.

Highlights

Install

Note: Read installation instruction here. https://greasyfork.org

Android

Install Greasemonkey, Tampermonkey, or Violentmonkey for Firefox.

iOS

Install UserScript manager for Safari browser.

Usage

  1. Open browser and enable extension

  2. Download and install Hanzipopup UserScript

  3. Open extension and enable the UserScript

  4. Enable Hanzipopup and click on Chinese characters to view definitions

Note: For Chrome and Firefox, use official Zhongwen extension.

Source

Source Code

Images

Technical Details

The API used to open word list and tts page. The word list store the saved words in local storage and can be used to edit the list and export as file.

The API used communicate between current page and word list or tts page. In case of word list page, words data sent from current page to word list page and stored in local storage. In case of tts, selected Chinese text sent from current page to tts page.

The meta used for getting unzipit library for extracting compressed cedict_ts.zip file.

The meta used for getting zhongwen dictionary data.

Experimental Feature

Text to speech for selected Chinese characters

After tts page opened, go back to opener page click once tts icon, again come back to opener pager.

Issues

For issues and help,
https://github.com/krmanik/hanzipopup/issues

License