From 12244bad439e6e373b9d328abf64df879b275494 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Sat, 25 Oct 2025 22:20:03 +0200 Subject: [PATCH 1/5] Run formatter --- src/lib.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index cd401ac..93d6354 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -199,10 +199,7 @@ mod test { #[test] fn symbols_are_not_emojis() { assert!( - are_all_variants_valid( - SYM, - |c| !c.contains(EMOJI_PRESENTATION_SELECTOR), - ) , + are_all_variants_valid(SYM, |c| !c.contains(EMOJI_PRESENTATION_SELECTOR)), "unexpected use of emoji presentation selector in `sym` (see list above)", ) } @@ -210,10 +207,7 @@ mod test { #[test] fn emojis_are_not_text() { assert!( - are_all_variants_valid( - EMOJI, - |c| !c.contains(TEXT_PRESENTATION_SELECTOR), - ) , + are_all_variants_valid(EMOJI, |c| !c.contains(TEXT_PRESENTATION_SELECTOR)), "unexpected use of text presentation selector in `emoji` (see list above)", ) } From 1685cd47ff57f4b90eefa3b4532be7e8a7cb4784 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Sat, 25 Oct 2025 22:21:16 +0200 Subject: [PATCH 2/5] Update presentation sequences to Unicode 17.0.0 --- build.rs | 4 ++-- src/lib.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.rs b/build.rs index 87fdfd2..8aced43 100644 --- a/build.rs +++ b/build.rs @@ -72,10 +72,10 @@ fn main() { { let emoji_vs_list = Path::new(&out).join("emoji-variation-sequences.txt"); if !std::fs::read_to_string(&emoji_vs_list) - .is_ok_and(|text| text.contains("Emoji Version 16.0")) + .is_ok_and(|text| text.contains("Emoji Version 17.0")) { let content = ureq::get( - "https://www.unicode.org/Public/16.0.0/ucd/emoji/emoji-variation-sequences.txt", + "https://www.unicode.org/Public/17.0.0/ucd/emoji/emoji-variation-sequences.txt", ) .call() .unwrap() diff --git a/src/lib.rs b/src/lib.rs index 93d6354..35f9dc4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -264,7 +264,7 @@ mod test { assert!( are_all_variants_valid(SYM, |c| { // All emoji variation sequences are exactly 2 codepoints long - // as of Unicode 16.0, so this doesn't miss anything. + // as of Unicode 17.0, so this doesn't miss anything. !(c.chars().count() == 1 && require_presentation_selector.contains(&c.chars().next().unwrap())) }), @@ -282,7 +282,7 @@ mod test { assert!( are_all_variants_valid(EMOJI, |c| { // All emoji variation sequences are exactly 2 codepoints long - // as of Unicode 16.0, so this doesn't miss anything. + // as of Unicode 17.0, so this doesn't miss anything. !(c.chars().count() == 1 && require_presentation_selector.contains(&c.chars().next().unwrap())) }), From 933d294e0c2e4063bb2ff5cc3976022843befbce Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Sat, 25 Oct 2025 22:27:21 +0200 Subject: [PATCH 3/5] Update `styling` module to Unicode 17.0.0 --- src/styling.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/styling.rs b/src/styling.rs index 33505ed..8783216 100644 --- a/src/styling.rs +++ b/src/styling.rs @@ -5,7 +5,7 @@ use std::iter::FusedIterator; /// The version of [Unicode](https://www.unicode.org/) that this version of the /// styling module is based on. -pub const UNICODE_VERSION: (u8, u8, u8) = (16, 0, 0); +pub const UNICODE_VERSION: (u8, u8, u8) = (17, 0, 0); /// A style for mathematical symbols. /// @@ -408,7 +408,7 @@ pub fn to_style(c: char, style: MathStyle) -> ToStyle { /// - [Mathematical Alphanumeric Symbols] /// - [Arabic Mathematical Alphabetic Symbols] /// -/// [Unicode Core Specification - Section 22.2, Letterlike Symbols]: +/// [Unicode Core Specification - Section 22.2, Letterlike Symbols]: /// [Letterlike Symbols]: /// [Mathematical Alphanumeric Symbols]: /// [Arabic Mathematical Alphabetic Symbols]: From 68c6b822d5e40da63f790ffae50d1c059a90c1b3 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Sun, 26 Oct 2025 10:57:57 +0100 Subject: [PATCH 4/5] Update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd03c72..0f5179c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### General changes + +- Trivially updated to Unicode 17.0.0 + ### New in `sym` - Currency From d1e9bd30b3e74070c72f85f5b233dc1ded6f86cd Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Sun, 26 Oct 2025 13:00:08 +0100 Subject: [PATCH 5/5] Fix check that never passed --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 8aced43..33a094d 100644 --- a/build.rs +++ b/build.rs @@ -72,7 +72,7 @@ fn main() { { let emoji_vs_list = Path::new(&out).join("emoji-variation-sequences.txt"); if !std::fs::read_to_string(&emoji_vs_list) - .is_ok_and(|text| text.contains("Emoji Version 17.0")) + .is_ok_and(|text| text.contains("Version: 17.0")) { let content = ureq::get( "https://www.unicode.org/Public/17.0.0/ucd/emoji/emoji-variation-sequences.txt",