Japanese strings - Wide/Half "Kana" characters Conversion Library for Elixir lang
全角半角変換ライブラリ
def deps do
[
{:mojiex, github: "enpedasi/mojiex"},
]
end
Mojiex.convert("ABCD 01234あいうアイウABCD 01234アイウ",{:hk, :zk})
|> Mojiex.convert({:kk, :hg})
"ABCD 01234あいうあいうABCD 01234あいう"
- Mojiex.convert(
source string
, {from
,to
})
combination of {from
, to
}
atom | kind | atom | kind | |
---|---|---|---|---|
:zk | 全角カタカナ | ↔ | :hk | 半角カタカナ |
:ze | 全角英数 | ↔ | :he | 半角英数 |
:he | ひらがな | ↔ | :kk | カタカナ |
:zs | 全角SPACE | ↔ | :hs | 半角SPACE |
Copyright(c) 2018 enpedasi Licensed under the MIT license.