Zh-Pinyin Extension simplifies Chinese language learning by enabling one-click conversion of characters to Pinyin and optional translation to English with a double-click. This Chrome extension is designed to enhance comprehension for learners, leveraging a Flask server for conversion and utilizing the py-pinyin package.
- Single-click conversion of text to Pinyin
- [UPCOMING] Optional double-click conversion to English
- [UPCOMING] Triple-click returns text to original state
- Seamless integration with Chrome browser
- Flask
- py-pinyin package
- google-trans package
- Chrome Extensions
The extension utilizes a Flask server to aid in text conversion. On a single click, text within a line or paragraph is converted to Pinyin using the py-pinyin package.
To get started with zh-pinyin-extension, follow the steps:
-
Clone the Repository:
git clone https://github.com/Ddhruv-IOT/zh-pinyin-extension cd zh-pinyin-extension
-
Install the dependencies
pip install -r requirements.py
-
Start the Flask Server
pythom -m flask run
-
Load the Chrome Extension
Open Chrome Extensions, turn on develope mode, the select
load unpacked
and navigate tochrome-ext
folder of this app and then load it -
Start the Extension
Click on the Extension to start it
Contributions are welcome! Feel free to fork the repository and submit pull requests with your enhancements or bug fixes.
- Ensure that the Flask server is running for text conversion to work properly.
- Refer to the documentation for additional details on extension usage and development.
- Improved user interface
- Enhanced language support
- Integration with external dictionaries
Thank you for using and contributing to En Zh-Cn Pinyin Extension!