Do you know of any CLI tools that'll list all the unicode ranges in a font file?
Have looked at fonttools but didn't see an option
Want to split a font into multiple subsets but need to make sure I cover all the existing chars / glyphs
@andydavies I know you asked for CLI tools but I typically use https://wakamaifondue.com/ for this. Or https://www.zachleat.com/web/unicode-range-interchange/ (which uses https://www.npmjs.com/package/characterset for unicode range math).
For CLI, I don’t think https://github.com/zachleat/glyphhanger can point directly at a font file but it does work against an HTML file which can get you mostly there (Edit: I’m now realizing this is the inverse of what you asked)
But I think the method @sil posted is probably ideal! https://mastodon.social/@sil/112004242274830271
@zachleat @sil Yeh, I just independently found https://www.zachleat.com/unicode-range-interchange/
And it does exactly what I need for now
Thanks for making it
@zachleat Spoke too soon… Is the code on GH as this doesn't look right to me
Am I correct in thinking the left and right combined should be the same as what's in the middle?
@andydavies I would need to know the intersection (and the union couldn’t hurt too) to know if the difference was correct!
@zachleat Found out my issue… The order matters and if I swap the ranges around I get the result I was expecting
I was thinking difference in set theory terms (where order shouldn't matter) vs maths terms where order does matter
@andydavies Order matters for difference in set theory as well
https://en.wikipedia.org/wiki/Complement_(set_theory)#Relative_complement
@anthony @andydavies just for difference, yeah. For union and intersection it doesn’t!
@zachleat Maybe @andydavies was thinking of Symmetric difference: https://en.wikipedia.org/wiki/Symmetric_difference
@anthony @andydavies oh, I didn’t know about this one!