cleanup readme
This commit is contained in:
parent
dccb80314c
commit
f05d73b859
1 changed files with 21 additions and 44 deletions
65
README.md
65
README.md
|
|
@ -1,68 +1,45 @@
|
||||||
# Scour
|
# Scour
|
||||||
Scour is a Python module that takes an SVG file and produces a cleaner and more concise file. It is intended to be used after exporting with a GUI editor, such as Inkscape or Adobe Illustrator.
|
|
||||||
|
|
||||||
## Requirements
|
Scour is a Python tool that takes an SVG file and produces a cleaner and more concise file. It is intended to be used **after** exporting to SVG with a GUI editor, such as Inkscape or Adobe Illustrator.
|
||||||
* [Python](https://www.python.org) 2.6 or later
|
|
||||||
* [six](https://pypi.python.org/pypi/six) 1.9 or later
|
Scour is open-source and licensed under [Apache License 2.0](https://github.com/codedread/scour/blob/master/LICENSE).
|
||||||
* [psyco](https://pypi.python.org/pypi/psyco) (optional, Python 2.6 only)
|
|
||||||
|
Scour was originally developed by Jeff "codedread" Schiller and Louis Simard. Development is [now maintained](https://github.com/codedread/scour/issues/11) by Tobias "oberstet" Oberstein.
|
||||||
|
|
||||||
|
This Github repository is the official one. The official website as well as older packages can be found at [www.codedread.com/scour](http://www.codedread.com/scour/).
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
Scour can be installed manually or with a package manager, such as [pip](https://pip.pypa.io) or [Homebrew](http://brew.sh). It is also included as an Inkscape extension and in some Linux distributions.
|
|
||||||
|
|
||||||
### Manual installation
|
Scour requires [Python](https://www.python.org) 2.6 or 2.7 (Python 3 currently does NOT work - see [here](https://github.com/codedread/scour/issues/30)). Further, for installation, use [pip](https://pip.pypa.io):
|
||||||
Download Scour and six and locate the `setup.py` file in both packages. Open a console and enter the following commands:
|
|
||||||
```
|
|
||||||
python /path/to/six/setup.py install
|
|
||||||
```
|
|
||||||
```
|
|
||||||
python /path/to/Scour/setup.py install
|
|
||||||
```
|
|
||||||
Do the same if you want to use psyco.
|
|
||||||
|
|
||||||
### Package manager
|
```console
|
||||||
To install Scour using pip, enter the following command into a console:
|
|
||||||
```
|
|
||||||
pip install scour
|
pip install scour
|
||||||
```
|
```
|
||||||
|
|
||||||
To do the same with Homebrew:
|
|
||||||
```
|
|
||||||
brew install scour
|
|
||||||
```
|
|
||||||
|
|
||||||
Using pip or Homebrew will install six automatically (Homebrew will also install Python, if not installed).
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
Standard:
|
Standard:
|
||||||
```
|
|
||||||
|
```console
|
||||||
scour -i input.svg -o output.svg
|
scour -i input.svg -o output.svg
|
||||||
```
|
```
|
||||||
|
|
||||||
Better (for older versions of Internet Explorer):
|
Better (for older versions of Internet Explorer):
|
||||||
```
|
|
||||||
|
```console
|
||||||
scour -i input.svg -o output.svg --enable-viewboxing
|
scour -i input.svg -o output.svg --enable-viewboxing
|
||||||
```
|
```
|
||||||
|
|
||||||
Maximum scrubbing:
|
Maximum scrubbing:
|
||||||
```
|
|
||||||
|
```console
|
||||||
scour -i input.svg -o output.svg --enable-viewboxing --enable-id-stripping \
|
scour -i input.svg -o output.svg --enable-viewboxing --enable-id-stripping \
|
||||||
--enable-comment-stripping --shorten-ids --indent=none
|
--enable-comment-stripping --shorten-ids --indent=none
|
||||||
```
|
```
|
||||||
|
|
||||||
Maximum scrubbing and a compressed SVGZ file:
|
Maximum scrubbing and a compressed SVGZ file:
|
||||||
```
|
|
||||||
|
```console
|
||||||
scour -i input.svg -o output.svgz --enable-viewboxing --enable-id-stripping \
|
scour -i input.svg -o output.svgz --enable-viewboxing --enable-id-stripping \
|
||||||
--enable-comment-stripping --shorten-ids --indent=none
|
--enable-comment-stripping --shorten-ids --indent=none
|
||||||
```
|
```
|
||||||
|
|
||||||
## License
|
|
||||||
[Apache License 2.0](https://github.com/codedread/scour/blob/master/LICENSE)
|
|
||||||
|
|
||||||
## Development
|
|
||||||
Scour was originally developed by Jeff "codedread" Schiller and Louis Simard. Development is [now maintained](https://github.com/codedread/scour/issues/11) by Tobias "oberstet" Oberstein.
|
|
||||||
|
|
||||||
Scour was started as a vehicle for learning Python. In addition, the goal was to reduce the amount of time spent on cleaning up files that are found on sites such as [openclipart.org](https://openclipart.org).
|
|
||||||
|
|
||||||
Ideas were pulled from three places:
|
|
||||||
* the original author's head
|
|
||||||
* Sam Ruby's [SVG Tidy script](http://intertwingly.net/code/svgtidy/svgtidy.rb)
|
|
||||||
* Inkscape's [proposal for a 'cleaned SVG'](http://wiki.inkscape.org/wiki/index.php/Save_Cleaned_SVG)
|
|
||||||
|
|
||||||
This Github repository is the official one. The official website as well as older packages can be found at [www.codedread.com/scour](http://www.codedread.com/scour/).
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue