[haiku-bugs] Re: [Haiku] #8653: SVG files mistakenly marked as html file or text file

  • From: "phoudoin" <trac@xxxxxxxxxxxx>
  • Date: Thu, 19 Jul 2012 15:09:44 -0000

#8653: SVG files mistakenly marked as html file or text file
-------------------------+-------------------------------------------------
   Reporter:  Giova84    |      Owner:  axeld
       Type:  bug        |     Status:  new
   Priority:  normal     |  Milestone:  R1
  Component:             |    Version:  R1/Development
  Preferences/FileTypes  |   Keywords:  svg file marked as html and text
 Resolution:             |  file
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  x86
-------------------------+-------------------------------------------------

Comment (by phoudoin):

 My bad, should be:

 {{{
 0.60 [0:511] ( -i "<SVG" | "<!DOCTYPE SVG" )
 }}}

 And considering that we don't currently SVN image translator, maybe it's
 better too to
 set Web+ as preferred application for SVG image:

 {{{
 + resource(4, "META:SNIFF_RULE") #'CSTR' array {
 +       "0.60 [0:511] ( -i \"<SVG\" | \"<!DOCTYPE SVG\" )"
 + };
 +
 +resource(5, "META:PREF_APP") #'MSIG' "application/x-vnd.Haiku-
 WebPositive";
 }}}

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8653#comment:6>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: