Verify that an svg file is compliant with the RFC standards.
Project description
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.
Usage
svgcheck
accepts a single XML document as input and optionally outputs a modified version of the document.
Basic Usage
svgcheck [options] SOURCE
Options
Short | Long | Description |
---|---|---|
-C |
--clear-cache |
purge the cache and exit |
-h |
--help |
show the help message and exit |
-N |
--no-network |
don't use the network to resolve references |
-q |
--quiet |
dont print anything |
-r |
--repair |
repair the SVG so it meets RFC 7966, only emit the new file if repairs are needed |
-a |
--always-emit |
repair the SVG file if needed, emit the file even if no repairs are needed |
-v |
--verbose |
print extra information |
-V |
--version |
display the version number and exit |
-X |
--no-xinclude |
don't resolve xi:include elements |
-d RNG |
--rng=RNG |
specify an alternate RNG file |
-o FILENAME |
--out=FILENAME |
specify an output filename, default to stdout |
-g |
--grey-scale |
use a grey scale hieristic to determine what is white |
--grey-level |
cut off level between black and white |
Dependencies
svgcheck
depends on the following packages:
- lxml (>= 4.1.1)
- requests (>= 2.5.0)
- rfctools_common (>= 0.5.5)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
svgcheck-0.6.2.tar.gz
(18.3 kB
view details)
File details
Details for the file svgcheck-0.6.2.tar.gz
.
File metadata
- Download URL: svgcheck-0.6.2.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c90c11e43d8ecdab57f84330724c33b52672bf27bc660196fa2154b92489318 |
|
MD5 | 79d762beeb175086a005c12d1c2f7ec2 |
|
BLAKE2b-256 | c1dc18964cff5af2ea8380ffced05051495b24ce72fc654d89e53404a96654a2 |