bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file magic for SVG


From: Alan Horkan
Subject: Re: file magic for SVG
Date: Mon, 27 Jun 2005 15:54:32 +0100 (BST)

On Mon, 27 Jun 2005, Stepan Kasal wrote:

> Date: Mon, 27 Jun 2005 16:35:56 +0200
> From: Stepan Kasal <address@hidden>
> To: Alan Horkan <address@hidden>
> Cc: address@hidden, Christos Zoulas <address@hidden>
> Subject: Re: file magic for SVG
>
> Hello,
>
> On Fri, Jun 24, 2005 at 10:24:14PM +0100, Alan Horkan wrote:
> > I'd appreciate help getting this to work properly, not just for my own use
> > but so that I can try and get it included in gnu-utils.
>
> are you sure you are using command `file' from GNU?

I have no reason to believe I wasn't using the
the GNU version file (version 4.12) as the machine was running Debian.

I also tried using another machine with the FreeBSD version which was
definately different.

> I, personally, use the program file maintained by Christos Zoulas.  I
> send a cc of this mail to him.

Thanks.  Ideally I'd like to see all versions of file improved.  I am
doing this largely on behalf of OpenClipart.org because I wasn't satisfied
with the initial assumption that this was too difficult to implement given
the inconsistency of most XML and I had to at least try and make it work
before giving up on the idea.  There are so many of the file formats I
used are XML based it is time for me to something about making file aware
of the more established standards at least (and maybe also work out the
magic needed for two of my favourites Gnumeric and Abiword).

> > # Scalable Vector Graphics (SVG) is an XML based standard for
> > # Vector Graphics from the World Wide Web Consortium
> > # http://www.w3.org/Graphics/SVG/
> > 0       string/cB       \<!DOCTYPE\ svg         SVG image data
> > 0       string/cb       \<svg                   SVG image data
>
> I cannot understand why should the second line contain the flag "b" when
> there is no blank in the string "<svg".

Now that you mention it I suppose I should have escaped a space <svg\ but
then it is possible although rare to see <svg> more often there would be a
space and some other information but I dont understand the magic syntax
very well.  I thought I was doing pretty well to even get this to
correctly identify my slightly contrived SVG but I was a long way from
getting it to identify any of my real life SVG files.

> But it might be a bug in my magic(4) manpage.
>
> Have a nice day,
>       Stepan Kasal

Having a better day already thanks for the help.

Sincerely

Alan Horkan

Inkscape http://inkscape.org
Abiword http://www.abisource.com
Dia http://gnome.org/projects/dia/
Open Clip Art http://OpenClipArt.org






reply via email to

[Prev in Thread] Current Thread [Next in Thread]