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 diff --git a/build.rs b/build.rs index 87fdfd2..33a094d 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("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 cd401ac..35f9dc4 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)", ) } @@ -270,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())) }), @@ -288,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())) }), 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]: