View Source Unicode.Unihan.Cangjie (Unicode v0.3.0)
Allow easy interconversion of keyboard input and character.
Link to this section Summary
Functions
Converts an alphabet keyboard input to the Chinese Cangjie part. Returns an OK tuple.
Converts an alphabet keyboard input, or a list of alphabet keyboard inputs, to the Chinese Cangjie part. Throws exception if invalid input is supplied.
Link to this section Functions
Converts an alphabet keyboard input to the Chinese Cangjie part. Returns an OK tuple.
## Example
iex> Unicode.Unihan.Cangjie.cangjie("U")
{:ok, "山"}
Converts an alphabet keyboard input, or a list of alphabet keyboard inputs, to the Chinese Cangjie part. Throws exception if invalid input is supplied.
## Example
iex> Unicode.Unihan.Cangjie.cangjie!("U")
"山"
iex> Unicode.Unihan.Cangjie.cangjie!(["U", "J"])
["山", "十"]