Mandarin + Cantonese Dictionary, Zhongwen-based
Find a file
2024-11-20 17:37:05 +01:00
.github/workflows Add missing release steps 2024-11-16 18:50:43 +01:00
.vscode Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
browser_tests Add extra grammar test 2024-11-11 02:12:17 +01:00
css Reset line-height in the pop-up (#32) 2019-12-01 20:08:19 +01:00
data Tweaks for next v2.0.0 release (#7) 2024-10-04 22:03:53 +01:00
images Tweaks for next v2.0.0 release (#7) 2024-10-04 22:03:53 +01:00
js Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
lib Remove unlimited storage permissions 2024-11-20 17:36:50 +01:00
scripts Add missing release steps 2024-11-16 18:50:43 +01:00
.gitattributes Updated .gitattributes 2019-03-02 15:55:23 +01:00
.gitignore Tweaks for next v2.0.0 release (#7) 2024-10-04 22:03:53 +01:00
.prettierignore Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
.prettierrc Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
background.html Key code fix (#1) 2019-02-24 22:52:20 +01:00
CONTRIBUTING.md Tweaks for next v2.0.0 release (#7) 2024-10-04 22:03:53 +01:00
CREDITS.md Overhaul the documentation 2020-11-25 16:25:39 +00:00
dict_content.js Fix wrong grammar entry being shown when it is not first in list 2024-11-11 00:21:06 +01:00
eslint.config.js Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
help.html Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
jest.config.json Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
jsconfig.json Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
LICENSE Initial commit 2019-02-16 23:08:35 +01:00
manifest.json Manifest release version 2.0.4 2024-11-20 17:37:05 +01:00
mock-extension-apis.js Fix unit tests 2024-10-29 23:21:36 +00:00
options.html Add TTS options and updated the README. 2023-07-23 08:44:05 -06:00
package-lock.json Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
package.json Add firefox support (#9) 2024-11-08 14:56:44 +00:00
README.md Remove shortcuts from Readme 2024-11-08 15:58:14 +01:00
wordlist.html Upgrade to Manifest V3 (#6) 2024-09-20 19:47:54 +01:00
worker.js Tweaks for next v2.0.0 release (#7) 2024-10-04 22:03:53 +01:00

Chinese-English Popup Dictionary - Mandarin & Cantonese

Contributions

If you would like to contribute to the project feel free to open issues or, even better, pull requests. See CONTRIBUTING.md for more information.

Highlights

All features from the original extension and a few extra ones focused on the Cantonese language are available:

  • Supports both traditional and simplified characters.
  • Includes both the CEDICT Chinese English dictionary as well as https://cantonese.org/download.html)[CC-Canto] dictionary.
  • Shows Jyutping and Pinyin alongside characters.
  • As a learning aid it uses different colors for displaying the Pinyin syllables, depending on the tone of the Chinese character.
  • Can be turned on and off with a single mouse-click.
  • Highlights the characters whose translation is displayed in the pop-up window.
  • Also supports keyboard navigation for translating the next character, the next word, or the previous character.
  • Allows you to add words to a built-in word list. Words from this list can be exported to a text file for further processing, such as importing the words into Anki.
  • Includes links to grammar and usage notes on the Chinese Grammar Wiki.
  • Supports exporting words to the Skritter vocabulary queue.
  • Zhuyin display can be enabled

Options and word list

Right click on the icon of the extension and you will now be able to open the word list and and a tab with options. This will let you further customize your experience.

Pinyin colors and tones

  • First tone syllables are shown in red.
  • Second tone syllables are shown in orange.
  • Third tone syllables are shown in green.
  • Forth tone syllables are shown in blue.

Development

Pupeeter Dependencies

npx @puppeteer/browsers install chrome@stable
npx @puppeteer/browsers install firefox@stable

https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#chrome-doesnt-launch-on-linux

WSL Fonts for test cases

When running WSL you will need Chinese font to be available for the browser tests to pass, see below

https://help.accusoft.com/PrizmDoc/v12.2/HTML/Installing_Asian_Fonts_on_Ubuntu_and_Debian.html

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


Copyright (C) 2024 Michal Tusnio

Original extension & documentation Copyright (C) 2019 Christian Schiller