W3C home > Mailing lists > Public > www-font@w3.org > July to September 2010

WOFF Metadata - why reinvent the wheel?

From: Toby Inkster <tai@g5n.co.uk>
Date: Wed, 11 Aug 2010 00:09:52 +0100
Message-ID: <b41f8268e6f44475ef2590b158e71563.squirrel@goddamn.co.uk>
To: www-font@w3.org
Why does WOFF invent its own metadata format rather than reusing one of
the W3C's existing ones? RDF/XML or RDFa could easily express the kind of
data that WOFF seems to need.

The example in appendix A could be expressed in RDF/XML as:

    <foaf:Organization foaf:name="Font Vendor">
      <foaf:homepage rdf:resource="http://fontvendor.example.com" />
    <foaf:Person foaf:name="Font Designer"
      <foaf:homepage rdf:resource="http://fontdesigner.example.com" />
    <foaf:Person foaf:name="Another Font Designer"
      <foaf:homepage rdf:resource="http://anotherdesigner.example.org" />
    <foaf:Person foaf:name="Yet Another" />
  <description xml:lang="en">A member of the Demo font family.
            This font is a humanist sans serif style designed
            for optimal legibility in low-resolution environments.
            It can be obtained from fontvendor.example.com.
    <rdf:Description rdf:about="http://fontvendor.example.com/license">
      <description xml:lang="en">A license goes here.</description>
      <description xml:lang="fr">Un permis va ici.</description>
  <rights xml:lang="en">Copyright ©2009 Font Vendor</rights>
  <rights xml:lang="ko">&#51200;&#51089;&#44428; ©2009 Font Vendor</rights>
  <woff:trademark xml:lang="en">Demo Font is a trademark of
             Font Vendor
  <woff:trademark xml:lang="fr">Demo Font est une marque
             déposée de Font Vendor
  <woff:trademark xml:lang="de">Demo Font ist ein eingetragenes
             Warenzeichen der Font Vendor
  <woff:trademark xml:lang="ja">Demo Font&#12399;Font
  <woff:licensee foaf:name="Wonderful Websites, Inc." />

I've not included the example extension - RDF is inherently extensible -
indeed, the "woff:" vocab in the above is an off-the-cuff extension to the
well-established Dublin Core vocab.

It seems a mistake to reinvent the wheel when you could leverage a large
body of existing parsers, serialisers and other tools.

Received on Tuesday, 10 August 2010 23:10:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:01:42 UTC