From 4c742d38f176d455412186976b78524962020461 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 6 Nov 2020 11:12:07 +0000 Subject: [PATCH] Add py-anyascii 0.1.7 AnyAscii converts Unicode text to a reasonable representation using only ASCII. For most characters in Unicode, AnyAscii provides an ASCII-only replacement string. Text is converted character-by-character without considering the context. The mappings for each script are based on popular existing romanization schemes. Symbolic characters are converted based on their meaning or appearance. All ASCII characters in the input are left unchanged, every other character is replaced with printable ASCII characters. Unknown characters are removed. WWW: https://github.com/anyascii/anyascii --- textproc/Makefile | 1 + textproc/py-anyascii/Makefile | 26 ++++++++++++++++++++++++++ textproc/py-anyascii/distinfo | 3 +++ textproc/py-anyascii/pkg-descr | 10 ++++++++++ 4 files changed, 40 insertions(+) create mode 100644 textproc/py-anyascii/Makefile create mode 100644 textproc/py-anyascii/distinfo create mode 100644 textproc/py-anyascii/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index d30064696609..59e388eba1e1 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1228,6 +1228,7 @@ SUBDIR += py-agate-dbf SUBDIR += py-agate-excel SUBDIR += py-alabaster + SUBDIR += py-anyascii SUBDIR += py-arabic-reshaper SUBDIR += py-asciinema SUBDIR += py-asonic diff --git a/textproc/py-anyascii/Makefile b/textproc/py-anyascii/Makefile new file mode 100644 index 000000000000..25168b9fa954 --- /dev/null +++ b/textproc/py-anyascii/Makefile @@ -0,0 +1,26 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= anyascii +PORTVERSION= 0.1.7 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Unicode to ASCII transliteration + +LICENSE= ISCL +LICENSE_FILE= ${WRKSRC}/LICENSE + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} + +USES= python:3.3+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v + +.include diff --git a/textproc/py-anyascii/distinfo b/textproc/py-anyascii/distinfo new file mode 100644 index 000000000000..9c9e2e91ad1e --- /dev/null +++ b/textproc/py-anyascii/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1604480702 +SHA256 (anyascii-0.1.7.tar.gz) = d0eb076933a9eaf1138cb365a5e2e35360ffbbf3200bf33419aaa17d5f8599f5 +SIZE (anyascii-0.1.7.tar.gz) = 194100 diff --git a/textproc/py-anyascii/pkg-descr b/textproc/py-anyascii/pkg-descr new file mode 100644 index 000000000000..d69c023c7e30 --- /dev/null +++ b/textproc/py-anyascii/pkg-descr @@ -0,0 +1,10 @@ +AnyAscii converts Unicode text to a reasonable representation using only ASCII. + +For most characters in Unicode, AnyAscii provides an ASCII-only replacement +string. Text is converted character-by-character without considering the +context. The mappings for each script are based on popular existing romanization +schemes. Symbolic characters are converted based on their meaning or appearance. +All ASCII characters in the input are left unchanged, every other character is +replaced with printable ASCII characters. Unknown characters are removed. + +WWW: https://github.com/anyascii/anyascii