Copyright | 2017 karky7 Calimakvonia |
---|---|
License | BSD3 |
Maintainer | cantimerny.g@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
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
:: [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
:: [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
Type for character type to be converted