Cleaning svg icons report

2007-04-21 Thread Luya Tshimbalanga
It will be nice to keep track the svg icons each members have modified
so far. Here is mine along with tarball available[1]:

- applications-internetL.svg
applications-office24.svg
drive-harddiskL.svg
edit-pasteL.svg
folderL.svg
folder-remoteL.svg
format-justify-centerL.svg
globeL.svg
go-down24.svg
go-downL.svg
go-downS.svg
go-homeL.svg
go-homeS.svg
go-up24.svg
go-upS.svg
media-opticalL.svg
network-transmitL.svg
network-transmit-receiveL.svg
software-update-available24.svg
software-update-availableL.svg
software-update-download24.svg
software-update-downloadL.svg
software-update-error24.svg
software-update-errorL.svg
software-update-unavailable24.svg
software-update-unavailableL.svg
software-update-urgent24.svg
software-update-urgentL.svg
system-shutdown24.svg
system-shutdownS.svg
system-software-update24.svg
system-software-updateL.png
system-software-updateL.svg
system-software-updateS.svg
system-standby24.svg
system-standbyL.svg
system-standbyS.svg

Can anyone report what svg they fixed?


[1]http://fedoraproject.org/wiki/LuyaTshimbalanga/Sandbox
-- 
Luya Tshimbalanga
http://www.fedoraproject.org/wiki/LuyaTshimbalanga
Fedora Art Team
Fedora Project contributor

___
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

2007-04-21 Thread Charlie Brej

Charlie Brej wrote:

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.


Another problem I found is that gimp also ignores the visibility attrib 
and displays the hidden objects anyway. This can be seen in 
preferences-desktop-accessibilityL.svg where the old wheelchair object 
is still visible over the new icon. You can search for these using:

 > grep -l display=\"none\" *.svg
Usually these are just temporary items left behind while creating the 
image, but better make sure they didnt come to the foreground within the 
frame.



Just realised I forgot to attach the script (doh!).
#!/usr/bin/perl

