Open PanderMusubi opened 6 years ago
That's a neat idea and not hard to develop! On incoming releases of Inkscape this will be easier but still, it makes sense
Initially I thought Inkscape was hanging or had a major error. So if you please can, try to get it in before the next release.
I can't find a source of the icons or SVG sprites from EmojiOne that displays to which category each icon belongs in the current inkscape symbol set. Doing it manually could be a really long job. I need a reference or an SVG sprite already assembled (even if it does not work in Inkscape) to divide it in categories.
If you assign this to me for that part, I can find that out.
Thanks @PanderMusubi I've already tried, but failed.
I have found the data. How would you like to receive it? JSON, XML, TSV or CSV? Lookup table from Unicode code point to category?
JSON please :)
#!/usr/bin/env python3
# Run in top-level directory of https://github.com/emojione/emojione
import json
data = None
categories = {}
with open('emoji.json') as json_data:
data = json.load(json_data)
json_data.close()
output = open('category-for-emoji.json', 'w')
output.write('{')
first = True
for code, value in sorted(data.items()):
category = value['category']
if first:
first = False
else:
output.write(',')
output.write('\n"{}":"{}"'.format(code, category))
if category not in categories:
categories[category] = []
categories[category].append('"{}"'.format(code))
output.write('\n}\n')
output = open('emoji-for-category.json', 'w')
output.write('{')
first = True
for category, values in sorted(categories.items()):
if first:
first = False
else:
output.write(',')
output.write('\n"{}":[{}]'.format(category, ','.join(values)))
output.write('\n}\n')
In a desktop computer with an i3 processor (that performs good with other applications) it takes about half a minute to load the Emoji One symbol set. Each time you select that symbol set. The complete application goes blank and is not responding in that time. Other symbol sets open very quickly.
This is not nice to work for many users. It also happens the first time you open Inkscape after installing the symbols, even though you don't open Emoji One symbol set.
One solution is to divide these symbol sets into parts, as can be seen by the Material Design symbols. That will speed up the usage greatly. Here are the official categories
In order to offer the sets in a practical way, please vote for: