PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Indexing SVG files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Indexing SVG files

    Any idea how I can index .SVG files (<text> tags only) ?
    Is there a plugin available?


    Many thanks in advance

    Daniel

  • #2
    I think this is the first request for Scalable Vector Graphics (SVG) file support.

    But I think SVG is basically an XML file. And we support indexing of XML files. So it is entirely possible that a SVG file might be indexable by the current software.

    I created this test SVG file
    Code:
    <?xml version="1.0" standalone="no"?> 
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
    "[URL]http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd[/URL]">
    <text font-size="15" font-family="sans-serif"
        font-weight="bold" fill="#E76F00"
        transform="translate(15,0) scale(2)"
        y="-10 0 10 20 30 30 30 40 50 60
        70 80 90 100 110 100 90 80">
        SVG has fancy text</text>
     
       <text font-size="15" font-family="sans-serif"
        font-weight="bold" fill="#B2BC00" 
        transform="scale(2) rotate(45)" x="75" 
        y="-95">Isn't this cool!</text> 
    </svg>
    I then added, .SVG to the list of file types to be indexed. And indexed this SVG file.

    The following words were extracted.
    SVG
    fancy
    text
    Isn't
    this
    cool

    So by a happy accident it seems we already provide SVG support, without the need for a plug-in, (at least for simple SVG files, as I didn't text anything more complex that the above example).

    Comment

    Working...
    X