inkscape-open-symbols icon indicating copy to clipboard operation
inkscape-open-symbols copied to clipboard

Divide Emoji One (and Two) in eight or four groups

Open PanderMusubi opened this issue 7 years ago • 10 comments
trafficstars

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

  1. Smileys & People
  2. Animals & Nature
  3. Food & Drink
  4. Activity
  5. Travel & Places
  6. Objects
  7. Symbols
  8. Flags

In order to offer the sets in a practical way, please vote for:

  • https://bugs.launchpad.net/inkscape/+bug/1654902
  • https://bugs.launchpad.net/inkscape/+bug/1514481
  • other related bugs found in https://github.com/Xaviju/inkscape-open-symbols/issues/39

PanderMusubi avatar Nov 28 '17 10:11 PanderMusubi

That's a neat idea and not hard to develop! On incoming releases of Inkscape this will be easier but still, it makes sense

Xaviju avatar Nov 28 '17 12:11 Xaviju

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.

PanderMusubi avatar Nov 28 '17 12:11 PanderMusubi

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.

Xaviju avatar Dec 14 '17 16:12 Xaviju

If you assign this to me for that part, I can find that out.

PanderMusubi avatar Dec 14 '17 16:12 PanderMusubi

Thanks @PanderMusubi I've already tried, but failed.

Xaviju avatar Dec 14 '17 16:12 Xaviju

http://4.bp.blogspot.com/-D7x3BlPScYI/UbArRxEO1LI/AAAAAAAAAI8/sHs7GU8QTe4/s1600/tim+allen.png ;-)

PanderMusubi avatar Dec 14 '17 17:12 PanderMusubi

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?

PanderMusubi avatar Dec 15 '17 08:12 PanderMusubi

JSON please :)

Xaviju avatar Dec 15 '17 08:12 Xaviju

#!/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')

PanderMusubi avatar Dec 15 '17 09:12 PanderMusubi

See also https://github.com/Xaviju/inkscape-open-symbols/issues/123

PanderMusubi avatar Jul 14 '20 06:07 PanderMusubi