Skip to content
/ konj Public

convert japanese from one script to all

License

Notifications You must be signed in to change notification settings

kitallis/konj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

konj

Crates.io

n. portmanteau of kana, conv(ert) and japanese

Convert between various Japanese scripts (hiragana, katakana, romaji)

current status

  • romajihiragana, katakana
  • hiraganakatakana, romaji
  • katakanaromaji, hiragana

next steps

  • handle capital letters in romaji input
  • handle whitespace in romaji input
  • handle punctuation: , and .
  • code cleanup:
    • refactor generic transformation fns
    • move out the static maps into another namepsace
    • eager load the maps once during the program lifetime
  • expose a library API instead of just printing out

upcoming

  • Handle mixed-input (hiragana + romaji etc.)
  • Conversion from Kana to Kanji
    • this would most likely be something like henkan in IMEs

use

± 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