textproc/py-pyuca 1.2p0 OpenBSD
unicode collation algorithm
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- textproc, lang/python
Description
This is a Python implementation of the Unicode Collation Algorithm which can be used to order non-English strings.
The core of the algorithm involves multi-level comparison. For example, ``café`` comes before ``caff`` because at the primary level, the accent is ignored and the first word is treated as if it were ``cafe``. The secondary level (which considers accents) only applies then to words that are equivalent at the primary level.
Install
Binary package:
pkg_add py3-pyuca
From the ports tree:
cd /usr/ports/textproc/py-pyuca && make install