Skip to content

Commit 298370b

Browse files
committed
Import Unicode 17.0 emojis
1 parent f53cf12 commit 298370b

File tree

7 files changed

+2380
-2215
lines changed

7 files changed

+2380
-2215
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ iterate over all emoji.
1818
- Iterate over emojis in an emoji group, e.g. “Smileys & Emotion” or “Flags”
1919
- Iterate over the skin tones for an emoji
2020
- Select a specific skin tone for an emoji
21-
- Uses [Unicode v16.0](https://unicode.org/emoji/charts-16.0/emoji-released.html) emoji specification
21+
- Uses [Unicode v17.0](https://unicode.org/emoji/charts-17.0/emoji-released.html) emoji specification
2222

2323
## Getting started
2424

generate/src/unicode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use serde::Serialize;
1414
pub use crate::unicode::data::Group;
1515
use crate::unicode::data::Status;
1616

17-
pub const VERSION_MAJOR: &str = "16";
17+
pub const VERSION_MAJOR: &str = "17";
1818
pub const VERSION_MINOR: &str = "0";
1919
pub const VERSION_PATCH: &str = "0";
2020

generate/src/unicode/data.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@ use anyhow::Result;
77
use constcat::concat;
88
use serde::Serialize;
99

10-
use crate::unicode::{VERSION_MAJOR, VERSION_MINOR};
10+
use crate::unicode::{VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH};
1111
use crate::util;
1212

1313
const URL: &str = concat!(
14-
"https://unicode.org/Public/emoji/",
14+
"https://unicode.org/Public/",
1515
VERSION_MAJOR,
1616
".",
1717
VERSION_MINOR,
18-
"/emoji-test.txt"
18+
".",
19+
VERSION_PATCH,
20+
"/emoji/emoji-test.txt"
1921
);
2022

2123
/// A single entry in the file.

src/gen/mod.rs

Lines changed: 2370 additions & 2207 deletions
Large diffs are not rendered by default.

src/gen/shortcode.rs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/gen/unicode.rs

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//! - Iterate over emojis in an emoji group, e.g. "Smileys & Emotion" or "Flags"
1111
//! - Iterate over the skin tones for an emoji
1212
//! - Select a specific skin tone for an emoji
13-
//! - Uses [Unicode v16.0](https://unicode.org/emoji/charts-16.0/emoji-released.html) emoji specification
13+
//! - Uses [Unicode v17.0](https://unicode.org/emoji/charts-17.0/emoji-released.html) emoji specification
1414
//!
1515
//! [gemoji]: https://github.com/github/gemoji
1616
//!

0 commit comments

Comments
 (0)