konj

Crates.iokonj
lib.rskonj
version0.1.0
sourcesrc
created_at2019-09-08 13:48:02.481738
updated_at2019-09-08 13:48:02.481738
descriptionA tool to convert between various Japanese scripts
homepagehttps://github.com/kitallis/konj
repositoryhttps://github.com/kitallis/konj
max_upload_size
id163226
size26,200
Akshay Gupta (kitallis)

documentation

README

konj

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

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

current status

Basic conversion from romaji to hiragana, katakana

next steps

  • handle capital letters in romaji input
  • handle whitespace in romaji input
  • handle punctuation: , and .
  • output json (flag)
  • make the program unix-pipe-able only
  • code cleanup:
    • refactor generic transformation fns
    • move out the static maps into another namepsace
    • eager load the maps once during the program lifetime

upcoming

  • Handle mixed-input (hiragana + romaji etc.)
  • Conversion from any input to all other inputs
    • hiragana → romaji, katakana
    • katakana → romaji, hiragana
  • 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 🍱

You entered in romaji. Converting to kana...
hiragana: きっぷ
katakana: キップ

#
# hiragana to romaji
#

± echo "しんかんせん" | ./target/debug/konj
🍱  Konj: convert from one japanese script to all 🍱

hiragana: しんかんせん
katakana: シンカンセン
romaji: shinkansen
Commit count: 38

cargo fmt