Availability of icons

Discussions about the wiki documentation of FreeCAD and its translation.
chrisb
Posts: 1869
Joined: Tue Mar 17, 2015 9:14 am

Availability of icons

Postby chrisb » Sat Mar 11, 2017 10:07 am

I want to work on the documentation of the Path Workbench and since I am new to this wiki I have some questions concerning the icons. I hope these questions are not too anoying for old wiki lions but I prefer to annoy people temporarily here than durable in the wiki.

The Situation
The current wiki shows Icons with names like "Path_Project.png", "Path_EditToolsTable.png". These are icons from the current stable 0.16.
When I search in the Special Files section the uploaded files for "Path" I find only two of (agryson's) Path icons and 4 more from yorik's book, while there should be many more.

However, I can find the used Icons in the Artworks gallery: https://www.freecadweb.org/wiki/Artwork ... es.5Cicons

So here are my questions:
  • Are all current FreeCAD icons uploaded to the wiki?
  • If yes, how can I find them; if no, should I upload them myself?
  • Is there a naming convention? Currently all Path cons have the prefix "Path" so I expect no clash.
  • What is the preferred file format, png or svg?
  • Can we distuingish between 0.16 icons and 0.17 icons?
Thanks for listening
Chris
Last edited by chrisb on Sun Mar 12, 2017 1:00 am, edited 1 time in total.
User avatar
yorik
Site Admin
Posts: 8672
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: Availability of icons

Postby yorik » Sat Mar 11, 2017 5:41 pm

Hi,

Basically, no. There is still a lot of disparity between the wiki and the freecad interface. agryson uploaded most of his work (i think) as svg to the Artwork page, but there are still several svg rendering problems in the mediawiki software (internally it converts everything to png), so for the time being we still use png versions almost everywhere on the wiki. The command pages (Part_Extrude, etc) will automatically look for a png file with the same name (Part_Extrude.png).

So we need to convert the new svg files to png manually and upload them to the wiki. Since agryson made a very good work as to not modify too much the icons so they are still recognizable, no matter the old one or the new one, I think we can start progressively changing the icons on the wiki, people using 0.16 will see a difference, but they should still understand.
User avatar
bejant
Posts: 4125
Joined: Thu Jul 11, 2013 3:06 pm

Re: Availability of icons

Postby bejant » Sun Mar 12, 2017 12:52 am

chrisb wrote:So here are my questions:

Are all current FreeCAD icons uploaded to the wiki?
If yes, how can I fond them;

You can search here:
https://www.freecadweb.org/wiki/Special:ListFiles

chrisb wrote:Is there a naming convention?

For the icons I've uploaded (quite a while ago), the name of the icon as it appeared in the source code was the name I used when uploading to the wiki...
My Part Design tutorials on YouTube (aimed at beginners).
chrisb
Posts: 1869
Joined: Tue Mar 17, 2015 9:14 am

Re: Availability of icons

Postby chrisb » Sun Mar 12, 2017 1:22 am

bejant wrote:You can search here:
https://www.freecadweb.org/wiki/Special:ListFiles
That is where I have looked and where I can find only two icons from the Path WB. Could you please go to that very ListFiles section and perform a search for "Path"? I hope you will find more, because without searching it is hardly possible to find the icons within acceptable time.
User avatar
bejant
Posts: 4125
Joined: Thu Jul 11, 2013 3:06 pm

Re: Availability of icons

Postby bejant » Sun Mar 12, 2017 4:38 am

Will do but my internet connection is really slow now so I'll try in the morning (maybe 10 hours from now).

I also only see two Path WB icons, so most are not uploaded yet. To check I just uploaded Path-Array.svg
from src>Mod>Path>Gui>Resources>Icons
Image
in the 0.17 source code .zip file downloaded from
https://github.com/FreeCAD/FreeCAD/releases
and there were no duplicates listed.
https://www.freecadweb.org/wiki/File:Path-Array.svg
My Part Design tutorials on YouTube (aimed at beginners).
chrisb
Posts: 1869
Joined: Tue Mar 17, 2015 9:14 am

Re: Availability of icons

Postby chrisb » Sun Mar 12, 2017 7:21 am

bejant wrote: also only see two Path WB icons, so most are not uploaded yet. To check I just uploaded Path-Array.svg
from src>Mod>Path>Gui>Resources>Icons
But where do all the Path icons in the current wiki docs come from: https://www.freecadweb.org/wiki/Path_Workbench. They all start with "Path" :o :?:
User avatar
bejant
Posts: 4125
Joined: Thu Jul 11, 2013 3:06 pm

Re: Availability of icons

Postby bejant » Sun Mar 12, 2017 12:20 pm

Now I see the problem. The icons shown n the Path WB wiki page don't appear in the search results when doing a search for files with the name Path. Maybe there is a wildcard character we need to include in the search box after the word Path, but I don't know what that character might be. I tried using an asterisk (*) with no success.
My Part Design tutorials on YouTube (aimed at beginners).
User avatar
bejant
Posts: 4125
Joined: Thu Jul 11, 2013 3:06 pm

Re: Availability of icons

Postby bejant » Sun Mar 12, 2017 12:24 pm

Doing a search using ath instead has much better results:
https://www.freecadweb.org/wiki/Special ... =ath&user=
My Part Design tutorials on YouTube (aimed at beginners).
chrisb
Posts: 1869
Joined: Tue Mar 17, 2015 9:14 am

Re: Availability of icons

Postby chrisb » Sun Mar 12, 2017 7:50 pm

bejant wrote:Doing a search using ath instead has much better results:
'ery 'trange, 'ut 'hank 'ou 'ery 'uch, 'ejant.
I had searched with both, capital, and lower case P, but not without.
User avatar
kkremitzki
Posts: 360
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Availability of icons

Postby kkremitzki » Sun Mar 12, 2017 8:57 pm

Wow, that is really strange behavior. It looks like it's a bug. https://www.mediawiki.org/wiki/Topic:Pwjch65m0lbr7n8e