Skip to content

add one missing data resource back to icu63.1-min-static-data-1#673

Merged
kevinkreiser merged 1 commit into
masterfrom
icu_63.1_fix_plurals
Nov 20, 2018
Merged

add one missing data resource back to icu63.1-min-static-data-1#673
kevinkreiser merged 1 commit into
masterfrom
icu_63.1_fix_plurals

Conversation

@kevinkreiser
Copy link
Copy Markdown
Contributor

There was a slight mistake in the last PR for this library. It was missing one key data file that allows the library to properly choose the plural/singlar form for units when doing unit formatting. Other than that this is a copy of the previous package.

# Build ICU common package (libicuuc.a) with data file separate and with support for legacy conversion and break iteration turned off in order to minimize size

MASON_NAME=icu
MASON_VERSION=63.1-min-static-data-1
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

first difference from the 63.1-min-static-data package is the name change here, adding a -1 to the end to denote the change.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

sed -i'' -e '/^#/!s/SOURCE.*=.*txt/SOURCE = da.txt de.txt en.txt eo.txt es.txt fi.txt fr.txt he.txt id.txt it.txt ko.txt my.txt nl.txt pl.txt pt.txt pt_PT.txt ro.txt ru.txt sv.txt tr.txt uk.txt vi.txt zh.txt zh_Hans.txt/g' $l
# if its misc we need a couple of things
elif [ $(echo $l | grep -cF "misc") -eq 1 ]; then
sed -i'' -e '/^#/!s/SOURCE.*=.*txt/SOURCE = plurals.txt numberingSystems.txt icuver.txt icustd.txt pluralRanges.txt/g' $l
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is the only other difference in this package. we've added plurals.txt to the list of data to keep in the library. it turns out this is required to get the library to spit out 1 mile instead of 1 miles. 🤦‍♂️

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wow, nice work figuring this out 🙌

Copy link
Copy Markdown
Contributor

@springmeyer springmeyer 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, please trigger and merge once the trigger is 🍏

# Build ICU common package (libicuuc.a) with data file separate and with support for legacy conversion and break iteration turned off in order to minimize size

MASON_NAME=icu
MASON_VERSION=63.1-min-static-data-1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

sed -i'' -e '/^#/!s/SOURCE.*=.*txt/SOURCE = da.txt de.txt en.txt eo.txt es.txt fi.txt fr.txt he.txt id.txt it.txt ko.txt my.txt nl.txt pl.txt pt.txt pt_PT.txt ro.txt ru.txt sv.txt tr.txt uk.txt vi.txt zh.txt zh_Hans.txt/g' $l
# if its misc we need a couple of things
elif [ $(echo $l | grep -cF "misc") -eq 1 ]; then
sed -i'' -e '/^#/!s/SOURCE.*=.*txt/SOURCE = plurals.txt numberingSystems.txt icuver.txt icustd.txt pluralRanges.txt/g' $l
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

wow, nice work figuring this out 🙌

@kevinkreiser kevinkreiser merged commit 7610b80 into master Nov 20, 2018
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.

2 participants