Metadata-Version: 2.1
Name: Utsuho
Version: 1.1.0
Summary: Utsuho is a Python module that provides interconversion between Japanese half-width katakana and full-width katakana.
Author-email: Nobuyuki Sekimori <43375309+juno-rmks@users.noreply.github.com>
Project-URL: Source Code, https://github.com/juno-rmks/utsuho/
Project-URL: Documentation, https://utsuho.readthedocs.io/
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: build (>=0.10.0) ; extra == 'dev'
Requires-Dist: twine (>=4.0.2) ; extra == 'dev'
Requires-Dist: autopep8 (>=2.0.2) ; extra == 'dev'
Requires-Dist: isort (>=5.11.5) ; extra == 'dev'
Requires-Dist: Sphinx (>=5.3.0) ; extra == 'dev'
Requires-Dist: sphinx-intl (>=2.1.0) ; extra == 'dev'
Requires-Dist: sphinx-rtd-theme (>=1.2.0) ; extra == 'dev'
Requires-Dist: myst-parser (>=1.0.0) ; extra == 'dev'
Provides-Extra: test
Requires-Dist: pytest (>=7.0.0) ; extra == 'test'
Requires-Dist: coverage (>=7.2.2) ; extra == 'test'
Requires-Dist: pytest-benchmark (>=4.0.0) ; extra == 'test'

# Utsuho

Utsuho is a Python module that provides interconversion between Japanese half-width katakana and full-width katakana.

The name Utsuho comes from the long story "Utsuho Monogatari," which is said to have been written in the middle of the Heian period, and contains descriptions of katakana.

## Installing

Install and update using pip:

```sh
pip install Utsuho
```

## Usage

To convert from half-width katakana to full-width katakana, code as follows.

```python
from utsuho import HalfToFullConverter

halfwidth = 'ｷｮｳﾄｼ ｻｷｮｳｸ ｷﾞﾝｶｸｼﾞﾁｮｳ 2'
cnv = HalfToFullConverter()
fullwidth = cnv.convert(halfwidth)
```

The conversion result of the above example is "`キョウトシ　サキョウク　ギンカクジチョウ　２`".

To convert from full-width katakana to half-width katakana, code as follows.

```python
from utsuho import FullToHalfConverter

fullwidth = 'キョウトシ　サキョウク　ギンカクジチョウ　２'
cnv = FullToHalfConverter()
halfwidth = cnv.convert(fullwidth)
```

The conversion result of the above example is "`ｷｮｳﾄｼ ｻｷｮｳｸ ｷﾞﾝｶｸｼﾞﾁｮｳ 2`".

## License

This project is licensed under the terms of the Apache license 2.0.

See the ["LICENSE"](https://github.com/juno-rmks/utsuho/blob/main/LICENSE) file for license rights and limitations.

## Links

* [Utsuho document](https://utsuho.readthedocs.io/ja/latest/)
