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

Add Latin Extended-B and Latin Extended Additional to deburr #5491

Conversation

AlexandruMiricioiu
Copy link

This PR adds support for the Latin Extended-B and Latin Extended Additional Unicode blocks. Currently, the deburr function is missing support for a lot of commonly used characters. This means that, for example, in Romanian, the word "cățărat" will be deburred into "cațarat". This behavior is inconsistent and confusing to the user.

This problem is not limited to Romanian — I saw multiple requests 1234 for characters in various blocks, and so I think the community would welcome this addition.

Because not all characters have Latin equivalents, I have attached lists of the characters I did not include, from both the Latin Extended-B 5 and Latin Extended Additional 6 blocks. The characters I selected for deburring either have clear diacritics which can be "removed", or otherwise have a very clear equivalent Latin character.

Please note that I was not able to sign the CLA, as the linked CLA page states "There is no CLA to sign for lodash/lodash", with an error about authorization tokens.

Footnotes

  1. https://github.com/lodash/lodash/issues/5251

  2. https://github.com/lodash/lodash/issues/4530

  3. https://github.com/lodash/lodash/issues/3836

  4. https://github.com/lodash/lodash/issues/5363

  5. https://paste.sr.ht/~alexandru_miricioiu/9c9cb0db922afeeee88a026ff73ea36f324fa068

  6. https://paste.sr.ht/~alexandru_miricioiu/9e3ef083a10ba48fd0e2c402bb96113750891fca

@jdalton jdalton closed this Sep 16, 2023
@jdalton jdalton added the issue bankruptcy Closing the issue/PR to start fresh label Sep 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue bankruptcy Closing the issue/PR to start fresh
Development

Successfully merging this pull request may close these issues.

None yet

2 participants