| Copyright | 2017 karky7 Calimakvonia |
|---|---|
| License | BSD3 |
| Maintainer | cantimerny.g@gmail.com |
| Stability | unstable |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Text.Zenhan
Description
This module ported Python's zenhan library, similar to the "zenhan" library found in pypi:
https://pypi.python.org/pypi/zenhan/
Let's see an example.
import Text.Zenhan
import Data.Text (pack, unpack)
main :: IO ()
main = do
let h = h2z [Kana, Digit, Ascii] "A" "ABCd\\「」アイウエオ123"
z = z2h [Kana, Digit, Ascii] "Bエ" h
putStrLn $ toString h
putStrLn $ toString z
This library is still a work-in-progress, and contributions are welcome for missing pieces and to fix bugs. Please see the Github page to contribute with code or bug reports:
Documentation
Arguments
| :: [Mode] | Type of character to be converted |
| -> Text | Conversion exclusion character |
| -> Text | Characters to be converted |
| -> Text | Result |
Convert from Full-width Japanese character to Half-width Japanese character
Arguments
| :: [Mode] | Type of character to be converted |
| -> Text | Conversion exclusion character |
| -> Text | Characters to be converted |
| -> Text | Result |
Convert from Half-width Japanese character to Full-width Japanese character
Check Full-width Japanese character zen kana, return True if all text is Zen Kana
Check Full-width Japanese character zen kana, return True if all text is Hen Kana
Check Full-width Japanese character zen kana, returns True if the text all Zen Kana
Type for character type to be converted