| Summary: |
Title content: check SVGs in online library |
| Product: |
openclipart.org
|
Reporter: |
peepo <j.chetwynd> |
| Component: |
website | Assignee: |
default user for a product <clipart> |
| Status: |
RESOLVED
NOTOURBUG
|
QA Contact: |
|
| Severity: |
normal
|
|
|
| Priority: |
medium
|
|
|
| Version: |
unspecified | |
|
| Hardware: |
All | |
|
| OS: |
All | |
|
| Whiteboard: |
|
|
i915 platform:
|
|
i915 features:
|
|
| Bug Depends on: |
8627
|
|
|
| Bug Blocks: |
|
|
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.
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"> ... ...