Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement data transformer for Script_Extensions map data #1353

Merged
merged 58 commits into from
Dec 16, 2021

Conversation

echeran
Copy link
Contributor

@echeran echeran commented Dec 2, 2021

This PR is progress towards #1271

  • data struct for Script_Extensions data
  • data provider for Script_Extensions data for property-value-per-cp + transformer

Copy link
Member

@Manishearth Manishearth left a comment

Choose a reason for hiding this comment

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

looks good so far, with #1357 you won't need the custom ULE type and .get_as_zv() would need to be changed, but also you might just not need it since ZeroVecULE<T> has a lot of useful methods already

utils/codepointtrie/src/codepointtrie.rs Outdated Show resolved Hide resolved
utils/codepointtrie/src/codepointtrie.rs Outdated Show resolved Hide resolved
utils/zerovec/src/map/serde.rs Outdated Show resolved Hide resolved
utils/zerovec/src/yoke_impls.rs Outdated Show resolved Hide resolved
provider/blob/src/static_data_provider.rs Outdated Show resolved Hide resolved
provider/blob/src/export/blob_exporter.rs Outdated Show resolved Hide resolved
provider/blob/src/blob_schema.rs Outdated Show resolved Hide resolved
@echeran echeran marked this pull request as ready for review December 16, 2021 23:10
@@ -321,3 +321,12 @@ impl<T: AsULE> AsRef<ZeroSlice<T>> for Vec<T::ULE> {
ZeroSlice::<T>::from_ule_slice(&**self)
}
}

impl<T> Default for &ZeroSlice<T>
Copy link
Member

Choose a reason for hiding this comment

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

FYI @Manishearth : We are adding a impl Default for &ZeroSlice

@echeran echeran changed the title Implement data pipeline for Script_Extensions data Implement data transformer for Script_Extensions map data Dec 16, 2021
@echeran echeran merged commit 685622e into unicode-org:main Dec 16, 2021
@echeran echeran deleted the script-ext-data branch December 16, 2021 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants