https://github.com/djc/rnc2rng
RELAX NG Compact to regular syntax conversion library
https://github.com/djc/rnc2rng
Last synced: 6 months ago
JSON representation
RELAX NG Compact to regular syntax conversion library
- Host: GitHub
- URL: https://github.com/djc/rnc2rng
- Owner: djc
- License: mit
- Created: 2015-09-28T15:53:08.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2024-08-24T20:20:26.000Z (over 1 year ago)
- Last Synced: 2025-05-28T23:49:19.070Z (7 months ago)
- Language: Python
- Size: 214 KB
- Stars: 18
- Watchers: 5
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
RELAX NG Compact to RELAX NG conversion library
===============================================
.. image:: https://github.com/djc/rnc2rng/workflows/CI/badge.svg
:target: https://github.com/djc/rnc2rng/actions?query=workflow%3ACI
.. image:: https://coveralls.io/repos/djc/rnc2rng/badge.svg?branch=master&service=github
:target: https://coveralls.io/github/djc/rnc2rng?branch=master
Converts RELAX NG schemata in Compact syntax (`rnc`) to the equivalent schema
in the XML-based default RELAX NG syntax. Dependencies:
- Python 3.x (tested with 3.8, 3.9, 3.10, 3.11, 3.12)
- `rply`_
Feedback welcome on `GitHub`_. Please consider funding continued maintenance of this
project through `Patreon`_ or `GitHub Sponsors`_.
.. _GitHub: https://github.com/djc/rnc2rng
.. _rply: https://pypi.python.org/pypi/rply
.. _Patreon: https://patreon.com/dochtman
.. _GitHub Sponsors: https://github.com/sponsors/djc
History
-------
rnc2rng was originally written by `David Mertz`_ in 2003 and published as part
of a collection of files around RELAX NG `on his site`_ into the Public Domain.
`Hartmut Goebel`_ published it as a package on PyPI to make it easier to access.
It was mirrored on GitHub by `Dustin J. Mitchell`_ in 2010 after he fixed some
bugs. `Timmy Zhu`_ forked his repository and contributed further enhancements.
Recently, I (Dirkjan Ochtman) was interested in playing with RELAX NG Compact
and started making further updates. I asked Hartmut for maintainership on PyPI
and received it. While I cannot promise many updates, I should be responsive to
bug reports and (especially!) pull requests.
.. _David Mertz: http://www.gnosis.cx/publish/
.. _on his site: http://www.gnosis.cx/download/relax/
.. _Hartmut Goebel: http://www.goebel-consult.de/
.. _Dustin J. Mitchell: http://code.v.igoro.us/
.. _Timmy Zhu: https://github.com/nattofriends
How to install
--------------
The usual should work:
.. code-block:: shell
$ sudo pip install .
Getting started
---------------
.. code-block:: shell
$ python -m rnc2rng test.rnc > test.rng
License
-------
All of the code is released under MIT License.