SirJson / iconmeta2json

Parses Font Awesome style CSS Icon sets and matches them against Font Awesome itself for search terms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iconmeta2json

This script can generate search terms for CSS Icon Frameworks that follow the Font Awesome structure/

The purpose of this script was to generate metadata that can be uses for seraching icons in non Font Awesome Icon Projects like Line Awesome

This script depends on requests to download fresh Font Awesome metadata if none can be found locally.

It also includes the flit branch of tinycss2 from Kozea. I decided to do this because of the better documentation I found there.

Usage

Simply execute this module with your Python 3 interpreter and add all CSS files you want to add to your search term index file:

For example:

python3 -m iconmeta2json ./lineawesome.css ./forkawesome.css

The output will look different from the original Icons.json file because my focus was searching, if you think I missed something important feel free to open an Issue.

Note: This script has only been tested with Line Awesome and Fork Awesome. If you want to use it with a different framework it might need some adjustments (see IDENT_FILTER in __main__.py). Also feel free to share those adjustments so everyone can benefit from serachable non Font Awesome Icons!

About

Parses Font Awesome style CSS Icon sets and matches them against Font Awesome itself for search terms

License:MIT License


Languages

Language:Python 100.0%