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

ICU-22357 Update gb18030 mappings for the -2022 version #2430

Merged

Conversation

pedberg-icu
Copy link
Contributor

Checklist
  • Required: Issue filed: https://unicode-org.atlassian.net/browse/ICU-22357
  • Required: The PR title must be prefixed with a JIRA Issue number.
  • Required: The PR description must include the link to the Jira Issue, for example by completing the URL in the first checklist item
  • Required: Each commit message must be prefixed with a JIRA Issue number.
  • Issue accepted (done by Technical Committee after discussion)
  • Tests included, if applicable
  • API docs and/or User Guide docs changed or added, if applicable

Update ICU gb18030 converter mappings from gb18030-2005 to gb18030-2022 (36 rearranged mappings). Two sets of updated mappings were near the beginning or end of a range that was algorithmically mapped; in those cases the range was shortened, and the mappings removed from the range (including some that are not being changed) were converted to explicit mappings.

@macchiati
Copy link
Member

macchiati commented Apr 17, 2023 via email

@roubert roubert removed their request for review April 17, 2023 12:40
@pedberg-icu
Copy link
Contributor Author

pedberg-icu commented Apr 17, 2023

Are we skipping the Plane 10 characters?

For this PR, yes. This PR is just about updating from the GB18030-2005 mappings that used PUA, per the first table in the "No PUA Requirement" section of Ken Lunde's document The GB 18030-2022 Standard. I believe that is all that is needed for compliance with GB18030-2022 implementation level 2, which is all that most vendors need to support.

@markusicu
Copy link
Member

I will review this later this week when I have a bit more time.

Out of curiosity: Did you make these changes manually, or did you revive my 2000-era tools?

@pedberg-icu
Copy link
Contributor Author

Out of curiosity: Did you make these changes manually, or did you revive my 2000-era tools?

@markusicu I made them manually (they are pretty small and specific)

icu4c/source/common/ucnvmbcs.cpp Outdated Show resolved Hide resolved
icu4c/source/common/ucnvmbcs.cpp Outdated Show resolved Hide resolved
icu4c/source/data/mappings/gb18030.ucm Outdated Show resolved Hide resolved
icu4c/source/data/mappings/gb18030.ucm Show resolved Hide resolved
icu4c/source/data/mappings/gb18030.ucm Outdated Show resolved Hide resolved
icu4c/source/data/mappings/gb18030.ucm Show resolved Hide resolved
Copy link
Member

Choose a reason for hiding this comment

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

In order to be consistent with other conversion files, we should actually rename this file to gb18030-2022.ucm and set the alias in convrtrs.txt, but we can do that later in a different PR or even ticket.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do in another PR for this ticket

icu4c/source/data/mappings/gb18030.ucm Show resolved Hide resolved
@kenlunde
Copy link
Member

I confirmed that the mappings 100% match those that are recommended in L2/23-003R, which are specified in its data file (PDF attachment).

@pedberg-icu pedberg-icu force-pushed the ICU-22357-update-gb18030-for-2022 branch from f1bc15e to 9af22cc Compare May 11, 2023 00:21
@jira-pull-request-webhook
Copy link

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@pedberg-icu
Copy link
Contributor Author

pedberg-icu commented May 11, 2023

@markusicu @FrankYFTang I think I made all of the requested updates (except renaming the file and updating convrtrs.txt accordingly, which will be in a separate PR). Please take a look, thanks much for the feedback.

@pedberg-icu pedberg-icu force-pushed the ICU-22357-update-gb18030-for-2022 branch from 51a9ef6 to c438261 Compare May 11, 2023 03:50
@jira-pull-request-webhook
Copy link

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@pedberg-icu
Copy link
Contributor Author

@markusicu still waiting on review, thanks (to remove your "changes requested" block)

Copy link
Member

@markusicu markusicu left a comment

Choose a reason for hiding this comment

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

lgtm tnx!

@pedberg-icu pedberg-icu merged commit 7f5d679 into unicode-org:main May 18, 2023
@pedberg-icu pedberg-icu deleted the ICU-22357-update-gb18030-for-2022 branch May 18, 2023 15:51
pedberg-icu added a commit to pedberg-icu/icu that referenced this pull request May 18, 2023
pedberg-icu added a commit to pedberg-icu/icu that referenced this pull request May 19, 2023
pedberg-icu added a commit to pedberg-icu/icu that referenced this pull request May 22, 2023
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.

5 participants