Skip to main content

Tool to build and perform checks on WCA Regulations and Guidelines

Project description


# WCA Regulations Compiler

This is a tool to check, build, compare WCA Regulations and Guidelines and its translations.

## Install from PyPi

Just run `pip install wrc`.

## External dependencies

If you want to build the pdf versions, you need the **patched qt** version of [wkhtmltopdf](http://wkhtmltopdf.org/) in your `$PATH`.
These stable standalone binaries are available [here](http://wkhtmltopdf.org/downloads.html) for several platforms.

For CJK translations you also need to install some packages providing CJK fonts. The official build uses "UnBatang" for Korean (package `fonts-unfonts-core` or alike), and default fonts provided by `fonts-wqy-microhei` for Japanese and Chinese-s.

## Run the thing

Here are some sample invocations:

- To check the Regulations and Guidelines:
`wrc path/to/wca-regulations --target=check`
- To build the html to the `build` directory:
`wrc path/to/wca-regulations --target=html --output=build`
- When building translation it's necessary to provide the language (to choose the appropriate font/pdf names):
`wrc path/to/wca-regulations-translations/french --language=french --target=pdf --output=build`
- Check that a translation matches exactly the original rules:
`wrc path/to/wca-regulations-translations/french --diff=path/to/wca-regulations`

You can also take a look at the travis [script](https://github.com/cubing/wca-regulations-translations/blob/master/travis.sh) used in the translations repository.


## Running from the sources

The compiler is built on top of python lex/yacc implementation `ply`, so you probably need to run `pip install ply` to install it.
When this is done, you can use `python -m wrc.wrc` from the repository's root instead of `wrc`.

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

wrc-1.1.1.tar.gz (718.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wrc-1.1.1-py2-none-any.whl (708.6 kB view details)

Uploaded Python 2

File details

Details for the file wrc-1.1.1.tar.gz.

File metadata

  • Download URL: wrc-1.1.1.tar.gz
  • Upload date:
  • Size: 718.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wrc-1.1.1.tar.gz
Algorithm Hash digest
SHA256 93778bd783a40cf02ed8824df6dcedbb8ccbfcfc39c025deb5f6c28ad9a34995
MD5 5c4338a4abffdc5cf614283bc14c6f3c
BLAKE2b-256 b2c9750c39107ca79bfe2943eca330ae4df6284c52986f08f609960182128be6

See more details on using hashes here.

File details

Details for the file wrc-1.1.1-py2-none-any.whl.

File metadata

  • Download URL: wrc-1.1.1-py2-none-any.whl
  • Upload date:
  • Size: 708.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for wrc-1.1.1-py2-none-any.whl
Algorithm Hash digest
SHA256 fb6dd491995073948f25ec97b5045e02450746e8463837efb53071a986799f60
MD5 2c7a93260241b04625a7813c857b6314
BLAKE2b-256 731aba4d8a2239abaed68ac6f5d1a9d1573afa020472ca6b70e74678ea64bc1c

See more details on using hashes here.

Supported by

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