Skip to content

Commit

Permalink
Upgrade to Unicode 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wezm committed Jan 25, 2022
1 parent 3a99c1f commit bf5b2be
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 33 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ unicode-joining-type
<a href="https://crates.io/crates/unicode-joining-type">
<img src="https://img.shields.io/crates/v/unicode-joining-type.svg" alt="Version">
</a>
<img src="https://img.shields.io/badge/unicode-13.0-informational" alt="Unicode Version">
<img src="https://img.shields.io/badge/unicode-14.0-informational" alt="Unicode Version">
<a href="https://github.com/yeslogic/unicode-joining-type/blob/master/LICENSE">
<img src="https://img.shields.io/crates/l/unicode-joining-type.svg" alt="License">
</a>
Expand All @@ -19,7 +19,7 @@ unicode-joining-type
<br>

Fast lookup of the Unicode Joining Type and Joining Group properties for `char`
in Rust using Unicode 13.0 data. This crate is no-std compatible.
in Rust using Unicode 14.0 data. This crate is no-std compatible.

Usage
-----
Expand Down
26 changes: 20 additions & 6 deletions src/joining_group_tables.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY:
//
// yeslogic-ucd-generate joining-group --rust-enum /home/wmoore/Downloads/ucd-13.0
// yeslogic-ucd-generate joining-group --rust-enum /home/wmoore/Downloads/ucd-14.0
//
// Unicode version: 13.0.0.
// Unicode version: 14.0.0.
//
// ucd-generate 0.4.1 is available on crates.io.
// yeslogic-ucd-generate is available on GitHub:
// https://github.com/yeslogic/ucd-generate/tree/3b21e76

