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 |
-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 heuristic to determine what is white |
--grey-level |
cut off level between black and white |
Dependencies
svgcheck
depends on the following packages:
Copyright (C) 2017, 2022 IETF Trust All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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
File details
Details for the file svgcheck-0.9.0.tar.gz
.
File metadata
- Download URL: svgcheck-0.9.0.tar.gz
- Upload date:
- Size: 425.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed97bc1fca8d616eef98a38903503a0f810c4efd86dadebddbba6734e27725f4 |
|
MD5 | 7c5dfeb37d865b2a21e43371bcebab23 |
|
BLAKE2b-256 | af3a5fcc3c615787358913534506a9bf5f4dee7166735a4c126294c4bc8ff73e |