In [1]:
from tf.fabric import Fabric
ETCBC = 'hebrew/etcbc4c'
PHONO = 'hebrew/phono'
TF = Fabric( modules=[ETCBC, PHONO], silent=False )
api = TF.load('''
book chapter verse
sp nu gn ps vt vs st
otype
det
g_word_utf8 trailer_utf8
lex_utf8 lex voc_utf8
g_prs_utf8 g_uvf_utf8
prs_gn prs_nu prs_ps g_cons_utf8
gloss
''')
In [2]:
api.makeAvailableIn(globals())
In [3]:
verseNode = T.nodeFromSection(('Genesis', 1, 1))
wordsNode = L.d(verseNode, otype='word')
print(wordsNode)
In [4]:
print(T.text(wordsNode))
In [5]:
print(F.g_cons_utf8.v(wordsNode[1]))
In [6]:
print(F.gloss.v(L.u(wordsNode[1], otype='lex')[0]))
In [7]:
chpNode = T.nodeFromSection(('Genesis',))
l_ref = T.sectionFromNode(chpNode, lastSlot=True)
print(l_ref)
In [8]:
f_ref = T.sectionFromNode(chpNode)
print(f_ref)
In [ ]: