This program takes an XML file containing an SVG or an RFC document. It then compares all of the SVG elements with the schema defined in the document with RFC 7996 bis. The program has the option of modifying and writing out a version of the input that passes the defined schema.
The RFC Editor is in the process of changing the canonical input format of Internet-Draft and RFC docuemnts. As part of this process, the ability to create artwork which is not ASCII text is being introduced. This is being done with SVG. However, the full set of SVG does not match with the archival nature of RFCs so a subset of the SVG specification is being defined by the RFC Editor that eliminates many capabilities such as animation. Additionally, there is a requirement that the images have the widest possible usage both by printers, monochrome displays and individuals with visual disabilities. Further information on the process can be found on the RFC Editor at the RFC Editor site.
svgcheck accepts a single XML document as input and optionally outputs a modified version of the document.
Basic Usage: svgcheck [options] SOURCE
- Options
The following parameters affect how svgcheck behaves, however none are required.
Short Long Description -C--clear-cachepurge the cache and exit -h--helpshow the help message and exit -N--no-networkdon't use the network to resolve references -q--quietdont print anything -r--repairrepair the SVG so it meets RFC 7966, only emit the new file if repairs are needed -a--always-emitrepair the SVG file if needed, emit the file even if no repairs are needed -v--verboseprint extra information -V--versiondisplay the version number and exit -X--no-xincludedon't resolve xi:include elements -d RNG--rng=RNGspecify an alternate RNG file -o FILENAME--out=FILENAMEspecify an output filename, default to stdout -g--grey-scaleuse a grey scale hieristic to determine what is white . --grey-levelcut off level between black and white
svgcheck depends on the following packages:
- lxml (>= 4.1.1)
- requests (>= 2.5.0)
- rfctools_common (>= 0.5.5)