n. portmanteau of kana, conv(ert) and japanese
Convert between various Japanese scripts (hiragana
, katakana
, romaji
)
romaji
→hiragana
,katakana
hiragana
→katakana
,romaji
katakana
→romaji
,hiragana
handle capital letters in romaji inputhandle whitespace in romaji inputhandle punctuation: , and .code cleanup:refactor generic transformation fnsmove out the static maps into another namepsaceeager load the maps once during the program lifetime
- expose a library API instead of just printing out
- Handle mixed-input (hiragana + romaji etc.)
- Conversion from Kana to Kanji
- this would most likely be something like henkan in IMEs
± cargo build
Finished dev [unoptimized + debuginfo] target(s) in 0.00s
#
# romaji to kana
#
± echo "kippu" | ./target/debug/konj
🍱 Konj: convert from one japanese script to all 🍱
romaji: kippu
hiragana: きっぷ
katakana: キップ
#
# hiragana to romaji
#
± echo "しんかんせん" | ./target/debug/konj
🍱 Konj: convert from one japanese script to all 🍱
hiragana: しんかんせん
katakana: シンカンセン
romaji: shinkansen