PanderMusubi / inkscape-open-symbols

Open source SVG symbol sets that can be used as Inkscape symbols
MIT License
700 stars 95 forks source link

Add SJJB map icons #39

Closed PanderMusubi closed 7 years ago

PanderMusubi commented 7 years ago

Please, add SJJB map icons from http://www.sjjb.co.uk/mapicons/contactsheet Note, these are also used by OpenStreetMap

PanderMusubi commented 7 years ago

PS The project is not dead, only that particular repo is. Please see the issues and forks there.

Xaviju commented 7 years ago

I've been trying to convert this icons, but the SVG code is basically unusable without previous work. It could be used as an Inkscape editable, but not as an SVG icon. It will take ages to convert them to symbols manually. Basically, each icon has multiple stacked paths and shapes. Most of them could be converted to a single path. If someone has the time to convert the symbols, I'll be happy to mentorize or help in the conversion.

Moini commented 7 years ago

@Xaviju:

Xaviju commented 7 years ago

Wow, you have almost created a symbol creation FAQ @Moini

Thanks a lot for your help, I know this is a lot of work. :100:

Moini commented 7 years ago

Thx!

I'm almost done with the easy ones ;-) (i.e. those with just two colors, didn't look at the other ones before I knew what to do with them).

As I'm not too keen on doing the final conversion to symbol set myself .... - what would be the best format to 'transfer' the data to you?

Currently, all images are in separate files. I'd make two for each symbol (with/without square), and would keep the folder structure (separate directory tree for each of the two sets).

Would that be sufficient for you to run the auto-creation script on?

I suspect that, once everything is ungrouped, colors unset or white, shape-forming strokes turned to paths, things unioned, all other strokes set to None, etc., svgo won't cause any errors.

Moini commented 7 years ago

Oh, and this I didn't understand:

"Dark square in background: should be merged in a single path, using the background color as a reference and excluding the icons."

Moini commented 7 years ago

... and one more: the files don't have a viewbox, only width and height. Inkscape adds one if you copy-paste into a new document, but that comes with an additional layer... Do you have a suggestion how this can be done quickly from within Inkscape? (yes, I know I could script it...)

Moini commented 7 years ago

Save as -> Optimized SVG, check 'enable viewboxing'. Okay?

Moini commented 7 years ago

Test set attached. Would this be the right way to go on?

Icons.zip

Just noticed there's a grouping too much. Will be removed.

Xaviju commented 7 years ago

I'll try to look at the code tomorrow morning, but I answer your questions:

Xaviju commented 7 years ago

I've read the icons.zip code, amazing work. :)

I found some small to fix you'll see below. I've created a branch with the icons so you can work on them: https://github.com/Xaviju/inkscape-open-symbols/pull/51/files

Moini commented 7 years ago

There aren't any holes punched into them... I was going to make a third set with those holes instead of white on unset background color, but that would take quite a lot of time. If it's sufficient like this, then I'll defer creation of that set for a bit.

Do you already have some shell script maybe, that does the style cleanup? It must be done manually after working on the files in Inkscape (else I'll write one, probably python, then, though).

Xaviju commented 7 years ago

@Moini I see, no problem, it makes sense as is now without the holes. :+1:

It won't be too difficult to remove the styles with minor changes in the gulpfile https://github.com/Xaviju/inkscape-open-symbols/blob/master/gulpfile.js I can do that.

Moini commented 7 years ago

Thank you, @Xaviju . I'm almost through with the square ones, only two folders missing.

PanderMusubi commented 7 years ago

Very good work. Also let the latest contributers upstream know about this. Perhaps also mention it and this project in the OpenStreetMap wiki where there is an article on map icon sets.

Moini commented 7 years ago

The square svgs are up here: https://github.com/Moini/inkscape-open-symbols/tree/sjjb-icons I'll make a pull request when the others are ready, too.

Moini commented 7 years ago

@PanderMusubi : when the icon sets are done, would you do any contacting / news spreading yourself? It seems you already know exactly who would be interested :)

PanderMusubi commented 7 years ago

Yes, no problem

Moini commented 7 years ago

@PanderMusubi : Thanks!

PanderMusubi commented 7 years ago

