aman400 / Fontastic-Parser

Parser used for parsing Font icons file generated by http://fontastic.me/ website into android strings.xml file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fontastic Parser

Python script for generating strings.xml file from font icons file generated by Fontastic.me.

it will map all the alphabets with the icon names replacing "-" with "_".

Installing requirements:

Ignore if already installed.
    Install pip from https://pip.pypa.io/en/stable/installing/. 
        Or
    Install pip using easy_install:
        sudo easy_install pip

And the install requirements using:
    pip install -U -r requirements.txt

Running python script:

python parser.py {source_file}.html {destination_file}.xml prefix

Example:

After running following command in terminal:

    python parser.py example/icons-reference.html example/strings.xml ""
    
will gerenrate a example/string.xml file.

About

Parser used for parsing Font icons file generated by http://fontastic.me/ website into android strings.xml file

License:Apache License 2.0


Languages

Language:HTML 64.0%Language:Python 20.2%Language:CSS 15.8%