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 support for non-standard character ordering #38

Open
david-drinn opened this issue Apr 21, 2022 · 1 comment
Open

Add support for non-standard character ordering #38

david-drinn opened this issue Apr 21, 2022 · 1 comment

Comments

@david-drinn
Copy link

This may be out-of-scope, but I would like to be able to export the characters in the order of my choosing, rather than them getting re-ordered automatically in (apparently) ASCII order.

@doug65536
Copy link
Contributor

doug65536 commented May 9, 2022

I think the idea of sorting that way is to enable binary search, which makes the most sense when there are a very wide range of codepoints, and you'd rather not have a 1:1 mapping with over a million (approaching 0x101000) entries. It does make more sense to specify an order when you are ASCII only or something, though.
What did you want to give it? A comma separated list of codepoint ranges, like 65-91 meaning 'A'-'Z', and 97 meaning 'a', 48-57 meaning '0'-'9' and 0x1F0A1 or 127137 for ace of spades, etc? Maybe accept singlequoted argument so '0'-'9' figures out you meant 48-57?
Then you have to decide what to do with unmentioned codepoints. Put them at the end? Drop them? Error out?

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