Skip to main content

USFM reference parser

Project description

USFMTC Module

Introduction

The USFMTC module is a module for reading and writing USFM scripture files in all their formats: USFM, USX and USJ. It is designed to be a reference implementation of the standard. It also has support for Scripture References.

import sys, usfmtc
from usfmtc.versification import Versification

# engvrs = Versification("eng.vrs")
usxdoc = usfmtc.readFile(sys.argv[1])
# usxdoc.canonicalise()
# usxdov.reversify(engvrs, None)
usxdoc.saveAs(sys.argv[2])

The internal representation of the data is as an ElementTree structure conforming to the USX standard.

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

usfmtc-0.3.12.tar.gz (86.2 kB view details)

Uploaded Source

Built Distribution

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

usfmtc-0.3.12-py3-none-any.whl (83.7 kB view details)

Uploaded Python 3

File details

Details for the file usfmtc-0.3.12.tar.gz.

File metadata

  • Download URL: usfmtc-0.3.12.tar.gz
  • Upload date:
  • Size: 86.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for usfmtc-0.3.12.tar.gz
Algorithm Hash digest
SHA256 143857c811cc4a1ef62a7b44bc12abc7e8b6a9a1282b54438e5edfc1ca4adf82
MD5 d9895727d94482159eca2212e2c02f51
BLAKE2b-256 376bd2b92868f9856aba9ee33306210c69448e61172bff29634ddf9a76eff5cf

See more details on using hashes here.

File details

Details for the file usfmtc-0.3.12-py3-none-any.whl.

File metadata

  • Download URL: usfmtc-0.3.12-py3-none-any.whl
  • Upload date:
  • Size: 83.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for usfmtc-0.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 7c56656b812738ae31b882b87d9da918a380047133eb0ca8a009e29e264821d2
MD5 c5525ddadb97a84e8c6895874bd8f239
BLAKE2b-256 abaa2ca7f051b0aef8fb8dcab89c4494cc6cde23dd19858d59efced76d6639d4

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