Skip to content

Mandarin + Cantonese Dictionary, Zhongwen-based

License

Notifications You must be signed in to change notification settings

mtusnio/chinesedict

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Keyboard Shortcuts

Navigation

  • N to move forward one word
  • B to move back one word
  • M to move forward one character - eg. it will display the second character in a two character word.
  • X and move the window up and down respectively
  • A moves the window to

Word List

  • Alt + W to open the word list.
  • R to save a word to the list.

Online dictionaries

  • Alt + 1 looks up the selected word using LINE Dict.
  • Alt + 2 lets you look up the pronunciation on Forvo.
  • Alt + 3 takes you to Dict.cn.
  • Alt + 4 uses iCIBA.
  • Alt + 5 looks up the word in the MDBG dictionary.
  • Alt + 6 takes you to MoeDict.
  • T is for looking up example sentences at Tatoeba.

Misc

  • S to add a word to your Skritter queue. You will need to be logged into Skritter for this to work.
  • C on the keyboard to copy the text together with dictionary entries into your clipboard. This is useful if you then want to insert them into Anki or your own words Spreadsheet.
  • E to play the Cantonese pronunciation of the selected character or phrase
  • W to play the Mandarin pronunciation of the selected character or phrase
    • For Linux users the TTS is not available using Brave, Firefox, and Chromium, but should work with Google Chrome.
    • To enable text to speech go to Extensions (the jigsaw icon on the top right) > More actions (three dots on the right of the Mandarin + Cantonese extension) > Options. On the Options page, scroll to the very bottom and check the box for the option Enable text-to-speech.

Development

Pupeeter Dependencies

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

Legal

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

About

Mandarin + Cantonese Dictionary, Zhongwen-based

Resources

License

Stars

Watchers

Forks

Languages

  • JavaScript 87.4%
  • HTML 9.0%
  • CSS 2.1%
  • Python 1.2%
  • Shell 0.3%