Skip to content

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

  • romaji β†’ hiragana, katakana
  • hiragana β†’ katakana, romaji
  • katakana β†’ romaji, 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

About

convert japanese from one script to all

Topics

Resources

License

Stars

Watchers

Forks

Languages