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.8.tar.gz (78.8 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.8-py3-none-any.whl (74.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: usfmtc-0.3.8.tar.gz
  • Upload date:
  • Size: 78.8 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.8.tar.gz
Algorithm Hash digest
SHA256 eb2f3db79c4e1010f41e3de143b013178277a5894358d7643f57ea4279b51c14
MD5 e00eecf66b5ee1fd4f41a39707ef8461
BLAKE2b-256 b83f4633bb4e484f792576664a409bf4adcc08ae5df25e42462a0e5551f2a55e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: usfmtc-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 74.0 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d71bf4eeb4b1681df1def6f96349263422d7b56f002823913058a8f6b1418505
MD5 20ac7d9813aa06c79608177ea676001a
BLAKE2b-256 1adfb5b63bea57e47e88860803c48fbe822cdb8f1bf0308235be12bc9e128878

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