diff --git a/pyproject.toml b/pyproject.toml index 44c8e49..66ab3ef 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uwcwidth" -version = "0.9.1" +version = "0.9.2" authors = [{name = "!ZAJC!"}] readme = "README.md" description = "terminal width of Unicode 16.0+Emoji strings in nanoseconds" @@ -10,7 +10,10 @@ classifiers = [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Topic :: Software Development :: Libraries :: Python Modules" + "Topic :: Software Development :: Libraries :: Python Modules", + "Topic :: Software Development :: Localization", + "Topic :: Software Development :: Internationalization", + "Topic :: Terminals" ] [project.optional-dependencies] @@ -29,8 +32,6 @@ include = ["uwcwidth"] exclude = [] namespaces = false - - [tool.pytest.ini_options] testpaths = ["tests"] addopts = ["--import-mode=importlib"] diff --git a/uwcwidth/__init__.pxd b/uwcwidth/__init__.pxd index 11dcac1..0b5e708 100644 --- a/uwcwidth/__init__.pxd +++ b/uwcwidth/__init__.pxd @@ -1,4 +1,4 @@ #cython: language_level=3 # SPDX-License-Identifier: MIT -from uwcwidth.uwcwidth cimport (wcwidth, wcswidth, wcwidth_uint32 +from uwcwidth.uwcwidth cimport (wcwidth, wcswidth, wcwidth_uint32, is_EMB, is_EMB_uint32) diff --git a/uwcwidth/uwcwidth.pxd b/uwcwidth/uwcwidth.pxd index 4f659be..31d010e 100644 --- a/uwcwidth/uwcwidth.pxd +++ b/uwcwidth/uwcwidth.pxd @@ -6,3 +6,4 @@ cpdef int wcwidth(unicode uwc) cpdef int wcswidth(unicode ustr, n=*) cpdef int wcwidth_uint32(uint32_t wc) cpdef bint is_EMB(unicode uwc) +cpdef bint is_EMB_uint32(uint32_t wc)