All Projects β†’ axelf4 β†’ unicode-linebreak

axelf4 / unicode-linebreak

Licence: Apache-2.0 license
σ ΌπŸ’” Implementation of the Unicode Line Breaking Algorithm in Rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to unicode-linebreak

mpris-rs
Idiomatic MPRIS D-Bus interface library for Rust
Stars: ✭ 37 (+164.29%)
Mutual labels:  rust-library
inline-c-rs
Write and execute C code inside Rust.
Stars: ✭ 121 (+764.29%)
Mutual labels:  rust-library
kuu-pyaung
Laravel package to convert files and database from zawgyi to unicode.
Stars: ✭ 13 (-7.14%)
Mutual labels:  unicode
rust-cross-libs
Cross-compile the Rust standard library for custom targets without a full bootstrap build.
Stars: ✭ 29 (+107.14%)
Mutual labels:  rust-library
unicode-programming
Unicode programming examples
Stars: ✭ 33 (+135.71%)
Mutual labels:  unicode
kul
A unique textual notation that can be used as both a data format and a markup language and that has powerful extensibility of both lexical syntax and semantics, and a Rust library for parsing it.
Stars: ✭ 12 (-14.29%)
Mutual labels:  rust-library
characters
A package for characters represented as unicode extended grapheme clusters
Stars: ✭ 54 (+285.71%)
Mutual labels:  unicode
fntsample
PDF and PostScript font samples generator (migrating from https://sourceforge.net/projects/fntsample/)
Stars: ✭ 20 (+42.86%)
Mutual labels:  unicode
dupe-krill
A fast file deduplicator
Stars: ✭ 147 (+950%)
Mutual labels:  rust-library
charcod.es
Small webpage for finding the odd unicode char code.
Stars: ✭ 18 (+28.57%)
Mutual labels:  unicode
utfbom
Detection of the BOM and removing as necessary
Stars: ✭ 87 (+521.43%)
Mutual labels:  unicode
dressup
Dress up your unicode!
Stars: ✭ 22 (+57.14%)
Mutual labels:  unicode
version-compare
↔️ Rust library to easily compare version strings. Mirror from https://gitlab.com/timvisee/version-compare
Stars: ✭ 32 (+128.57%)
Mutual labels:  rust-library
log-utils
Basic logging utils: colors, symbols and timestamp.
Stars: ✭ 24 (+71.43%)
Mutual labels:  unicode
daemonize-me
Rust library to ease the task of creating daemons
Stars: ✭ 34 (+142.86%)
Mutual labels:  rust-library
otp
One Time Password for 2-Factor-Authentication implemented in Rust
Stars: ✭ 21 (+50%)
Mutual labels:  rust-library
unihandecode
unihandecode is a transliteration library to convert all characters/words in Unicode into ASCII alphabet that aware with Language preference priorities
Stars: ✭ 71 (+407.14%)
Mutual labels:  unicode
healthchecks-rs
Simple Rust library to interact with healthchecks.io
Stars: ✭ 16 (+14.29%)
Mutual labels:  rust-library
ArmorLib
Easily scan files for threats to security and privacy. A Rust library and command line tool. WIP.
Stars: ✭ 20 (+42.86%)
Mutual labels:  rust-library
symbols
Transform text into mathematical alphanumeric π—Œπ—’π—†π–»π—ˆπ—…π—Œ.
Stars: ✭ 22 (+57.14%)
Mutual labels:  unicode

unicode-linebreak

Implementation of the Line Breaking Algorithm described in Unicode Standard Annex #14.

test Documentation

Given an input text, locates "line break opportunities", or positions appropriate for wrapping lines when displaying text.

Example

use unicode_linebreak::{linebreaks, BreakOpportunity::{Mandatory, Allowed}};

let text = "a b \nc";
assert!(linebreaks(text).eq(vec![
	(2, Allowed),   // May break after first space
	(5, Mandatory), // Must break after line feed
	(6, Mandatory)  // Must break at end of text, so that there always is at least one LB
]));
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].