Le 2013-04-03 17:37, Gonéri Le Bouder a écrit :
On Wed, Apr 03, 2013 at 05:13:57PM +0200, Guillaume Rousse wrote:
Le 03/04/2013 16:37, Gonéri Le Bouder a écrit :
>That's not the point.
> - findFile aims to be generic exactily to avoid situation like this one
>    where everyone start a new module as soon as a new need arise
From what I read here, findFile just allows to identify file presence, whereas David seems more interested in content-specific metadata here.
Yes, we will have the same problem for different type of file. E.g:
I want to identify .dll where publisher is “Oracle Corp.” or PDF with a
specific meta information. We can imagine a filter mechanism here.


The best solution indpendant of operating system is to use perl module Font::TTF and so it works very nice ;)

Example :

    <FONTS>
      <MANUFACTURER>Apple Computer, Inc.</MANUFACTURER>
      <NAME>LastResort</NAME>
      <VERSION>6.1d6e2 (Unicode version 5.1.0)</VERSION>
    </FONTS>
    <FONTS>
      <MANUFACTURER>Ray Larabie</MANUFACTURER>
      <NAME>Hackensack Regular</NAME>
      <VERSION>4.1d1e2</VERSION>
    </FONTS>

works on MacOSX 10.5, 10.6, 10.7 and 10.8 (versions I have tested today) and Windows 7, XP and FreeBSD ^^

_______________________________________________
Fusioninventory-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/fusioninventory-devel

Répondre à