Skip to content

halfprice06/SinoSage

Repository files navigation

SinoSage

This Chrome extension allows you to select Chinese text on any webpage and get instant translation, pronunciation, and stroke order animations. It is designed to assist users in learning Mandarin by providing detailed translations, pinyin with tone marks, and interactive stroke order demonstrations.

Alt textAlt Text

KNOWN BUGS

The plugin is defintely still very buggy and although all the core features work, I've noticed that on certain web pages the plugin will actually interfere and keep the webpage from loading properly. I'll get to it when I can.

Features

  • Instant Translation: Highlight Chinese text to get a popup with translations broken down into meaningful units.
  • Pinyin with Tone Marks: View pinyin with accurate tone marks aligned character by character.
  • Pronunciation Audio: Listen to the pronunciation of the selected text or individual words.
  • Stroke Order Animation: Click on any Chinese character to see its stroke order animation.
  • Character Analysis: Get detailed information about radicals, components, and etymology.
  • Interactive Quiz: Practice writing characters with the stroke order quiz.

Installation

  1. Clone or download this repository to your local machine.
  2. Open Chrome and navigate to chrome://extensions/.
  3. Enable Developer mode by toggling the switch in the top-right corner.
  4. Click Load unpacked and select the directory where the extension is located.

Usage

  1. Click on the extension icon and enter your OpenAI API key.
  2. Navigate to any webpage with Chinese text.
  3. Highlight the text you want to translate.
  4. A popup will appear with translation options and additional features.

Dependencies

  • Hanzi Writer: For stroke order animations.
  • OpenAI API: For translation and pronunciation services.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Thanks to chanind for the Hanzi Writer library.
  • Chinese character data sourced from a dictionary dataset.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published