Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: Update MDI to 3.0.39 #99

Merged
merged 3 commits into from
Oct 23, 2018
Merged

PR: Update MDI to 3.0.39 #99

merged 3 commits into from
Oct 23, 2018

Conversation

doudz
Copy link
Contributor

@doudz doudz commented Oct 23, 2018

No description provided.

script used to create charmap
import re
import json
from collections import OrderedDict

with open('css/materialdesignicons.css', 'r') as fp:
    rawcss = fp.read()

charmap = OrderedDict()
pattern = '^\.mdi-(.+):before {\s*content: "(.+)";\s*}$'
data = re.findall(pattern, rawcss, re.MULTILINE)
for name, key in data:
    key = key.replace('\\F', '0xf').lower()
    key = key.replace('\\', '0x')
    name = name.lower()
    charmap[name] = key

print(len(charmap))

with open('materialdesignicons-webfont-charmap.json', 'w') as fp:
    json.dump(charmap, fp, indent=4)
@ccordoba12 ccordoba12 added this to the v0.5.2 milestone Oct 23, 2018
@ccordoba12 ccordoba12 changed the title Update MDI to 3.0.39 PR: Update MDI to 3.0.39 Oct 23, 2018
@ccordoba12
Copy link
Member

Thanks @doudz!

@ccordoba12 ccordoba12 merged commit 7eb8de0 into spyder-ide:master Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants