rosettatype / hyperglot

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

Remove CLI options clutter #181

Closed kontur closed 1 month ago

kontur commented 1 month ago

Over the course of development we've added a bunch of CLI options that need reviewing:

  1. autonyms: To output the CLI result with language names as autonyms
  2. speakers: To output the language speaker count in the CLI result

I think we should drop and add a line to the end of the output:

You can find more information about a language by typing hyperglot-data Languagename

We could include the number of overall covered speakers at the end of each CLI output, sort of like the hyperglot webapp does it at the bottom of the left-hand column.

  1. output: Needs fixing so the python Orthography object is output as dict into the yaml
  2. comparison: This outputs a kind of diff between multiple fonts, which on top can be union'ed or intersect'ed — imo this is beyond the CLI. Users wanting to compare multiple fonts in a analytical way should use the library -> remove option and provide sample code how to do this
  3. languages: Pre hyperglot-data option to output a specific language's data at the end of the CLI output. This just needs to be removed, the hyperglot-data Languagename instruction should be added instead.
  4. strict_iso: "Flag to display names and macrolanguage data strictly abiding to ISO data. Without it apply some gentle transforms to show preferred languages names and macrolanguage structure that deviates from ISO data." — I think this adds noise/complexity to the CLI that regular users will never care about. The strict option can still be used when invoking the library, so I think for users that might do more analytical comparisons they are likely to use the library, not the CLI. I'd move to the remove.
kontur commented 1 month ago

@MrBrezina thoughts?

kontur commented 1 month ago

Will all be updated as proposed above with the next release.