[Sharing] I've created a Chinese to Morse code converter, designed for use by amateur radio operators (HAMs) (Web/Offline).
Hello everyone, I've been organizing some materials related to Chinese character encoding recently, and I've also been tinkering with a few small tools. As a result, I wrote this up. Converter between Chinese Hanzi and Chinese CodeI've created a web application and would like to share it with everyone. I welcome feedback and suggestions. 🙂
Link: https://chinese-code-web.vercel.app/
Requires magic internet access.
Available on GitHub
Many of my friends, like me, are also interested in Chinese codes, early communication methods, and its historical and technical background in amateur radio. However, manually looking up and comparing codes can be a bit cumbersome, so I thought it would be helpful to create something.Simple, easy-to-use tools。
What can this tool do?
Simply put, there are two things:
- Hanzi → Chinese character encoding
- Chinese code → Chinese characters
For example:
This newspaper, Beijing edition
Can be directly converted to:
Report 0022, Form 1863, North 1722, Beijing 0220
Conversely, the input is:
0022 1863 1722 0220
It can also be converted back to corresponding Chinese characters, making it easier to verify and learn.
Numbers, English words, and common symbols will be preserved exactly as they are, without any alterations.
If a character that is not currently in the code table is encountered, it will be clearly marked to avoid "silent errors."
Is it easy to use?
I'm trying to keep things as simple as possible:
Use it directly in your browser; no installation or registration required.
Supported Import/Export TXT filesSuitable for organizing documents.
Supported Install for local use(PWA)
Once installed, it functions just like a regular application.
It can be used offline, making it convenient for demonstrations or learning purposes.
The phone, tablet, and computer all work normally.
What are the technical details of how this is implemented?
Nothing fancy:
- Pure front-end implementation (HTML + CSS + JavaScript)
- The code table maps directly to the local environment.
- Does not use a server; does not collect any data.
- The offline cache uses standard PWA mechanisms.
The overall goal is:Usable, effective, and reliable in any environment.。
What are some suitable scenarios?
- Communication and demonstration of Chinese Morse code between HAMs.
- Learn / Review early communication technologies
- Conduct some small experiments related to telegraph codes.
- Show new friends how "Chinese barcodes work"
This does not involve encryption and is solely for technical exchange and learning purposes, without being used for formal communication.
Regarding open-source and copyright
- Author / Maintainer:BD8DQS
- The project is Open-source(MIT License)
- Welcome everyone to use, modify, and re-publish.
- Keep the author's name.
Additionally, I would like to clarify:
This project was under development.Some users are using AI tools as aids.(Primarily involved in organizing code and structure), but I personally reviewed and verified all logic and published content.
Finally
This is just a small tool, and the code table isn't guaranteed to be 100% complete. If you find any missing characters, incorrect codes, or have better suggestions, please provide feedback and discuss them. I am a humanities student with no prior web development experience. If anyone has good implementation methods, please share them and correct my understanding.
I hope this will be helpful for other enthusiasts.
73, Wishing you all the best with Zhonglian.
- BD8DQS