From 135e4aa874eba57be611083e44cfd60ebb0937a1 Mon Sep 17 00:00:00 2001 From: Nick Whitelegg Date: Sun, 3 May 2020 12:22:04 +0100 Subject: [PATCH 1/2] Add a (mostly but not fully complete) readme --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b250fc6 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +kothic-js-mapcss +================ + +(Documentation provided by @nickw1, based on personal experience) + +This is a script and makefile to convert a MapCSS stylesheet into a JavaScript +file suitable for use with kothic.js. + +Several Python modules need to be installed. You should install pip (the +Python package manager) first. Use Python 2.x rather than Python 3.x. e.g. + +`apt-get install pip` + +Once pip is installed, you need to install several dependences: + +- `ply` +- `setuptools` +- `wheel` +- `pycairo` +- `pillow` + +You also need `mapcss_parser`, which can be obtained from https://github.com/Miroff/mapcss-parser. + +`rsvg` is also needed, but this appears to not be available as a pip package. I attempted and failed to install from source, but this is only needed if you are working with SVG images. Your mileage may vary. However, if you are not working with SVG, you can simply comment out (with a hash) the + +`import rsvg` + +from `scripts/mapcss_converter.py` From 72e69331e94d0fecbf1b1a58265ecf830d8a5371 Mon Sep 17 00:00:00 2001 From: Nick Whitelegg Date: Sun, 3 May 2020 12:24:33 +0100 Subject: [PATCH 2/2] link to user page in docs --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b250fc6..e843cfe 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ kothic-js-mapcss ================ -(Documentation provided by @nickw1, based on personal experience) +(Documentation provided by [nickw1](https://github.com/nickw1), based on personal experience) This is a script and makefile to convert a MapCSS stylesheet into a JavaScript file suitable for use with kothic.js.