fault.text

Primary access to kleptic text parsing and serialization functions.

from fault.text import io as txt
src = "[ Section ]\nParagraph.\n"
element_tree = txt.structure_chapter_text(src)
assert src == ''.join(txt.sequence_chapter_element(element_tree))

format
import

document0
import

render0
import

types0
import

structure_paragraph_element250%
function
types.Paragraph

structure_paragraph_element(element)

Create a fault.text.types.Paragraph instance from the given raw paragraph element.

TreeOperations0
data

TreeOperations = document.Tree()

structure_chapter_lines0
function

structure_chapter_lines(lines)

Parse kleptic text lines into an element tree.

structure_chapter_text0
function

structure_chapter_text(source)

Parse kleptic text source into an element tree.

sequence_chapter_element0
data

sequence_chapter_element = render.chapter