#hiragana #japanese #kana #cli #script #convert #katakana

app konj

A tool to convert between various Japanese scripts

1 unstable release

Uses old Rust 2015

0.1.0 Sep 8, 2019

#11 in #kana

MIT license

23KB
532 lines

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

Dependencies

~1MB
~17K SLoC