验证svg文件是否符合rfc标准。

svgcheck的Python项目详细描述


根据RFC模式检查SVG

这个程序接受一个包含svg或rfc文档的xml文件。然后比较 文档中使用RFC 7996 bis定义模式的所有svg元素。 程序可以选择 修改并写出通过定义的模式的输入的版本。

RFC Editor正在更改 Internet-DraftRFC文档。作为这个过程的一部分, 正在介绍不是ascii文本的艺术品。这是用svg完成的。 然而,SVG的全套并不符合RFC的存档性质,因此 svg规范的一个子集由rfc编辑器定义,它消除了 许多功能,如动画。此外,还要求 这些图像在打印机、单色显示器和 有视觉障碍的人。有关此过程的更多信息,请参见 在RFC Editor站点的rfc编辑器上。

用法

svgcheck接受单个xml文档作为输入,并可选地输出 文件。

基本用法svgcheck [options] SOURCE

选项

以下参数会影响svgcheck的行为,但不需要任何参数。

ShortLongDescription
^{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

依赖关系

SVGCheck取决于以下软件包:

更改日志

版本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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java 安卓 XMLPullParser错误   Java响应网格布局   Java中使用递归的不同方法   java变量可能尚未初始化(边加权图)   java如何将这样的文件插入MySQL数据库   java云端点:不允许实体类型的数组或集合   java(编译器或jvm)是否以不同方式处理类的静态最终成员?如果是,怎么做   java如何从lambda表达式返回新的非抽象映射?   java JDK 7支持的最大Spring版本是什么   我们如何从java类生成DTD   java在我的例子中BindingResult、FieldErrors或GlobalErrors是否可以为null?   java[LibGDX][GWT]读取文件外观时出错。HTML格式的json[序列化异常]   字典Java不可修改密钥集映射   java Admob在firebase sdk之后显示测试广告,但不显示真实广告