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.11.tar.gz (86.1 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.11-py3-none-any.whl (83.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: usfmtc-0.3.11.tar.gz
  • Upload date:
  • Size: 86.1 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.11.tar.gz
Algorithm Hash digest
SHA256 e6c95ec92f156466f08ddd17c4edc964b67dc0be255368909e5f2fde8cacf53a
MD5 68bc90f72b19c663d80fa8ba77925f96
BLAKE2b-256 a1ba3644a07740ceb64d1a280fa71bfc393d968f4f6a45e2f30f801cc5a6e87c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: usfmtc-0.3.11-py3-none-any.whl
  • Upload date:
  • Size: 83.6 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 5d1675079ac380db8d7edd36a7703768e8b5db1953690500552576b8584677c9
MD5 bc07dd2fb4482806aa6def1288c9b2fc
BLAKE2b-256 d558b6ce19da5e55798f79676145ae44a47e55cdeba1f2a47451cf15d5011cc6

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