Skip to content

Commit

Permalink
Rename crate to unicode-width-16
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduerr committed Oct 10, 2024
1 parent ed95475 commit 60c9989
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 19 deletions.
14 changes: 8 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[package]
name = "unicode-width-16"
version = "0.1.0"
authors = [
"Christian Duerr <[email protected]>",
"Kirill Chibisov <[email protected]>",
]

name = "unicode-width"
version = "0.1.11"
authors = ["kwantam <[email protected]>", "Manish Goregaokar <[email protected]>"]

homepage = "https://github.com/unicode-rs/unicode-width"
repository = "https://github.com/unicode-rs/unicode-width"
homepage = "https://github.com/alacritty/unicode-width-16"
repository = "https://github.com/alacritty/unicode-width-16"
documentation = "https://unicode-rs.github.io/unicode-width"
license = "MIT OR Apache-2.0"
keywords = ["text", "width", "unicode"]
Expand Down
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
# unicode-width
# unicode-width-16

**This crate is a fork** of https://github.com/unicode-rs/unicode-width with
Unicode 16 support and removed `normalization`.

Determine displayed width of `char` and `str` types according to
[Unicode Standard Annex #11][UAX11] rules.

[UAX11]: http://www.unicode.org/reports/tr11/

[![Build Status](https://travis-ci.org/unicode-rs/unicode-width.svg)](https://travis-ci.org/unicode-rs/unicode-width)

[Documentation](https://unicode-rs.github.io/unicode-width/unicode_width/index.html)

```rust
extern crate unicode_width;

use unicode_width::UnicodeWidthStr;
use unicode_width_16::UnicodeWidthStr;

fn main() {
let teststr = "Hello, world!";
Expand All @@ -29,8 +26,7 @@ width. For example, the woman scientist emoji comprises of a woman emoji, a
zero-width joiner and a microscope emoji.

```rust
extern crate unicode_width;
use unicode_width::UnicodeWidthStr;
use unicode_width_16::UnicodeWidthStr;

fn main() {
assert_eq!(UnicodeWidthStr::width("👩"), 2); // Woman
Expand All @@ -54,5 +50,5 @@ to your `Cargo.toml`:

```toml
[dependencies]
unicode-width = "0.1.7"
unicode-width-16 = "0.1.0"
```
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
//! rules.
//!
//! ```rust
//! extern crate unicode_width;
//! extern crate unicode_width_16;
//!
//! use unicode_width::UnicodeWidthStr;
//! use unicode_width_16::UnicodeWidthStr;
//!
//! fn main() {
//! let teststr = "Hello, world!";
Expand Down

0 comments on commit 60c9989

Please sign in to comment.