See also https://github.com/Xaviju/inkscape-open-symbols/pull/52

PanderMusubi commented 7 years ago

@Moini, I have send an BCC email to those responsible for original SJJB icons and all late forks from where I could find email addresses. Also I have added links on three pages in the OSM wiki on map icons.

Moini commented 7 years ago

Thank you, Pander :)

Xaviju commented 7 years ago

Hey @Moini I've seen that some sprites mixed square and inverted icons in a single sprite. I didn't expected it, but I thinks its not a bad idea. A single file for both square and inverted icons so, in the end, the whole set will consist only of 16 sprites. See how it looks: screenshot from 2017-01-07 22-12-51

Would you expect to have separate files or does it look ok as in the screenshot? It seems better to me.

Moini commented 7 years ago

Should the order be changed? In the other 'sprites' (aka symbol sets) they've made it so the corresponding icons are next to each other.

Not sure what's better, though, from a user point of view. It certainly looks calmer this way, but for the large sets, alphabet ordering is easier to navigate, and icons of the second kind (in the case of the screenshot, the inverted ones) are found more easily. Do you have a preference based on experience rather than my 'guessing'?

I actually hoped that they will to come together into one, so that's great :) (drop-down menus are harder to navigate than the picture scrolling).

Xaviju commented 7 years ago

It makes sense to have corresponding icons together. Since it is a lot of work, first release could display both sets in the same sprite and after that we could reorder it to improve the UX. I'm working on it. Great work btw, it's a pleasure to work on this cleaned set. :)

Moini commented 7 years ago

That sounds fine to me - thank you!

Xaviju commented 7 years ago

@PanderMusubi @Moini new symbol sets are here: https://github.com/Xaviju/inkscape-open-symbols/tree/master/sjjb Could you please test it and ensure it works as expected?

Thanks.

@Moini amazing work. It was really easy to work with the SVGs you created. Very few bugs for so large iconset. Thanks.

PanderMusubi commented 7 years ago

They work for me. One minor change for the entries in the Symbol set pull down selection, rename "SJJB icons [..." to "SJJB Map Icons [..."

The usage of capitals is conform other entries in that list and the addition of Map explains a bit more on the origin of these symbols.

Xaviju commented 7 years ago

Renamed!

Moini commented 7 years ago

@Xaviju : It appears to work very well :) Thank you for helping me with them!

Does anyone happen to understand how the icon sets are sorted in the dropdown? They are in seemingly random order for me.

PanderMusubi commented 7 years ago

the order needs improving indeed. No idea how that is ordered.

Xaviju commented 7 years ago

Thanks both!

Yeah, symbols order does not makes sense to me, and when the set is large enough, it can be frustrating. I was thinking of suggestion on the inkscape blueprints a text filtering of the symbol sets in the top of the box. Something like the datalist tag in HTML. What do you think?

Moini commented 7 years ago

Definitely, filtering symbols, even if just by their name, would be a nice addition to the dialog (even better if it would then allow you to see symbols from different sets with the same meaning).

Moini commented 7 years ago

Bug report for the ordering: https://bugs.launchpad.net/inkscape/+bug/1654902

Filtering seems more involved ;-)

PanderMusubi commented 7 years ago

Voted for it, also my colleagues. Here are some (sort of) related Inkscape bugs to vote for, if you would:

su-v commented 7 years ago

This report requests a list view and filtering of the symbol previews:

PanderMusubi commented 7 years ago

Ah, yeah. And even put a bounty on it.

PanderMusubi commented 7 years ago

To further (ab)use this issue now I have found my audience, also for most of us is to vote for https://bugs.launchpad.net/inkscape/+bug/1512175

Xaviju commented 7 years ago

@PanderMusubi althought this could be interesting for some of us, please try to share only relevant information for the issue, otherways watchers might be receiveng undesired emails. Thanks!

jabiertxof commented 7 years ago

I think symbols need to be ordered on the files instead overload the user computer.

A script can be done to order it. Maybe a inkscape extension and after it export as plain svg to reduce load times.

Anyway I thing we need to pass a svg to all files compressor automaticaly on each release. To this I think we need a SRC folder where uncompresed files go and a automation script to minimize on the root of the repository to execute before a svg chage commited.