notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
py-unicode-segmentation-rs Unicode segmentation and width for Python using Rust
0.2.0 textprocnew! on this many watch lists=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Package not present on quarterly.This port was created during this quarter. It will be in the next quarterly branch but not the current one.
Maintainer: sunpoet@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-12-02 12:21:26
Last Update: 2025-12-02 12:04:15
Commit Hash: d02fe93
Also Listed In: python
License: MIT
WWW:
https://github.com/WeblateOrg/unicode-segmentation-rs
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
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}unicode-segmentation-rs>0:textproc/py-unicode-segmentation-rs@${PY_FLAVOR}
To install the port:
cd /usr/ports/textproc/py-unicode-segmentation-rs/ && make install clean
To add the package, run one of these commands:
  • pkg install textproc/py-unicode-segmentation-rs
  • pkg install py311-unicode-segmentation-rs
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-unicode-segmentation-rs listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-unicode-segmentation-rs
Package flavors (<flavor>: <package>)
  • py311: py311-unicode-segmentation-rs
distinfo:
TIMESTAMP = 1764510876 SHA256 (unicode_segmentation_rs-0.2.0.tar.gz) = 137246f8ccadf249e4978503a88438de68205d89bf360ddeece340938c33caec SIZE (unicode_segmentation_rs-0.2.0.tar.gz) = 24842

Expand this list (50 items)

Collapse this list.

SHA256 (rust/crates/autocfg-1.5.0.crate) = c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8 SIZE (rust/crates/autocfg-1.5.0.crate) = 18729 SHA256 (rust/crates/cc-1.2.48.crate) = c481bdbf0ed3b892f6f806287d72acd515b352a4ec27a208489b8c1bc839633a SIZE (rust/crates/cc-1.2.48.crate) = 92458 SHA256 (rust/crates/find-msvc-tools-0.1.5.crate) = 3a3076410a55c90011c298b04d0cfa770b00fa04e1e3c97d3f6c9de105a03844 SIZE (rust/crates/find-msvc-tools-0.1.5.crate) = 30942 SHA256 (rust/crates/heck-0.5.0.crate) = 2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea SIZE (rust/crates/heck-0.5.0.crate) = 11517 SHA256 (rust/crates/indoc-2.0.7.crate) = 79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706 SIZE (rust/crates/indoc-2.0.7.crate) = 17184 SHA256 (rust/crates/libc-0.2.177.crate) = 2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976 SIZE (rust/crates/libc-0.2.177.crate) = 792045 SHA256 (rust/crates/memoffset-0.9.1.crate) = 488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a SIZE (rust/crates/memoffset-0.9.1.crate) = 9032 SHA256 (rust/crates/once_cell-1.21.3.crate) = 42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d SIZE (rust/crates/once_cell-1.21.3.crate) = 34534 SHA256 (rust/crates/portable-atomic-1.11.1.crate) = f84267b20a16ea918e43c6a88433c2d54fa145c92a811b5b047ccbe153674483 SIZE (rust/crates/portable-atomic-1.11.1.crate) = 185506 SHA256 (rust/crates/proc-macro2-1.0.103.crate) = 5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8 SIZE (rust/crates/proc-macro2-1.0.103.crate) = 60024 SHA256 (rust/crates/pyo3-0.27.1.crate) = 37a6df7eab65fc7bee654a421404947e10a0f7085b6951bf2ea395f4659fb0cf SIZE (rust/crates/pyo3-0.27.1.crate) = 1172212 SHA256 (rust/crates/pyo3-build-config-0.27.1.crate) = f77d387774f6f6eec64a004eac0ed525aab7fa1966d94b42f743797b3e395afb SIZE (rust/crates/pyo3-build-config-0.27.1.crate) = 35565 SHA256 (rust/crates/pyo3-ffi-0.27.1.crate) = 2dd13844a4242793e02df3e2ec093f540d948299a6a77ea9ce7afd8623f542be SIZE (rust/crates/pyo3-ffi-0.27.1.crate) = 78517 SHA256 (rust/crates/pyo3-macros-0.27.1.crate) = eaf8f9f1108270b90d3676b8679586385430e5c0bb78bb5f043f95499c821a71 SIZE (rust/crates/pyo3-macros-0.27.1.crate) = 8918 SHA256 (rust/crates/pyo3-macros-backend-0.27.1.crate) = 70a3b2274450ba5288bc9b8c1b69ff569d1d61189d4bff38f8d22e03d17f932b SIZE (rust/crates/pyo3-macros-backend-0.27.1.crate) = 82521 SHA256 (rust/crates/python3-dll-a-0.2.14.crate) = d381ef313ae70b4da5f95f8a4de773c6aa5cd28f73adec4b4a31df70b66780d8 SIZE (rust/crates/python3-dll-a-0.2.14.crate) = 103489 SHA256 (rust/crates/quote-1.0.42.crate) = a338cc41d27e6cc6dce6cefc13a0729dfbb81c262b1f519331575dd80ef3067f SIZE (rust/crates/quote-1.0.42.crate) = 31504 SHA256 (rust/crates/rustversion-1.0.22.crate) = b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d SIZE (rust/crates/rustversion-1.0.22.crate) = 21096 SHA256 (rust/crates/shlex-1.3.0.crate) = 0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64 SIZE (rust/crates/shlex-1.3.0.crate) = 18713 SHA256 (rust/crates/syn-2.0.111.crate) = 390cc9a294ab71bdb1aa2e99d13be9c753cd2d7bd6560c77118597410c4d2e87 SIZE (rust/crates/syn-2.0.111.crate) = 302117 SHA256 (rust/crates/target-lexicon-0.13.3.crate) = df7f62577c25e07834649fc3b39fafdc597c0a3527dc1c60129201ccfcbaa50c SIZE (rust/crates/target-lexicon-0.13.3.crate) = 28498 SHA256 (rust/crates/unicode-ident-1.0.22.crate) = 9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5 SIZE (rust/crates/unicode-ident-1.0.22.crate) = 47919 SHA256 (rust/crates/unicode-segmentation-1.12.0.crate) = f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493 SIZE (rust/crates/unicode-segmentation-1.12.0.crate) = 106323 SHA256 (rust/crates/unicode-width-0.2.2.crate) = b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254 SIZE (rust/crates/unicode-width-0.2.2.crate) = 282768 SHA256 (rust/crates/unindent-0.2.4.crate) = 7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3 SIZE (rust/crates/unindent-0.2.4.crate) = 7422

