pdfae / PDFAInspector

PDF Accessibility Inspector
8 stars 3 forks source link

Implementation of RoleMaps #16

Closed schiele1 closed 12 years ago

schiele1 commented 12 years ago

I've discovered the RoleMap (the dictionary in the PDF that converts the user-defined tagnames to Adobe Standard tagnames), but I'm not sure how we should go about implementing it. Should we alter the JSON file itself to use the Adobe names, should we leave the user-defined names but include the RoleMap in the file for rule-time conversion, should we have two separate files (one RoleMap-converted and one not), or should we implement it some other way?

klange commented 12 years ago

I think the structure we provide to the user should be reflective of the document they provided; we can use rolemaps to agument our own tables of know tag types when running rules.

schiele1 commented 12 years ago

So you think we should store the RoleMap and convert at rule-evaluation time? How should we pass it to the rules engine?