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

Include era symbol information in data #1344

Merged
merged 7 commits into from
Nov 25, 2021

Conversation

Manishearth
Copy link
Member

First step of #1312

This hardcodes an era map; this is basically the only option we have if we're going to use an era code scheme.

@Manishearth
Copy link
Member Author

This does not handle era variants; that's something that can be decided later.

sffc
sffc previously approved these changes Nov 24, 2021
Copy link
Member

@sffc sffc left a comment

Choose a reason for hiding this comment

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

LGTM but please remove the extra file

provider/testdata/data/cldr/out Outdated Show resolved Hide resolved
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • components/calendar/src/gregorian.rs is now changed in the branch

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@Manishearth Manishearth requested a review from sffc November 24, 2021 23:39
Copy link
Member

@nordzilla nordzilla left a comment

Choose a reason for hiding this comment

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

LGTM, just one question.

number: year.0,
related_iso: year.0,
}
} else {
types::Year {
era: types::Era(tinystr8!("bce")),
era: types::Era(tinystr8!("bc")),
Copy link
Member

Choose a reason for hiding this comment

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

question

Why are we not using TinyStr4 for these?

Copy link
Member Author

Choose a reason for hiding this comment

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

Japanese era codes are bigger

@Manishearth Manishearth merged commit c7db080 into unicode-org:main Nov 25, 2021
@Manishearth Manishearth deleted the era-data branch November 25, 2021 16:53
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.

3 participants