Collapse this list.


Packages (timestamps in pop-ups are UTC):
py311-unicode-segmentation-rs
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest-0.2.0--0.2.0n/an/an/a
FreeBSD:13:quarterly-----n/an/an/a
FreeBSD:14:latest-0.2.0--0.2.0---
FreeBSD:14:quarterly--------
FreeBSD:15:latest-0.2.0n/a-n/an/a--
FreeBSD:15:quarterly--n/a-n/an/a--
FreeBSD:16:latest-0.2.0n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-maturin>=1.10.0<2.0 : devel/py-maturin@py311
  2. rust>=1.91.0 : lang/rust
  3. python3.11 : lang/python311
  4. py311-build>=0 : devel/py-build@py311
  5. py311-installer>=0 : devel/py-installer@py311
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. python3.11 : lang/python311
This port is required by:
for Build
  1. textproc/translate-toolkit
for Run
  1. textproc/translate-toolkit

Configuration Options:
No options to configure
Options name:
textproc_py-unicode-segmentation-rs
USES:
cargo python
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/u/unicode-segmentation-rs/
  2. https://pypi.org/packages/source/u/unicode-segmentation-rs/
Collapse this list.

Number of commits found: 1

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.2.0
02 Dec 2025 12:04:15
commit hash: d02fe93101149762fef53b28ff03b0ed1a00f7b2commit hash: d02fe93101149762fef53b28ff03b0ed1a00f7b2commit hash: d02fe93101149762fef53b28ff03b0ed1a00f7b2commit hash: d02fe93101149762fef53b28ff03b0ed1a00f7b2 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
textproc/py-unicode-segmentation-rs: Add py-unicode-segmentation-rs 0.2.0

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

Number of commits found: 1