---
name: "tei2mod"
section: "1"
platform: "linux"
package: "libsword-utils"
version: "1.9.0+dfsg-7+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/tei2mod"
---

# tei2mod(1)

tool to convert TEI P5 source into a SWORD module

## NAME

tei2mod - tool to convert TEI P5 source into a SWORD module

## SYNOPSIS

**tei2mod** outputpath teisource \[OPTIONS\]

## DESCRIPTION

This utility is used to create SWORD module from a slightly modified TEI (Text Encoding Initiative) P5 formatted XML source document. The resulting module will be saved in the outputpath specified.

## OPTIONS

- **-z**

  Specifies use of ZIP compression.  The default is no compression.

- **-Z**

  Specifies use of LZSS compression.  The default is no compression.

- **-s \[2\|4\]**

  Specifies maximum text size per entry.  The default is 4.

- **-c cipher\_key**

  Specifies that the output will be enciphered with the supplied cipher\_key.  The default is plain text output (no encipherment).

- **-N**

  Disables conversion to UTF-8 and normalization of UTF-8 to NFC.  The default is to convert to UTF-8, if needed, and then normalize to NFC. Note that all UTF-8 texts should be normalized to NFC.

## NOTE

The input format is a subset of TEI P5 with added elements borrowed from OSIS for verse references.  The resulting custom TEI schema is available at http://www.crosswire.org/osis/teiP5osis.1.4.xsd

## AUTHORS

This man page was written by Jonathan Marsden \<jmarsden@fastmail.fm\> for the Debian project but may be used by others.

## SEE ALSO

- http://www.crosswire.org/wiki/TEI\_Dictionaries

  - http://www.crosswire.org/osis/teiP5osis.1.4.xsd

  - http://www.tei-c.org/release/doc/tei-p5-doc/html/index.html
