[Echo ]Recreating the Status Pages once again

Martin Sourada martin.sourada at seznam.cz
Sat Sep 29 16:08:26 UTC 2007


Hi,

I was going through the Trac help in search of table styling
capabilities of its wiki to improve the Icon Theme Status page [1]. In
the process I came to a conclusion it would be better to include the
tables as raw HTML and that it would be better to split the status page
to more pages. And because the icon naming specifications [2] are
subject to change (in the meaning that new icons can be added) as well
as the icons that are created in addition to the specs and because I am
a little bit lazy, I decided to create a c app that reads list of icons
(provided in a file) and outputs a nicely formatted table in HTML code
to standard output. My C skills are nothing fancy and I didn't take much
thoughts to the algorithm so it is rather just-works type of code...

I put together an example page including the table generated by the code
[3].

The advantages of the new page are better styling capabilities, easier
adding/removing of new icons (in the original, addition of new icon into
the middle of the table would be a lot of work) and automatic picking of
icons from git (if icon is not present, '-' is displayed). It also
displays 16x16, 22x22, 32x32 and 48x48 icons. One disadvantage is that
it contains broken links to SVGs that are not in git yet...

And I attach the c code (in case someone would like to improve it). It
uses nothing outside the standard libraries, so that you can build it
just with gcc generate-status-table.c

Any thoughts, comments, etc.? I can push the source to git if there is a
want (might be good to push icon lists to it as well) for it and create
the rest of the pages.

Thanks,
Martin

References:
[1]
https://hosted.fedoraproject.org/projects/echo-icon-theme/wiki/IconThemeStatus
[2]
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
[3]
https://hosted.fedoraproject.org/projects/echo-icon-theme/wiki/IconThemeStatus/Actions

-------------- next part --------------
A non-text attachment was scrubbed...
Name: generate-status-table.c
Type: text/x-csrc
Size: 3698 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-art-list/attachments/20070929/59ef0e8c/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-art-list/attachments/20070929/59ef0e8c/attachment.sig>


More information about the Fedora-art-list mailing list