Skip to content

Commit

Permalink
Create app.py
Browse files Browse the repository at this point in the history
Initial version for testing
  • Loading branch information
tonyjurg authored Jan 5, 2024
1 parent 6bdb6ee commit ce059b5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from tf.advanced.app import App
from tf.advanced.display import displaySetup

class TfApp(App):
def __init__(app, *args, **kwargs):
super().__init__(*args, **kwargs)

def Viewtype(app,ViewName):
if ViewName=='wg':
OptionDict = {'hiddenTypes' : 'clause,phrase,subphrase', 'extraFeatures' : {'wg:subjrefspec','referent','id','framespec','word:type','gloss'}, 'condensed': {True}, 'queryFeatures': {False}, 'suppress' : {'book','chapter','verse'}}
displaySetup(app,**OptionDict)
print ('setup for wg-view')
if ViewName=='syntax':
OptionDict = {'hiddenTypes' : 'wg,subphrase', 'extraFeatures' : {'gloss','appositioncontainer','rela'}, 'condensed': {True}, 'queryFeatures': {False}, 'suppress' : {'book','chapter','verse','phrase:gloss'} }
displaySetup(app,**OptionDict)
print ('setup for syntax-view')

0 comments on commit ce059b5

Please sign in to comment.