use XML::Twig;
if ([EMAIL PROTECTED]) {
@ARGV = "-";
}
foreach (@ARGV) {
  my $twig=XML::Twig->new(twig_handlers => {
'_all_' => sub {
if($_->gi =~ "svg:"){
my $gi = $_->gi;
$gi =~ s/^svg://;
$_->set_gi($gi); 
}

},
'i:pgf' => sub {
$_->delete;
},
'i:pgfRef' => sub {
$_->delete;
},
'x:xmpmeta' => sub {
$_->delete;
},
'xpacket' => 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: Cleaning svg icons report

2007-04-21 Thread Nicolas Mailhot
Le samedi 21 avril 2007 à 02:28 -0700, Luya Tshimbalanga a écrit :

Hi luya,

> It will be nice to keep track the svg icons each members have modified
> so far. Here is mine along with tarball available[1]:

Do you intend to scrub the svg files using the filter I posted
yesterday ? Your files are still full of adobe and inkscape-specific
annotations (one pathological file system-software-updateS.svg shrinks
from 476 KiB to 21 KiB when filtered)

-- 
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: Cleaning svg icons report

2007-04-21 Thread Nicolas Mailhot
Le samedi 21 avril 2007 à 11:47 +0200, Nicolas Mailhot a écrit :
> Le samedi 21 avril 2007 à 02:28 -0700, Luya Tshimbalanga a écrit :
> 
> Hi luya,
> 
> > It will be nice to keep track the svg icons each members have modified
> > so far. Here is mine along with tarball available[1]:
> 
> Do you intend to scrub the svg files using the filter I posted
> yesterday ? Your files are still full of adobe and inkscape-specific
> annotations (one pathological file system-software-updateS.svg shrinks
> from 476 KiB to 21 KiB when filtered)

Scripted example:

$ mkdir /tmp/svgtest
$ for svg in $(find /usr/share/icons/Echo/scalable -name "*.svg" -type f) ; do 
xsltproc -o /tmp/svgtest/$svg svg-cleanup.xsl $svg ; done
$ du -hs /usr/share/icons/Echo/scalable/
5,2M/usr/share/icons/Echo/scalable/
$ du -hs /tmp/svgtest/
3,9M/tmp/svgtest/

Loads of cruft in the current echo theme.

Slightly modified filter attached

Regards,

-- 
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: Cleaning svg icons report

2007-04-21 Thread Martin Sourada
Luya Tshimbalanga napsal(a):
> It will be nice to keep track the svg icons each members have modified
> so far. Here is mine along with tarball available[1]:
> 
> - applications-internetL.svg
> applications-office24.svg
> drive-harddiskL.svg
> edit-pasteL.svg
> folderL.svg
> folder-remoteL.svg
> format-justify-centerL.svg
> globeL.svg
> go-down24.svg
> go-downL.svg
> go-downS.svg
> go-homeL.svg
> go-homeS.svg
> go-up24.svg
> go-upS.svg
> media-opticalL.svg
> network-transmitL.svg
> network-transmit-receiveL.svg
> software-update-available24.svg
> software-update-availableL.svg
> software-update-download24.svg
> software-update-downloadL.svg
> software-update-error24.svg
> software-update-errorL.svg
> software-update-unavailable24.svg
> software-update-unavailableL.svg
> software-update-urgent24.svg
> software-update-urgentL.svg
> system-shutdown24.svg
> system-shutdownS.svg
> system-software-update24.svg
> system-software-updateL.png
> system-software-updateL.svg
> system-software-updateS.svg
> system-standby24.svg
> system-standbyL.svg
> system-standbyS.svg
> 
> Can anyone report what svg they fixed?
> 
> 
> [1]http://fedoraproject.org/wiki/LuyaTshimbalanga/Sandbox

Are you cleaning all icons? I mean, the list of icons, does it mean icons you
stripped using the script, or list of icons you resaved in inkscape, or
something else? I noticed there an icon of mine (go-home[L/S].svg) which was
displayed correctly in nautilus even in the version I posted to the wiki (and
displayed correctly in the echo-icon-theme package where stripped svgs were
included). If the list is of the icons you fixed using inkscape, I think, we
should focus, at least at the beginning, primarily at the icons that suffer from
some display problems (where some of the listed does not)...

Thanks,
Martin



signature.asc
Description: OpenPGP digital signature
___
Fedora-art-list mailing list
Fedora-art-list@redhat.com
http://www.redhat.com/mailman/listinfo/fedora-art-list


Re: Cleaning svg icons report

2007-04-21 Thread Luya Tshimbalanga
Quoting Martin Sourada <[EMAIL PROTECTED]>:

> Luya Tshimbalanga napsal(a):
> > It will be nice to keep track the svg icons each members have modified
> > so far. Here is mine along with tarball available[1]:
> >
> > - applications-internetL.svg
> > applications-office24.svg
> > drive-harddiskL.svg
> > edit-pasteL.svg
> > folderL.svg
> > folder-remoteL.svg
> > format-justify-centerL.svg
> > globeL.svg
> > go-down24.svg
> > go-downL.svg
> > go-downS.svg
> > go-up24.svg
> > go-upS.svg
> > media-opticalL.svg
> > network-transmitL.svg
> > network-transmit-receiveL.svg
> > software-update-available24.svg
> > software-update-availableL.svg
> > software-update-download24.svg
> > software-update-downloadL.svg
> > software-update-error24.svg
> > software-update-errorL.svg
> > software-update-unavailable24.svg
> > software-update-unavailableL.svg
> > software-update-urgent24.svg
> > software-update-urgentL.svg
> > system-shutdown24.svg
> > system-shutdownS.svg
> > system-software-update24.svg
> > system-software-updateL.png
> > system-software-updateL.svg
> > system-software-updateS.svg
> > system-standby24.svg
> > system-standbyL.svg
> > system-standbyS.svg
> >
> > Can anyone report what svg they fixed?
> >
> >
> > [1]http://fedoraproject.org/wiki/LuyaTshimbalanga/Sandbox
>
> Are you cleaning all icons? I mean, the list of icons, does it mean icons you
> stripped using the script, or list of icons you resaved in inkscape, or
> something else? I noticed there an icon of mine (go-home[L/S].svg) which was
> displayed correctly in nautilus even in the version I posted to the wiki (and
> displayed correctly in the echo-icon-theme package where stripped svgs were
> included).

Those are icons with display problem. I forgot to remove go-home as I was too
tired at night.

-- 
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: Cleaning svg icons report

2007-04-21 Thread Luya Tshimbalanga
Nicolas Mailhot wrote:
> Do you intend to scrub the svg files using the filter I posted
> yesterday ? Your files are still full of adobe and inkscape-specific
> annotations (one pathological file system-software-updateS.svg shrinks
> from 476 KiB to 21 KiB when filtered)
>
>   
I tested your script in combination of charlies's trim_svg script. The
size of pathological svg files are dramatically shrinked. Using
system-software-updateS.svg as example, the size is now 18 KiB.

Luya Tshimbalanga
http://www.fedoraproject.org/wiki/LuyaTshimbalanga
Fedora Art Team
Fedora Project contributor

___
Fedora-art-list mailing list
Fedora-art-list@redhat.com
http://www.redhat.com/mailman/listinfo/fedora-art-list


Re: Cleaning svg icons report

2007-04-21 Thread Luya Tshimbalanga
Martin Sourada wrote:
> Luya Tshimbalanga napsal(a):
>   
>> It will be nice to keep track the svg icons each members have modified
>> so far. Here is mine along with tarball available[1]:
>>
>> - applications-internetL.svg
>> applications-office24.svg
>> drive-harddiskL.svg
>> edit-pasteL.svg
>> folderL.svg
>> folder-remoteL.svg
>> format-justify-centerL.svg
>> globeL.svg
>> go-down24.svg
>> go-downL.svg
>> go-downS.svg
>> go-homeL.svg
>> go-homeS.svg
>> go-up24.svg
>> go-upS.svg
>> media-opticalL.svg
>> network-transmitL.svg
>> network-transmit-receiveL.svg
>> software-update-available24.svg
>> software-update-availableL.svg
>> software-update-download24.svg
>> software-update-downloadL.svg
>> software-update-error24.svg
>> software-update-errorL.svg
>> software-update-unavailable24.svg
>> software-update-unavailableL.svg
>> software-update-urgent24.svg
>> software-update-urgentL.svg
>> system-shutdown24.svg
>> system-shutdownS.svg
>> system-software-update24.svg
>> system-software-updateL.png
>> system-software-updateL.svg
>> system-software-updateS.svg
>> system-standby24.svg
>> system-standbyL.svg
>> system-standbyS.svg
>>
>> Can anyone report what svg they fixed?
>>
>>
>> [1]http://fedoraproject.org/wiki/LuyaTshimbalanga/Sandbox
>> 
>
> Are you cleaning all icons? I mean, the list of icons, does it mean icons you
> stripped using the script, or list of icons you resaved in inkscape, or
> something else? I noticed there an icon of mine (go-home[L/S].svg) which was
> displayed correctly in nautilus even in the version I posted to the wiki (and
> displayed correctly in the echo-icon-theme package where stripped svgs were
> included). If the list is of the icons you fixed using inkscape, I think, we
> should focus, at least at the beginning, primarily at the icons that suffer 
> from
> some display problems (where some of the listed does not)...
>
>   
Another note is to take opportunity to put all svg icons higher than 100
Kib on diet. I have already overwrite all software-update*.svg those
have now a range of 5 to 40 Kib. Using these methods should also reduce
the load time on EchoDevelopment page.

-- 
Luya Tshimbalanga
http://www.fedoraproject.org/wiki/LuyaTshimbalanga
Fedora Art Team 

___
Fedora-art-list mailing list
Fedora-art-list@redhat.com
http://www.redhat.com/mailman/listinfo/fedora-art-list


Cleanup Echo wiki page

2007-04-21 Thread Luya Tshimbalanga
I have created a wiki page to keep track of change made on faulty Echo
svg icon.
Feel free to add your name and pick the icons you wish to edit and
correct the wiki.



http://fedoraproject.org/wiki/Artwork/EchoIconTheme/Cleanup
-- 
Luya Tshimbalanga
http://www.fedoraproject.org/wiki/LuyaTshimbalanga
Fedora Art Team 

___
Fedora-art-list mailing list
Fedora-art-list@redhat.com
http://www.redhat.com/mailman/listinfo/fedora-art-list