BSD Ports

textproc/py-unicode-segmentation-rs 0.3.3_1 DragonFly

Unicode segmentation and width for Python using Rust

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
python, textproc
Package size
196.6 KiB, 589.4 KiB installed

Description

Python bindings for the Rust unicode-segmentation and unicode-width crates, providing Unicode text segmentation and width calculation according to Unicode standards.

Features:

  • Grapheme Cluster Segmentation: Split text into user-perceived characters
  • Word Segmentation: Split text into words according to Unicode rules
  • Sentence Segmentation: Split text into sentences
  • Display Width Calculation: Get the display width of text (for terminal/monospace display)
  • Gettext PO Wrapping: Wrap text for gettext PO files with proper handling of escape sequences and CJK characters

In the other systems

The newest version among them is 1.0.1, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlytextproc/py-unicode-segmentation-rs0.3.3_1 behind since 2026-10-26none known-[email protected]-
FreeBSDtextproc/py-unicode-segmentation-rs1.0.1 newestnone known-[email protected]2026-11-09
NetBSDtextproc/py-unicode-segmentation-rs0.3.3 behind since 2026-10-26none known-[email protected]2026-11-02
HardenedBSDtextproc/py-unicode-segmentation-rs0.3.3_2 behind since 2026-10-26no data-[email protected]-
GhostBSDtextproc/py-unicode-segmentation-rs0.3.3_2 behind since 2026-10-26no data-[email protected]-

Compare across BSDs

Version history 1

  1. 0.3.3

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install py312-unicode-segmentation-rs

From DPorts:

cd /usr/dports/textproc/py-unicode-segmentation-rs && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1