FontLab Forum
2012-05-16, 12:59:33 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the FontLab forum, read how to use it! Update: Archives from old MSN forums are now available on our forum.
 
   Home   Help Search Calendar Downloads Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]
  Print  
Author Topic: DTD for FV reports?  (Read 1329 times)
ArchivePoster
Guest
« on: 2004-12-02, 21:50:00 »

Posted by: Mikew671
         
Is the DTD for Font Validator XML reports available?  Where?
 
Thanks.
 
Mike Wirth
Palo Alto, CA
 

         
Logged
ArchivePoster
Guest
« Reply #1 on: 2005-01-06, 06:30:00 »

Posted by: Si*
         
To the best of my knowledge there isn't. Any reason why you would need this?

Si

         
Logged
ArchivePoster
Guest
« Reply #2 on: 2005-01-06, 13:50:00 »

Posted by: Paul
         
We did not make a DTD available for these reports. However, if you look at an error report you will be able to easily identify the XML structure we used.
 
Paul

         
Logged
ArchivePoster
Guest
« Reply #3 on: 2005-01-06, 22:03:00 »

Posted by: Adam Twardoch
         

Paul,

while DTD wouldn't make a lot of sense, a XML Schema would. Since you already have experience with building XML schemas (XMLFont), I guess it should be possible to build one for the Validator XML? Actually, a fairly small rewrite of Font Validator would allow it to build a Schema document automatically. The main purpose of such a schema would be to document ALL POSSIBLE variants of errors and warnings that can occur within a Validator XML file. The nice thing is that with a proper XSL stylesheet, the schema would automatically turn into a nicely-formatted documentation for the application.

Therefore, with some XSD-generating code within FV, and with a nice XSL stylesheet, you would get some both human-readable and machine-readable documentation for Validator.

The schema could be used by 3rd-party applications. The applications (e.g. custom scripts for FontLab and TTX/FontTools) could parse the XML output from FV and automatically make fixes to the font, or at least display specific recommendations on how to fix the font.

AFAIR, it is not possible to run FontVal in commandline mode (but may be mistaken). It would be nice if something like this would be possible:

FontVal.exe c:fontsarial.ttf -o d:outarial.xml
or
FontVal.exe e:workarial.fvp -o d:outarial.xml

Alternatively, it would be nice if the XML syntax for the FVP file allowed to optionally specify the file name of the output XML file, plus a switch whether to output the XSL file or not. The FVP file should also contain a switch that tells Font Validator to quit after performing the validation.

In such case, just calling
FontVal.exe e:workarial.fvp
would be enough.

Best,
Adam

         
Logged
ArchivePoster
Guest
« Reply #4 on: 2005-01-06, 22:09:00 »

Posted by: Adam Twardoch
         
The output file could be specified as an additional attribute of the FontFile element in the FVP. The options to quit after validation and to output the XSL style could be an additional attribute of the FontValidatorProject element:






Adam

         
Logged
ArchivePoster
Guest
« Reply #5 on: 2005-01-06, 22:13:00 »

Posted by: Paul
         
Interesting idea. Thanks, Adam.
 
Paul

         
Logged
Tags:
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!