Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions provider/data/normalizer/fingerprints.csv
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

observation: 23% and 18% size increase

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
normalizer/nfc/v1, <singleton>, 5332B, 5310B, dd048e68b718a993
normalizer/nfd/data/v1, <singleton>, 28208B, 28144B, a37d3c274c030323
normalizer/nfd/data/v1, <singleton>, 34912B, 34848B, 933447e5c056e49c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised that the toml files didn't change but the generated data did.

normalizer/nfd/supplement/v1, <singleton>, 4486B, 4403B, a587960aa6faa95c
normalizer/nfd/tables/v1, <singleton>, 2177B, 2133B, 8818c6d23b22796a
normalizer/nfkd/data/v1, <singleton>, 43400B, 43336B, 855553ea574c0178
normalizer/nfkd/data/v1, <singleton>, 51488B, 51424B, a5a4848d32dd13f8
normalizer/nfkd/tables/v1, <singleton>, 5865B, 5821B, 7f50ce23df00365d
normalizer/uts46/data/v1, <singleton>, 56552B, 56493B, 2f3422c2c9cc708b

Large diffs are not rendered by default.

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion provider/source/src/normalizer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//! exported from ICU.

use crate::SourceDataProvider;
use crate::TrieType;
use icu::collections::char16trie::Char16Trie;
use icu::collections::codepointtrie::CodePointTrie;
use icu::normalizer::provider::*;
Expand All @@ -26,7 +27,11 @@ macro_rules! normalization_provider {
let $toml_data: &normalizer_serde::$serde_struct =
self.icuexport()?.read_and_parse_toml(&format!(
"norm/{}/{}.toml",
self.trie_type(),
if $file_name == "nfd" || $file_name == "nfkd" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: link to issue or otherwise document why

TrieType::Fast
} else {
self.trie_type()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

},
$file_name
))?;

Expand Down
4 changes: 2 additions & 2 deletions provider/source/src/tests/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,9 +574,9 @@ impl SourceDataProvider {
("collation/implicithan/zh_zhuyin_data.toml", include_bytes!("../../tests/data/icuexport/collation/implicithan/zh_zhuyin_data.toml").as_slice()),
("norm/small/compositions.toml", include_bytes!("../../tests/data/icuexport/norm/small/compositions.toml").as_slice()),
("norm/small/decompositionex.toml", include_bytes!("../../tests/data/icuexport/norm/small/decompositionex.toml").as_slice()),
("norm/small/nfd.toml", include_bytes!("../../tests/data/icuexport/norm/small/nfd.toml").as_slice()),
("norm/fast/nfd.toml", include_bytes!("../../tests/data/icuexport/norm/fast/nfd.toml").as_slice()),
("norm/small/nfdex.toml", include_bytes!("../../tests/data/icuexport/norm/small/nfdex.toml").as_slice()),
("norm/small/nfkd.toml", include_bytes!("../../tests/data/icuexport/norm/small/nfkd.toml").as_slice()),
("norm/fast/nfkd.toml", include_bytes!("../../tests/data/icuexport/norm/fast/nfkd.toml").as_slice()),
("norm/small/nfkdex.toml", include_bytes!("../../tests/data/icuexport/norm/small/nfkdex.toml").as_slice()),
("norm/small/uts46d.toml", include_bytes!("../../tests/data/icuexport/norm/small/uts46d.toml").as_slice()),
("segmenter/dictionary/burmesedict.toml", include_bytes!("../../tests/data/icuexport/segmenter/dictionary/burmesedict.toml").as_slice()),
Expand Down
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is there no change here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps icuexportdata has a bug?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah CI is failing, these files are wrong

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, well.

I bet the new data is generated off of the real files, it's just the test data that didn't get updated correctly.

File renamed without changes.
4 changes: 2 additions & 2 deletions tools/make/download-repo-sources/globs.rs.data
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ const ICUEXPORTDATA_GLOB: &[&str] = &[
"collation/implicithan/zh_zhuyin_data.toml",
"norm/small/compositions.toml",
"norm/small/decompositionex.toml",
"norm/small/nfd.toml",
"norm/fast/nfd.toml",
"norm/small/nfdex.toml",
"norm/small/nfkd.toml",
"norm/fast/nfkd.toml",
"norm/small/nfkdex.toml",
"norm/small/uts46d.toml",
"segmenter/dictionary/burmesedict.toml",
Expand Down
Loading