A simple desktop app for typing/converting Chinese Pinyin.
Download the pre-built application for your platform from the Releases section:
- Windows (.exe): Download here
- macOS (.app): Download here
No installation required—just download and run!
你好,世界!
- Start Symbol: Specify a character or string to prefix each Pinyin syllable.
- Example:
(
- Example:
- End Symbol: Specify a character or string to suffix each Pinyin syllable.
- Example:
)
- Example:
你(nǐ)好(hǎo),世(shì)界(jiè)!
Non-Chinese characters can be included in the conversion output as-is.
Hello, 你好!
Hello, 你(nǐ)好(hǎo)!
Pinyin Only Display | Ignore Non-Chinese Characters | Output |
---|---|---|
✅ | ✅ | nǐ hǎo |
✅ | ❌ | Hello, nǐ hǎo ! |
❌ | ✅ | 你(nǐ)好(hǎo) |
❌ | ❌ | Hello, 你(nǐ)好(hǎo)! |
Convert Pinyin with tone numbers into tone-marked Pinyin.
a1a2a3a4
e1e2e3e4
i1i2i3i4
o1o2o3o4
u1u2u3u4
v1v2v3v4
ha3o
shi4
āáǎà
ēéěè
īíǐì
ōóǒò
ūúǔù
ǖǘǚǜ
hǎo
shì
The app automatically maps v
to ü
for convenience.
nv3, lv4
nǚ, lǜ
git clone https://github.com/kwan3854/SimplePinyinConverter.git
cd SimplePinyinConverter
Install all necessary Python packages:
pip install -r requirements.txt
python pinyin_converter.py
To build the application yourself using PyInstaller
, follow these steps:
pip install pyinstaller
pyinstaller --onefile --windowed pinyin_converter.py
-
Include
pypinyin
resources in the build:pyinstaller --onefile --windowed --add-data="/path/to/pypinyin:pypinyin" pinyin_converter.py
Replace
/path/to/pypinyin
with the path topypinyin
in your environment. -
Ensure the
.app
file has execution permissions:chmod +x dist/pinyin_converter.app/Contents/MacOS/*
-
App Doesn't Open:
- Control-click the
.app
file, select "Open," and confirm to bypass macOS Gatekeeper.
- Control-click the
-
Missing Resource Errors:
- Ensure you used the
--add-data
option during the PyInstaller build process.
- Ensure you used the
-
Permissions Issue:
- Run the following command to add execution permissions:
chmod +x dist/pinyin_converter.app/Contents/MacOS/*
- Run the following command to add execution permissions:
We welcome contributions to this project. If you have ideas for new features or improvements, feel free to open an issue or submit a pull request.
If you want to request a new feature or report a bug, please visit the Issues page of the repository and create a new issue. Make sure to provide a detailed description of your request or problem to help us address it effectively.
This project is licensed under the MIT License. See the LICENSE file for details.