Skip to main content

Introduction

Utilities to convert to and from CNXML - a lightweight XML markup language for marking up educational content in use by Connexions (http://cnx.org)

To run transformations manually see *.sh script files manual-tests/ Usually all test xml/html files are stored in rhaptos/cnxmlutils/tests/data/

Develop

Run the tests by running ./script/setup and then ./script/test.

To rebuild the tests, run ./script/rebuild-tests.

Code is hosted at: - https://github.com/Connexions/rhaptos.cnxmlutils

License

This software is subject to the provisions of the GNU Affero General Public License Version 3.0 (AGPL). See license.txt for details. Copyright (c) 2013 Rice University

Changelog

2.3.0

  • Add cases for selecting injected exercise links #201

2.2.0

  • Changes the injected exercise links to just be links instead of having exercise boilerplate around them

2.1.2

  • Adds HTML lang attribute when xml:lang attribute occurs

  • xsl:text should not be used for XML elements

2.1.1

  • preseve class name on links that have autogenerated link text

2.1.0

  • Ensure footnotes with equations aren’t dropped

  • Copy id attribute from CNXML table row entries

2.0.0

  • Dump footnotes right after para

  • Use epub notation for footnotes

1.7.3

  • Fix lxml version in setup.py for python 2.7

1.7.2

  • Install lxml>=4, <4.4 only for python != 2.7 or < 3.5

  • Change travis to use python 3.5 instead of 3.4

1.7.1

  • Add self close comment to section titles h3 etc

  • fix travis on python 3.4

1.7.0

  • Add no self close comment to <section> in cnxml-to-html5

  • Add no self close comment to <figure> in cnxml-to-html5

  • Add no self close comment to <u> in cnxml-to-html5

  • Remove no self close comment for <a> where unnecessary

  • Add no self close comment to <figcaption> in cnxml-to-html5

1.6.2

  • Added twine check to travis (#183)

  • Fixed restructured text error in README.txt (#184)

1.6.1

  • Fix restructured text error in history.txt (#182)

1.6.0

  • Added new comment <!– no-selfclose –> is only created in the output when there is no content inside the tag (#180)

  • Make self-closing tags mandatory for spans, div, iframe, etc. (#179)

  • Add utf-8 and math content to tests, check for self closing tags in tests (#178)

1.5.0

  • Add longdesc attribute to img tags during transform (#175)

1.4.0

  • convert all cnx:newline to span (#174)

1.3.2

  • Fix conversion of para/cite/note (partial fix for #162)

1.3.1

  • Fix handling of nested terms in glossary (#164)

1.3.0

  • Set xsl/test/build.py version to “v0.test”

  • Include the version that was used when transforming (#161)

  • Convert windows ISO characters to UTF-8 (#160)

  • Make lists nicer for CSS usage (#159)

  • Unwrap blocks in paragraphs (#158)

  • Remove class=”TYPE” in favor of just data-type=”type” (#154)

  • Fix double-listing the footnotes (#151)

  • Fix footnotes so they are not double-numbered and more selectable (#150)

  • Move cnxml section title to be an h3 (and down, for subsections) (#148)

  • Fix to preserve the ‘class’ on the top node of the document (#145)

  • Fix notes to be exactly one paragraph with title (#141)

  • Correct input cnxml for xsl tests to be valid (#139)

  • Update tests to be python3 compatible (#137)

  • Remove stale test for a feature not used in later versions

1.2

  • (unknown)

1.1

  • Handle bold and italic paragraph styles [rochecompaan]

  • alt tags on figures propogate to media

  • fixed subfigure cases

1.0

  • Initial release

Metadata

Release files for rhaptos.cnxmlutils 2.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for rhaptos.cnxmlutils 2.10.0
File Interpreter ABI Platform
rhaptos.cnxmlutils-2.10.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / rhaptos.cnxmlutils-2.10.0-py2.py3-none-any.whl

Download URL rhaptos.cnxmlutils-2.10.0-py2.py3-none-any.whl
Size 152.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ad90cffa980680b3261a4d43d5856b25006e059833e2563eab034316627c7017
BLAKE2b-256 checksum
How to use checksums
42e4417c968cb14519c7dc41f94af8e73419b7132e83b723fa87f728d64d2e31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/2.7.18

Release history Release notifications | RSS feed

This release

2.10.0 This release

1 release file

2.9.1

1 release file

2.9.0

1 release file

2.8.0

1 release file

2.7.0

1 release file

2.6.0

1 release file

2.5.0

1 release file

2.4.0

1 release file

2.3.0

1 release file

2.2.0

1 release file

2.1.2

1 release file

2.1.1

1 release file

2.1.0

1 release file

2.0.0

1 release file

1.7.3

1 release file

1.7.2

1 release file

1.7.1

1 release file

1.7.0

1 release file

1.6.2

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page