Popularity
1.9
Declining
Activity
0.0
Stable
1
2
0

Monthly Downloads: 21
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Text    
Latest version: v0.0.4

hzenhan alternatives and similar packages

Based on the "Text" category.
Alternatively, view hzenhan alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of hzenhan or a related project?

Add another 'Text' Package

README

hzenhan

Converter between Full-width Japanese and Half-width Japanese

This module ported Python's zenhan library, similar to the
"zenhan" library found in pypi:

https://pypi.python.org/pypi/zenhan/

Install

Installing from Hackage with stack is straightforward:

> stack install

or gentoo emerge from gentoo-haskell overlay

> layman -a haskell
> emerge dev-haskell/hzenhan

Usage

Let's see an example.

> {-# LANGUAGE OverloadedStrings #-}
>
> 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
>       r = isAllZenKana "アイウエオ"
>   putStrLn $ toString h
>   putStrLn $ toString z