Skip to main content

Verify that an svg file is compliant with the RFC standards.

Project description

Check SVG against RFC schema

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.

Usage

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

-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

Dependencies

svgcheck depends on the following packages:

Changelog

Version 0.5.15 (Mon 27 May)

  • Fix errors where we need to emit UTF-8 characters in either text or attributes

  • Add test case for UTF-8

  • Force DOCTYPE not to be emitted when we have fixed a file so that we don’t pick up default attributes

  • Add test case for two pass

Version 0.5.14 (Sun 21 Apr)

  • Force a viewBox to be part of the output

Version 0.5.13 (Sat 06 Apr)

  • Setup so that it can take input from stdin

  • Clean up so that pyflakes passes

Project details


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.5.15.tar.gz (17.6 kB view details)

Uploaded Source

File details

Details for the file svgcheck-0.5.15.tar.gz.

File metadata

  • Download URL: svgcheck-0.5.15.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.6

File hashes

Hashes for svgcheck-0.5.15.tar.gz
Algorithm Hash digest
SHA256 1f9edcb3db77733ae346a1123fadc2198163267588a279c2e7b2e42e8f7d595c
MD5 9603eff24234e6beb66230504d39d84a
BLAKE2b-256 5cb8ca7422427fa64e3d9191f68359be4682b13c6963158e4fae9a8f6d197e21

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page