#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
pub enum JoiningGroup {
Expand Down Expand Up @@ -102,6 +103,8 @@ pub enum JoiningGroup {
Taw,
TehMarbuta,
Teth,
ThinYeh,
VerticalTail,
Waw,
Yeh,
YehBarree,
Expand Down Expand Up @@ -265,7 +268,17 @@ pub const JOINING_GROUP: &'static [(u32, u32, JoiningGroup)] = &[
(2152, 2152, JoiningGroup::MalayalamLla),
(2153, 2153, JoiningGroup::MalayalamLlla),
(2154, 2154, JoiningGroup::MalayalamSsa),
(2155, 2207, JoiningGroup::NoJoiningGroup),
(2155, 2159, JoiningGroup::NoJoiningGroup),
(2160, 2178, JoiningGroup::Alef),
(2179, 2181, JoiningGroup::NoJoiningGroup),
(2182, 2182, JoiningGroup::ThinYeh),
(2183, 2184, JoiningGroup::NoJoiningGroup),
(2185, 2185, JoiningGroup::Noon),
(2186, 2186, JoiningGroup::Hah),
(2187, 2188, JoiningGroup::Tah),
(2189, 2189, JoiningGroup::Gaf),
(2190, 2190, JoiningGroup::VerticalTail),
(2191, 2207, JoiningGroup::NoJoiningGroup),
(2208, 2209, JoiningGroup::Beh),
(2210, 2210, JoiningGroup::Hah),
(2211, 2211, JoiningGroup::Tah),
Expand All @@ -285,7 +298,7 @@ pub const JOINING_GROUP: &'static [(u32, u32, JoiningGroup)] = &[
(2226, 2226, JoiningGroup::Reh),
(2227, 2227, JoiningGroup::Ain),
(2228, 2228, JoiningGroup::Kaf),
(2229, 2229, JoiningGroup::NoJoiningGroup),
(2229, 2229, JoiningGroup::Qaf),
(2230, 2232, JoiningGroup::Beh),
(2233, 2233, JoiningGroup::Reh),
(2234, 2234, JoiningGroup::Yeh),
Expand All @@ -299,7 +312,8 @@ pub const JOINING_GROUP: &'static [(u32, u32, JoiningGroup)] = &[
(2244, 2244, JoiningGroup::AfricanQaf),
(2245, 2246, JoiningGroup::Hah),
(2247, 2247, JoiningGroup::Lam),
(2248, 68287, JoiningGroup::NoJoiningGroup),
(2248, 2248, JoiningGroup::Gaf),
(2249, 68287, JoiningGroup::NoJoiningGroup),
(68288, 68288, JoiningGroup::ManichaeanAleph),
(68289, 68290, JoiningGroup::ManichaeanBeth),
(68291, 68292, JoiningGroup::ManichaeanGimel),
Expand Down
74 changes: 50 additions & 24 deletions src/joining_type_tables.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
// DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY:
//
// yeslogic-ucd-generate joining-type --rust-enum /home/wmoore/Downloads/ucd-13.0
// yeslogic-ucd-generate joining-type --rust-enum /home/wmoore/Downloads/ucd-14.0
//
// Unicode version: 13.0.0.
// Unicode version: 14.0.0.
//
// ucd-generate 0.4.1 is available on crates.io.
// yeslogic-ucd-generate is available on GitHub:
// https://github.com/yeslogic/ucd-generate/tree/3b21e76

#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
pub enum JoiningType {
Expand Down Expand Up @@ -152,20 +153,26 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(2151, 2151, JoiningType::RightJoining),
(2152, 2152, JoiningType::DualJoining),
(2153, 2154, JoiningType::RightJoining),
(2155, 2207, JoiningType::NonJoining),
(2155, 2159, JoiningType::NonJoining),
(2160, 2178, JoiningType::RightJoining),
(2179, 2181, JoiningType::JoinCausing),
(2182, 2182, JoiningType::DualJoining),
(2183, 2184, JoiningType::NonJoining),
(2185, 2189, JoiningType::DualJoining),
(2190, 2190, JoiningType::RightJoining),
(2191, 2199, JoiningType::NonJoining),
(2200, 2207, JoiningType::Transparent),
(2208, 2217, JoiningType::DualJoining),
(2218, 2220, JoiningType::RightJoining),
(2221, 2221, JoiningType::NonJoining),
(2222, 2222, JoiningType::RightJoining),
(2223, 2224, JoiningType::DualJoining),
(2225, 2226, JoiningType::RightJoining),
(2227, 2228, JoiningType::DualJoining),
(2229, 2229, JoiningType::NonJoining),
(2230, 2232, JoiningType::DualJoining),
(2227, 2232, JoiningType::DualJoining),
(2233, 2233, JoiningType::RightJoining),
(2234, 2247, JoiningType::DualJoining),
(2248, 2258, JoiningType::NonJoining),
(2259, 2273, JoiningType::Transparent),
(2234, 2248, JoiningType::DualJoining),
(2249, 2249, JoiningType::NonJoining),
(2250, 2273, JoiningType::Transparent),
(2274, 2274, JoiningType::NonJoining),
(2275, 2306, JoiningType::Transparent),
(2307, 2361, JoiningType::NonJoining),
Expand Down Expand Up @@ -246,7 +253,9 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(3072, 3072, JoiningType::Transparent),
(3073, 3075, JoiningType::NonJoining),
(3076, 3076, JoiningType::Transparent),
(3077, 3133, JoiningType::NonJoining),
(3077, 3131, JoiningType::NonJoining),
(3132, 3132, JoiningType::Transparent),
(3133, 3133, JoiningType::NonJoining),
(3134, 3136, JoiningType::Transparent),
(3137, 3141, JoiningType::NonJoining),
(3142, 3144, JoiningType::Transparent),
Expand Down Expand Up @@ -345,8 +354,8 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(4960, 5905, JoiningType::NonJoining),
(5906, 5908, JoiningType::Transparent),
(5909, 5937, JoiningType::NonJoining),
(5938, 5940, JoiningType::Transparent),
(5941, 5969, JoiningType::NonJoining),
(5938, 5939, JoiningType::Transparent),
(5940, 5969, JoiningType::NonJoining),
(5970, 5971, JoiningType::Transparent),
(5972, 6001, JoiningType::NonJoining),
(6002, 6003, JoiningType::Transparent),
Expand All @@ -365,7 +374,9 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(6152, 6153, JoiningType::NonJoining),
(6154, 6154, JoiningType::JoinCausing),
(6155, 6157, JoiningType::Transparent),
(6158, 6175, JoiningType::NonJoining),
(6158, 6158, JoiningType::NonJoining),
(6159, 6159, JoiningType::Transparent),
(6160, 6175, JoiningType::NonJoining),
(6176, 6264, JoiningType::DualJoining),
(6265, 6276, JoiningType::NonJoining),
(6277, 6278, JoiningType::Transparent),
Expand Down Expand Up @@ -399,8 +410,8 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(6781, 6782, JoiningType::NonJoining),
(6783, 6783, JoiningType::Transparent),
(6784, 6831, JoiningType::NonJoining),
(6832, 6848, JoiningType::Transparent),
(6849, 6911, JoiningType::NonJoining),
(6832, 6862, JoiningType::Transparent),
(6863, 6911, JoiningType::NonJoining),
(6912, 6915, JoiningType::Transparent),
(6916, 6963, JoiningType::NonJoining),
(6964, 6964, JoiningType::Transparent),
Expand Down Expand Up @@ -445,9 +456,7 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(7413, 7415, JoiningType::NonJoining),
(7416, 7417, JoiningType::Transparent),
(7418, 7615, JoiningType::NonJoining),
(7616, 7673, JoiningType::Transparent),
(7674, 7674, JoiningType::NonJoining),
(7675, 7679, JoiningType::Transparent),
(7616, 7679, JoiningType::Transparent),
(7680, 8202, JoiningType::NonJoining),
(8203, 8203, JoiningType::Transparent),
(8204, 8204, JoiningType::NonJoining),
Expand Down Expand Up @@ -624,7 +633,12 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(69446, 69456, JoiningType::Transparent),
(69457, 69459, JoiningType::DualJoining),
(69460, 69460, JoiningType::RightJoining),
(69461, 69551, JoiningType::NonJoining),
(69461, 69487, JoiningType::NonJoining),
(69488, 69491, JoiningType::DualJoining),
(69492, 69493, JoiningType::RightJoining),
(69494, 69505, JoiningType::DualJoining),
(69506, 69509, JoiningType::Transparent),
(69510, 69551, JoiningType::NonJoining),
(69552, 69552, JoiningType::DualJoining),
(69553, 69553, JoiningType::NonJoining),
(69554, 69555, JoiningType::DualJoining),
Expand All @@ -647,13 +661,19 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(69633, 69633, JoiningType::Transparent),
(69634, 69687, JoiningType::NonJoining),
(69688, 69702, JoiningType::Transparent),
(69703, 69758, JoiningType::NonJoining),
(69703, 69743, JoiningType::NonJoining),
(69744, 69744, JoiningType::Transparent),
(69745, 69746, JoiningType::NonJoining),
(69747, 69748, JoiningType::Transparent),
(69749, 69758, JoiningType::NonJoining),
(69759, 69761, JoiningType::Transparent),
(69762, 69810, JoiningType::NonJoining),
(69811, 69814, JoiningType::Transparent),
(69815, 69816, JoiningType::NonJoining),
(69817, 69818, JoiningType::Transparent),
(69819, 69887, JoiningType::NonJoining),
(69819, 69825, JoiningType::NonJoining),
(69826, 69826, JoiningType::Transparent),
(69827, 69887, JoiningType::NonJoining),
(69888, 69890, JoiningType::Transparent),
(69891, 69926, JoiningType::NonJoining),
(69927, 69931, JoiningType::Transparent),
Expand Down Expand Up @@ -815,7 +835,11 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(113821, 113822, JoiningType::Transparent),
(113823, 113823, JoiningType::NonJoining),
(113824, 113827, JoiningType::Transparent),
(113828, 119142, JoiningType::NonJoining),
(113828, 118527, JoiningType::NonJoining),
(118528, 118573, JoiningType::Transparent),
(118574, 118575, JoiningType::NonJoining),
(118576, 118598, JoiningType::Transparent),
(118599, 119142, JoiningType::NonJoining),
(119143, 119145, JoiningType::Transparent),
(119146, 119154, JoiningType::NonJoining),
(119155, 119170, JoiningType::Transparent),
Expand Down Expand Up @@ -849,7 +873,9 @@ pub const JOINING_TYPE: &'static [(u32, u32, JoiningType)] = &[
(122918, 122922, JoiningType::Transparent),
(122923, 123183, JoiningType::NonJoining),
(123184, 123190, JoiningType::Transparent),
(123191, 123627, JoiningType::NonJoining),
(123191, 123565, JoiningType::NonJoining),
(123566, 123566, JoiningType::Transparent),
(123567, 123627, JoiningType::NonJoining),
(123628, 123631, JoiningType::Transparent),
(123632, 125135, JoiningType::NonJoining),
(125136, 125142, JoiningType::Transparent),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub use joining_group_tables::JoiningGroup;

/// The version of [Unicode](http://www.unicode.org/)
/// that this version of unicode-joining-type was generated from.
pub const UNICODE_VERSION: (u64, u64, u64) = (13, 0, 0);
pub const UNICODE_VERSION: (u64, u64, u64) = (14, 0, 0);

#[cfg(test)]
mod test {
Expand Down

0 comments on commit bf5b2be

Please sign in to comment.