A terminal-based Romaji to Kana converter built with Rust. Convert Roman characters (romaji) to Japanese Hiragana and Katakana in real-time.
- Real-time conversion from Romaji to Hiragana/Katakana
- Toggle between Hiragana and Katakana modes
- Copy converted text to clipboard
- Clean and intuitive terminal user interface
- Make sure you have Rust and Cargo installed
- Clone this repository
- Build and run the project:
git clone https://github.com/JohnTNP/kana-type.git
cd kana-type
cargo run- Type romaji (roman characters) to see the immediate conversion
- Use arrow keys to navigate the input text
- Press
Tabto toggle between Hiragana and Katakana modes - Press
Deleteto clear the input - Press
Ctrl+Cto copy the converted text - Press
EscorCtrl+Qto quit
Here are some example conversions:
Hiragana mode:
konnichiwa→ こんにちわohayou→ おはようsayounara→ さようなら
Katakana mode:
paatii→ パーティーkonpyuutaa→ コンピューターsutoresu→ ストレス
- Double vowels are converted to long vowel marks in katakana (e.g.,
aa→ アー) - Double consonants create small つ/ツ (e.g.,
kitte→ きって) - Use 'n' for ん/ン (e.g.,
shinbun→ しんぶん) - Special combinations like 'kya', 'shu', 'ryo' are supported