Re: Including scalable icons to improve size coverage
I forgot to include the modified trim_svg.pl . Charles, could you check why the script failed to restore visibility on one of Echo icon? -- Luya Tshimbalanga http://www.fedoraproject.org/wiki/LuyaTshimbalanga Fedora Art Team Fedora Project contributor trim_svg.pl Description: Perl program ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
Le vendredi 20 avril 2007 à 12:44 +0100, Charlie Brej a écrit : Luya Tshimbalanga wrote: I forgot to include the modified trim_svg.pl . Charles, could you check why the script failed to restore visibility on one of Echo icon? The I have just noticed that some icons refused to show up on my system. I narrowed down the problem to Adobe Illustrator wanting to put svg: in front of most tags (but only in some icons). Inkscape can deal with it but gimp/nautilus/eog can't. There are some 20 effected icons but the new version of the script corrects this. It goes through and removes all the svg: from the front of tags. Means one of the tools is broken. You should never hand-remove namespaces in XML unless you know what you're doing. They're no here for show. Did you validate the result at least ? -- Nicolas Mailhot signature.asc Description: Ceci est une partie de message numériquement signée ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
quick update: I've removed the svgs from echo-icon-theme again for now, until the problems are resolved. I've also changed the default icon theme away from Echo for test4. Matthias ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
Matthias Clasen wrote: quick update: I've removed the svgs from echo-icon-theme again for now, until the problems are resolved. I've also changed the default icon theme away from Echo for test4. What did it change to? Cheers, Steven Garrity ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
On Fri, 2007-04-20 at 14:38 -0300, Steven Garrity wrote: Matthias Clasen wrote: quick update: I've removed the svgs from echo-icon-theme again for now, until the problems are resolved. I've also changed the default icon theme away from Echo for test4. What did it change to? Mist ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
Le samedi 21 avril 2007 à 01:00 +0200, Nicolas Mailhot a écrit : Le vendredi 20 avril 2007 à 23:18 +0200, Martin Sourada a écrit : I noticed that in inkscape you have two choices how to save an image to svg: Inkscape SVG and Plain SVG. Inkscape SVG is default option whereas Plain SVG seems to be better option for previews in nautilus. So I save all my icons in Plain SVG format. Dunno however where's the difference. It will probably strip all non-standard elements like the attached scriptable filter (that won't remove the svg qualifiers or recent adobe files because as far as I can tell it's legit and tools should not choke on it) And this one will make the svg namespace implicit when possible, making nautilus happy (nautilus is still broken though). It may complain a bit on the many interesting echo xml files but will output a sane result. -- Nicolas Mailhot svg-cleanup.xsl Description: application/xml signature.asc Description: Ceci est une partie de message numériquement signée ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
On Thu, 2007-04-19 at 15:12 -0400, Máirín Duffy wrote: Matthias Clasen wrote: On Thu, 2007-04-19 at 15:00 -0400, Máirín Duffy wrote: I wonder why Tango is not an option? Or is that upstream, choice c? I didn't exclude anything, just point out the opinions that I have heard so far. Fair enough. I'm not actually sure if Tango is the default in upstream GNOME now so I wasn't sure. The upstream default is the gnome icon theme. ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
Matthias Clasen wrote: On Thu, 2007-04-19 at 15:00 -0400, Máirín Duffy wrote: I wonder why Tango is not an option? Or is that upstream, choice c? I didn't exclude anything, just point out the opinions that I have heard so far. I'll also point out that gnome, Mist and Tango all have the problem that we need to do extra surgery to get the fedora logo in the panel, which is already solved for Echo and Bluecurve. Hi Matthias! start-here in the naming-spec [1] is intended for distro-logos, although I'm not 100% sure if the panel currently use that or not. You should be able to just patch gnome-icon-theme or Mist and put the fedora logo instead of the gnome-foot in there instead, or create a icon-theme with just the start-here icon and have that inherent, say Mist. Here is a fedora-logo that Stephen Brandt did [2,3,4,5] that goes well together with g-i-t/Mist (and tango-icon-theme). 1. http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html 2. http://www.stephenbrandt.com/tango-icons/fedora/fedora16.png 3. http://www.stephenbrandt.com/tango-icons/fedora/fedora22.png 4. http://www.stephenbrandt.com/tango-icons/fedora/fedora32.png 5. http://www.stephenbrandt.com/tango-icons/fedora/fedora.svg - Andreas ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
On Thu, 2007-04-19 at 23:53 +0200, Andreas Nilsson wrote: Matthias Clasen wrote: On Thu, 2007-04-19 at 15:00 -0400, Máirín Duffy wrote: I wonder why Tango is not an option? Or is that upstream, choice c? I didn't exclude anything, just point out the opinions that I have heard so far. I'll also point out that gnome, Mist and Tango all have the problem that we need to do extra surgery to get the fedora logo in the panel, which is already solved for Echo and Bluecurve. Hi Matthias! start-here in the naming-spec [1] is intended for distro-logos, although I'm not 100% sure if the panel currently use that or not. You should be able to just patch gnome-icon-theme or Mist and put the fedora logo instead of the gnome-foot in there instead, or create a icon-theme with just the start-here icon and have that inherent, say Mist. Here is a fedora-logo that Stephen Brandt did [2,3,4,5] that goes well together with g-i-t/Mist (and tango-icon-theme). Sure, I know how to do it, just pointing out the need to do it. ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
Luya Tshimbalanga wrote: Matthias Clasen wrote: I've used Charlies script and included svgs in yesterdays echo snapshot. Please give it a try. ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list It work well. I wish the script allows the ability to directly save the modification instead of the copy and paste. Idon't know much about perl though. I've included the updated version that does this. I generally use pipes and a bash line script which makes copies (because there are often accidents overwriting originals). You could do something like this: mkdir done; for SVG in *.svg; do cat $SVG | trim_svg.pl done/$SVG ; done; But the new version will accept command line filename arguments which will be overwritten. e.g. trim_svg.pl *.svg #!/usr/bin/perl use XML::Twig; if ([EMAIL PROTECTED]) { @ARGV = -; } foreach (@ARGV) { my $twig=XML::Twig-new(twig_handlers = { 'i:pgf' = sub { if ($_-{'att'}-{'id'} eq 'adobe_illustrator_pgf'){ $_-delete; } }, 'i:pgfRef' = sub { $_-delete; }, 'x:xmpmeta' = sub { $_-delete; }, } );# create the twig $twig-parsefile($_);# build it open OUTFILE, $_ or die Can't open $_ : $!; $twig-flush (\*OUTFILE); # output the twig close OUTFILE; } ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
Martin Sourada wrote: Well, and that's not the only problems. Some of the svg icons aren't displayed at all (e.g. folder-remote) and some are displayed wrongly - see the attached selections from screen-shot. There is far more problems than that - these are just a quick random selection. The problem is from svg created with Adobe Illustrator. ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
Quoting Charlie Brej [EMAIL PROTECTED]: Matthias Clasen wrote: It would be very valuable if someone could work on a little script to get rid of the thumbnails and the illustrator-specific stuff. That should allow us to shrink the svgs _a lot_ and make it possible to include them in the package, which is not possible as things stand right now. I wrote the script you asked for. It removes the following elements: i:pgf (where the ID is adobe_illustrator_pgf), i:pgfRef and x:xmpmeta. Attached is a trimmed version of one of the icons (416k to 18k) . People should check it works on their svg tool before you start compressing icons. Thank you. I will try it later. -- Luya Tshimbalanga Fedora Project contributor http://www.fedoraproject.org/wiki/LuyaTshimbalanga ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
On Tue, 2007-04-17 at 02:07 -0400, Luya Tshimbalanga wrote: Quoting Charlie Brej [EMAIL PROTECTED]: Matthias Clasen wrote: It would be very valuable if someone could work on a little script to get rid of the thumbnails and the illustrator-specific stuff. That should allow us to shrink the svgs _a lot_ and make it possible to include them in the package, which is not possible as things stand right now. I wrote the script you asked for. It removes the following elements: i:pgf (where the ID is adobe_illustrator_pgf), i:pgfRef and x:xmpmeta. Attached is a trimmed version of one of the icons (416k to 18k) . People should check it works on their svg tool before you start compressing icons. Thank you. I will try it later. I've used Charlies script and included svgs in yesterdays echo snapshot. Please give it a try. ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Including scalable icons to improve size coverage
Today I looked at shipping svgs with echo-icon-theme to improve the coverage and avoid size gaps where we don't have hand-tuned small sizes yet. Unfortunately, doing this blows up the size of the tarball to 70M (after bzipping !). Looking at some of the large (500k) icons, I notice a couple of things: a) they seem to mostly be created with Illustrator b) they include a jpeg thumbnail c) they include a huge binary chunk called i:pgf id=adobe_illustrator_pgf It would be very valuable if someone could work on a little script to get rid of the thumbnails and the illustrator-specific stuff. That should allow us to shrink the svgs _a lot_ and make it possible to include them in the package, which is not possible as things stand right now. Matthias ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list
Re: Including scalable icons to improve size coverage
Matthias Clasen wrote: It would be very valuable if someone could work on a little script to get rid of the thumbnails and the illustrator-specific stuff. That should allow us to shrink the svgs _a lot_ and make it possible to include them in the package, which is not possible as things stand right now. I wrote the script you asked for. It removes the following elements: i:pgf (where the ID is adobe_illustrator_pgf), i:pgfRef and x:xmpmeta. Attached is a trimmed version of one of the icons (416k to 18k) . People should check it works on their svg tool before you start compressing icons. #!/usr/bin/perl use XML::Twig; my $twig=XML::Twig-new(twig_handlers = { 'i:pgf' = sub { if ($_-{'att'}-{'id'} eq 'adobe_illustrator_pgf'){ $_-delete; } }, 'i:pgfRef' = sub { $_-delete; }, 'x:xmpmeta' = sub { $_-delete; }, } );# create the twig $twig-parsefile('-');# build it $twig-print; # output the twig ___ Fedora-art-list mailing list Fedora-art-list@redhat.com http://www.redhat.com/mailman/listinfo/fedora-art-list