[Clipart] [Bug 15331] New: Title content: check SVGs in online library

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 2 15:00:17 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=15331

           Summary: Title content: check SVGs in online library
           Product: openclipart.org
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: website
        AssignedTo: clipart at lists.freedesktop.org
        ReportedBy: j.chetwynd at btinternet.com
        Depends on: 8627


attached a practical solution**

According to the SVG specification:
        Authors should always provide a 'title' child element to the outermost
'svg' element within a stand-alone SVG document.

according to a recent grep search of over 6000 openclipart images only around 6
had titles.

titles are a critical requirement for accessibility similar to alt in html.
http://iconomy.org for a demonstration of their use.

http://www.w3.org/TR/SVG11/struct.html#DescriptionAndTitleElements

---

**
// remove filetype .svg from filename, replace _ with space and save as title
$intHolder = strlen($ourFileName);
$intHolder = ($intHolder - 4);
$id=substr($ourFileName,0,$intHolder);
$title=preg_replace("/_/"," ",$id); 
$data='<title>'.$title.'</title>'
...

A non-ideal but practical and useful batch method is to use the filename
replace any _ or - etc with a space as in: 
"Struthious_Bandersnatch_Emperor_penguin_chick_(head).svg"

<svg ...>
<title>Struthious Bandersnatch Emperor penguin chick (head)</title>
<metadata id="metadata3248">
...
...


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the clipart mailing list