Skip to content

Confusable checking for CJK Ideographs #32

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

Open
crlf0710 opened this issue Mar 14, 2025 · 1 comment
Open

Confusable checking for CJK Ideographs #32

crlf0710 opened this issue Mar 14, 2025 · 1 comment

Comments

@crlf0710
Copy link
Collaborator

Currently the confusable data doesn't fully include CJK ideographs related info.
Unihan database provides these:

  • kZVariant which describes logically unifiable ideographs that are separately encoded for other reasons
  • kSpoofingVariant which describes confusable ideograph relationships
  • EquivalentUnifiedIdeograph.txt which describes CJK Radical/Stroke and their corresponding Ideograph.

Procedurally i'd recommend Unicode security standards adopt these as confusables upstream, either by data or by algorithm, and then this crate can support them automatically.

cc @Manishearth

@Manishearth
Copy link
Member

Neat idea!

I don't know what it would take for Unicode to do this, and whether it wants to. I think Han confusables are a bit different in a couple ways (a lot of Han confusables show up in regular text, even side by side!) so that might be why they are separate. We could still parse unihan and support it though, unihan isn't too complicated.

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

No branches or pull requests

2 participants