linebender / runebender

A font editor written in Rust.
Apache License 2.0
759 stars 36 forks source link

better sorting of glyphs in list #102

Open cmyr opened 4 years ago

cmyr commented 4 years ago

currently this is alphabetical by name; the ideal solution would probably use something like unicode character database properties to sort by script, or block, and then in some well-defined order within those groups.

An acceptable temporary solution, to me, would be to sort by codepoint.

dberlow commented 4 years ago

Hey Colin,

Even sorting by script has it's limitations when it comes to type design, from menus and glyph selection to proofing.

There are Latin glyph groups and an order here: https://github.com/TypeNetwork/videoproof/blob/master/glyph-groups.yaml

These match the glyph groups and order we have in RobotFont, allowing us compatibility from design tools through testing and specimens.

Let me know if this interests you, as we're expanding to Greek and Cyrillic.

dberlow

On Thu, Apr 23, 2020 at 9:11 AM Colin Rofls notifications@github.com wrote:

currently this is alphabetical by name; the ideal solution would probably use something like unicode character database properties to sort by script, or block, and then in some well-defined order within those groups.

An acceptable temporary solution, to me, would be to sort by codepoint.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/linebender/runebender/issues/102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAO5VDRTGISDQGZ6WO5QMSDROA47XANCNFSM4MPBXWYA .

cmyr commented 4 years ago

@dberlow thanks for pointing me to this, I'll keep an eye on that repository for updates. I do think some simple way of defining custom groups will go a long way, and this seems like a good mechanism for that.

xorgy commented 3 years ago

There is also a public.glyphOrder key in lib.plist which stores the glyph order in a UFO. Probably Runebender should read that first, then reorder stragglers automatically on load, and then save a new order in public.glyphOrder maybe if one is selected.

I'd like to maybe tackle this as a starter issue, because later I want to put together a text search/filter feature for glyphs (by name and by text, and maybe by group name) and that'll touch similar things.