xsl-fo - How to correctly tag table border with XSL:FO and Apache FOP
问题描述
I'm creating accessible documents using XSL:FO and Apache FOP. To confirm the accessibility, the PDF Accesibility Checker 3 (PAC3) should be used. Unfortunately the checker complains about every single table cell border, because it is an untagged path object. So show can I correctly add those tags?
解决方案
You can't. You'll have to file a bug report with FOP about it.
The borders should be tagged as 'Artifact', but you don't have a separate FO for them, so the FOP technique of using role="artifact"
(see https://xmlgraphics.apache.org/fop/2.3/accessibility.html#customTags) isn't available to you. It has to be fixed inside FOP.
FWIW, AH Formatter used to have the same problem. Also, PAC3 isn't without bugs of its own, though your problem probably isn't a false negative from PAC3. For example, you will find that it double-counts some errors in its summary, and it perpetually complains about footnotes (but footnote tagging changes in PDF 2.0). It also can't handle the 'Ruby' tag. But I digress.
推荐阅读
- r - 随机数生成功能不起作用
- android - 如何用键和值解析json?
- python - Python Timedelta64 将天数转换为月数
- r - 我如何在 R 中将函数名称与 for 一起使用
- java - 使用 CSVParser 解析多个大型 csv 文件的有效方法
- c# - 在 Xamarin 的计时器中可以使用百分之一分钟。形式
- javascript - 将 Assemblyscript 编译为 Wasm,性能
- android - 使用 RadioButtons 更改“模式”,同时能够使用 TextWatcher
- c - 一次构建后从 Visual Studio 2017 调试/运行非常慢
- c# - 如何从 ViewModel 读取 TextBox 焦点 - MVVM Light