Skip to content

Japanese strings - Wide/Half "Kana" characters Conversion Library for Elixir

License

Notifications You must be signed in to change notification settings

enpedasi/Mojiex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mojiex

Build Status

Japanese strings - Wide/Half "Kana" characters Conversion Library for Elixir lang

全角半角変換ライブラリ

Installation

def deps do
  [
    {:mojiex, github: "enpedasi/mojiex"},    
  ]
end

Usage

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

License

Copyright(c) 2018 enpedasi Licensed under the MIT license.

About

Japanese strings - Wide/Half "Kana" characters Conversion Library for Elixir

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages