#!/usr/bin/env python # coding: utf-8 # # "From {noun} to {noun}" (Nestle1904LFT) # ## Table of content # # * 1 - Introduction # * 1.1 - Why is this relevant? # * 1.2 - Translating into Text-Fabric queries # * 2 - Load Text-Fabric app and data # * 3 - Performing the queries # * 3.1 - Examine Romans 1:17 # * 3.2 - Query for similar paterns # * 4 - Discussion # * 5 - Atribution and footnotes # * 6 - Required libraries # # 1 - Introduction # ##### [Back to TOC](#TOC) # This Jupyter Notebook examines the structures like "ἐκ πίστεως εἰς πίστιν" found in Romans 1 verse 17 (NA28): # # > δικαιοσύνη γὰρ θεοῦ ἐν αὐτῷ ἀποκαλύπτεται ἐκ πίστεως εἰς πίστιν, καθὼς γέγραπται· ὁ δὲ δίκαιος ἐκ πίστεως ζήσεται. # # ## 1.1 - Why is this relevant? # # Understanding the functioning of this idiomatic construct is important for proper exegesis and translation. # ## 1.2 - Translating into Text-Fabric queries # # The Text-Fabric query to be used is looking for the pattern 'From {noun1} to {noun2}', where the lemma of 'noun1' and 'noun2' do not need to be equal. Note that the grammatical case will always be different as a consequence of the preceding propositions ἐκ (forcing the noun to the genitive) and εἰς (followed by an accusative). # # # 2 - Load Text-Fabric app and data # ##### [Back to TOC](#TOC) # In[1]: get_ipython().run_line_magic('load_ext', 'autoreload') get_ipython().run_line_magic('autoreload', '2') # In[1]: # Loading the Text-Fabric code # Note: it is assumed Text-Fabric is installed in your environment. from tf.fabric import Fabric from tf.app import use # In[9]: # load the N1904LFT app and data N1904 = use ("tonyjurg/Nestle1904LFT",version='0.6', hoist=globals()) # In[10]: # The following will push the Text-Fabric stylesheet to this notebook (to facilitate proper display with notebook viewer) N1904.dh(N1904.getCss()) # In[11]: # Set default view in a way to limit noise as much as possible. N1904.displaySetup(condensed=True, multiFeatures=False, queryFeatures=False) # # 3 - Performing the queries # ##### [Back to TOC](#TOC) # ## 3.1 - Examine Romans 1:17 # ##### [Back to TOC](#TOC) # First we will define a query template to select Romans 1:17 to examine the way Text-Fabric dataset represents the structure under investigation. # In[16]: VerseQuery = ''' book book=Romans verse verse=17 chapter=1 ''' VerseResults = N1904.search(VerseQuery) # In[17]: # Note the options "condensed=True, multiFeatures=False,queryFeatures=False" are included below due to the earlier N1904.displaySetup(...) N1904.show(VerseResults, end=1) # ## 3.2 - Query for similar paterns # ##### [Back to TOC](#TOC) # The following query searches for similar patterns like in Rom. 1:17. The relational parameter "<:" preceding the second to fourth items enforces a sequential arrangement, ensuring that these items must follow one another without any intervening items. # In[14]: FromToQuery = ''' verse word lemma=ἐκ <: word sp=noun <: word lemma=εἰς <: word sp=noun ''' FromToResults = N1904.search(FromToQuery) # In[15]: N1904.table(FromToResults) # # 4 - Discussion # ##### [Back to TOC](#TOC) # One important observation it that the lexeme of the two nouns found in each pair are identical. The first occuranace in the genitive, the second in accusative (governed by their preposition). This finding supports the statement that this is indeed an idiomatic construct. # # 5 - Attribution and footnotes # ##### [Back to TOC](#TOC) # # N.A. # # 6 - Required libraries # ##### [Back to TOC](#TOC) # # The scripts in this notebook require (beside `text-fabric`) the following Python libraries to be installed in the environment: # # {none} # # You can install any missing library from within Jupyter Notebook using either`pip` or `pip3`.