In [1]:
from tf.fabric import Fabric
In [2]:
ETCBC = 'hebrew/etcbc4c'
PHONO = 'hebrew/phono'
TF = Fabric( modules=[ETCBC, PHONO], silent=False )
In [3]:
api = TF.load('''
sp lex voc_utf8
g_word trailer
qere qere_trailer
language freq_lex gloss
mother
''')
In [4]:
api.makeAvailableIn(globals())
In [5]:
verseNode = T.nodeFromSection(('Genesis', 1, 1))
print(verseNode)
In [6]:
print(T.text(L.d(verseNode, otype='word')))
In [7]:
book = 'Genesis'
chp = 1
chpNode = T.nodeFromSection((book, chp))
print(chpNode)
In [8]:
print(T.text(L.d(chpNode, otype='word')))
In [9]:
verseNum = T.sectionFromNode(verseNode)
print('{} {}'.format(verseNum[2], T.text(L.d(verseNode, otype='word'))))
In [10]:
verseNodes = L.d(chpNode, otype='verse')
print(verseNodes)
In [11]:
for v in verseNodes:
verseNum = T.sectionFromNode(v)
verseTxt = T.text(L.d(v, otype='word'))
print('{} {} \n'.format(verseNum[2], verseTxt))
In [ ]: