fontbuilder icon indicating copy to clipboard operation
fontbuilder copied to clipboard

Add support for non-standard character ordering

Open david-drinn opened this issue 3 years ago • 1 comments

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.

david-drinn avatar Apr 21 '22 23:04 david-drinn

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?

doug65536 avatar May 09 '22 18:05 doug65536