pyinat / pyinaturalist

Python client for iNaturalist
https://pyinaturalist.readthedocs.io
MIT License
130 stars 17 forks source link

Feature request: support for font-awesome icons inplace of emojis for user interface #553

Open LucaCappelletti94 opened 4 months ago

LucaCappelletti94 commented 4 months ago

Feature description

Font awesome is a website providing standardized font-based icons, with several of them being free. I want to add support for font-awesome-based icons as an option other than the existing emojis. I will be working on it this morning and make a pull request.

Use case

In the web portal we are developing we are using font-awesome for standardized icons. We want to use it also to help distinguish the icons associated to open tree of life taxa.

JWCook commented 4 months ago

Thanks for the suggestion! How would you want these to be used within pyinaturalist? Currently, the purpose of the taxon emoji is for showing tables of taxon or observation records in a terminal or Jupyter notebook, using pyinaturalist.pprint(). Example:

image

This library doesn't currently have an HTML output format that could make use of Font Awesome icons, though.

LucaCappelletti94 commented 4 months ago

Hi @JWCook - basically, we are using them in our web platform. Instead of having them in our own source code, since they are aligned we your own emojis and mapping, I have instead made this pull request so that also others may use the mapped font-awesome icons.