rosettatype / hyperglot

Hyperglot: a database and tools for detecting language support in fonts
http://hyperglot.rosettatype.com
GNU General Public License v3.0
162 stars 22 forks source link

Expose what codepoints a font is missing for support of a given language #111

Closed kontur closed 6 months ago

skurzinz commented 7 months ago

That was my initial question after playing around a bit on the new webapp (#142). It would be great to be able to draw a list of missing glyphs/codepoints (e.g. to send to a font designer for commissioning those characters).

kontur commented 7 months ago

@skurzinz Thanks! Would you be interested in using this in the terminal, or if you'd expect this from the webapp, how would you be using this?

Note in the support view you can drop your existing font, then select any possibly unsupported languages on the left, and use the "Copy data" at the top right; would you want to explicitly get a list of missing glyphs based on font + language selection?

skurzinz commented 7 months ago

It's perhaps more of a hypothetical use case.

The codepoints available in an uploaded font on the web app are already there, and also the ones necessary to fully support a language/orthography (div class="char aux not-supported" ).

image

I couldn't get my Firefox to accept a CSS rule along the lines of

li:has(div .char.aux:not(.not-supported)) {
  display: none;
}

for the screenshot frontend mockup, and also did not bother to style a possible place for a "show unsupported chars only" toggle that shows/hides the supported codepoints, but that IMHO would be an acceptable way of providing this info without overloading the web app.

kontur commented 7 months ago

Ah, now I see what you mean, you want to see them filtered.

We could add two options, like with the [ ] Show verified/unverified data where we have a default state checked on both and you could uncheck [+] Show supported font characters and leave [+] Show unsupported font characters checked. And obviously disable those two options when in the Database mode.

@MrBrezina what do you think?

skurzinz commented 7 months ago

Ah, now I see what you mean, you want to see them filtered.

Well that's what I found out playing around and looking for logical places to show this information. I did not check what happens behind the frontend, but afaics the "copy to clipboard" button always reflects the contents of the main portion. So in addition to seeing them filtered an output method would only hold the missing codepoints then? That would be desirable for e.g.

kontur commented 7 months ago

@skurzinz thanks, that does make sense, and both cases are what I imagine to be relevant use cases. we'll keep this one on the backlog as possible addition for a future update, it seems like a small effort to implement 👍

MrBrezina commented 7 months ago

I like it, but would put this in a separate cog-wheel menu for the right panel, though.

kontur commented 6 months ago

@skurzinz We have an option like that available now in the webapp at the top of the right panel — selections there will affect the listed and copied characters. Thanks for the feedback 👍

Screenshot 2023-12-13 at 13 37 47
skurzinz commented 6 months ago

Wow, nice! Thanks for so quickly dealing with this humble feature request!