BSD Ports

textproc/py-unicode-segmentation-rs 0.3.3_2 FreeBSD

Unicode segmentation and width for Python using Rust

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
9c878207a1
License
APACHE20
Categories
textproc, python
Package size
211.2 KiB, 560.8 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

SystemPortVersion
FreeBSDtextproc/py-unicode-segmentation-rs0.3.3_2
NetBSDtextproc/py-unicode-segmentation-rs0.3.3

Install

Binary package:

pkg install py312-unicode-segmentation-rs

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-unicode-segmentation-rs>0:textproc/py-unicode-segmentation-rs

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.3.3_10.3.3_2--0.3.3_2
FreeBSD:14:quarterly0.3.3_10.3.3_1n/a-0.3.3_1
FreeBSD:15:latest0.3.3_20.3.3_2n/a--
FreeBSD:15:quarterly0.3.3_10.3.3_1n/an/an/a
FreeBSD:16:latest0.3.3_10.3.3_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

The full lists below include those, and their dependencies in turn.

Build dependencies 23
Run dependencies 7

Configuration

No options to configure.

USES
cargo python
Service scripts
none

Files

distinfo 18
FileSizeSHA256
unicode_segmentation_rs-0.3.3.tar.gz34805d6625b2d3435ca814c9dd6590d39ae58ebeb8a4891eecb81446ad8b3e917f39b
rust/crates/heck-0.5.0.crate115172304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea
rust/crates/libc-0.2.189.crate8515023eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2
rust/crates/once_cell-1.21.4.crate350109f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50
rust/crates/portable-atomic-1.14.0.crate2007033d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3
rust/crates/proc-macro2-1.0.107.crate59588985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9
rust/crates/pyo3-0.29.2.crate1.255741e+064688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b
rust/crates/pyo3-build-config-0.29.2.crate41104f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9
rust/crates/pyo3-ffi-0.29.2.crate90029e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327
rust/crates/pyo3-macros-0.29.2.crate904473225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c
rust/crates/pyo3-macros-backend-0.29.2.crate93749571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952
rust/crates/quote-1.0.47.crate316221fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001
rust/crates/syn-2.0.119.crate307407872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297
rust/crates/target-lexicon-0.13.5.crate26928adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca
rust/crates/unicode-ident-1.0.24.crate49298e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75
rust/crates/unicode-linebreak-0.1.5.crate153243b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f
rust/crates/unicode-segmentation-1.13.3.crate112325c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8
rust/crates/unicode-width-0.2.2.crate282768b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254
Master sites 1
  • PYPI

Commit history 4

DateCommitCreditsLog message
9c878207a1 Mikael Urankar lang/rust: Bump revisions after 1.99.0
PR: 299016
7316461925 Mikael Urankar lang/rust: Bump revisions after 1.98.1
PR: 298139
7d03d44005 Po-Chuan Hsieh textproc/py-unicode-segmentation-rs: Update to 0.3.3
- Update LICENSE Changes: https://github.com/WeblateOrg/unicode-segmentation-rs/releases
9c892d2601 Mikael Urankar lang/rust: Bump revisions after 1.97.1
PR: 296645