验证svg文件是否符合rfc标准。
svgcheck的Python项目详细描述
根据RFC模式检查SVG
这个程序接受一个包含svg或rfc文档的xml文件。然后比较 文档中使用RFC 7996 bis定义模式的所有svg元素。 程序可以选择 修改并写出通过定义的模式的输入的版本。
RFC Editor正在更改 Internet-Draft和RFC文档。作为这个过程的一部分, 正在介绍不是ascii文本的艺术品。这是用svg完成的。 然而,SVG的全套并不符合RFC的存档性质,因此 svg规范的一个子集由rfc编辑器定义,它消除了 许多功能,如动画。此外,还要求 这些图像在打印机、单色显示器和 有视觉障碍的人。有关此过程的更多信息,请参见 在RFC Editor站点的rfc编辑器上。
用法
svgcheck接受单个xml文档作为输入,并可选地输出 文件。
基本用法:svgcheck [options] SOURCE
- 选项
以下参数会影响svgcheck的行为,但不需要任何参数。
Short Long Description ^{tt2}$ ^{tt3}$ purge the cache and exit ^{tt4}$ ^{tt5}$ show the help message and exit ^{tt6}$ ^{tt7}$ don’t use the network to resolve references ^{tt8}$ ^{tt9}$ dont print anything ^{tt10}$ ^{tt11}$ repair the SVG so it meets RFC 7966, only emit the new file if repairs are needed ^{tt12}$ ^{tt13}$ repair the SVG file if needed, emit the file even if no repairs are needed ^{tt14}$ ^{tt15}$ print extra information ^{tt16}$ ^{tt17}$ display the version number and exit ^{tt18}$ ^{tt19}$ don’t resolve xi:include elements ^{tt20}$ ^{tt21}$ specify an alternate RNG file ^{tt22}$ ^{tt23}$ specify an output filename, default to stdout ^{tt24}$ ^{tt25}$ use a grey scale hieristic to determine what is white . ^{tt26}$ cut off level between black and white
更改日志
版本0.5.19(8月29日星期四)
- Move sources to an appropirate github location
- Always emit a file when repair is chosen
版本0.5.17(8月16日星期五)
- Remove Python 3.4 from the supported liste
版本0.5.16(7月1日周一)
- Require new version of rfctools for new RNG file