Skip to content

Commit

Permalink
reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkroorda committed Jan 6, 2022
1 parent 1c6e648 commit 5df379a
Show file tree
Hide file tree
Showing 60 changed files with 9,980 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ that generated the Text-Fabric data set for these quotes.
# Getting started

Start with the
[tutorial](https://nbviewer.jupyter.org/github/annotation/tutorials/blob/master/banks/use.ipynb).
[tutorial](https://nbviewer.jupyter.org/github/annotation/banks/blob/master/tutorial/use.ipynb).

Or fire up a terminal and say (provided you have text-fabric installed):

```
text-fabric banks
text-fabric annotation/banks
```

# Author
Expand Down
Empty file added app/__init__.py
Empty file.
15 changes: 15 additions & 0 deletions app/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from tf.advanced.app import App


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

def fmt_layoutRich(app, n, **kwargs):
api = app.api
F = api.F
after = f'{F.punc.v(n) or ""} '
isGap = F.gap.v(n)
material = F.letters.v(n) or ""
layout = f'<span class="gap">{material}</span>' if isGap else material
return f"{layout}{after}"
28 changes: 28 additions & 0 deletions app/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: 3
dataDisplay:
textFormats:
layout-orig-full:
method: layoutRich
style: normal
docs:
docBase: '{docRoot}/{org}/{repo}/blob/master/programs'
docExt: .ipynb
docPage: convert
docRoot: '{urlNb}'
featureBase: '{docBase}'
featurePage: convert
interfaceDefaults: {}
provenanceSpec:
corpus: Two quotes from Consider Phlebas by Iain M. Banks
doi: 10.5281/zenodo.2630416
version: '0.2'
typeDisplay:
book:
featuresBare: author
line:
features: terminator
label: '{number}'
template: '{number}'
verselike: true
word:
features: gap
Binary file added app/static/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5df379a

Please sign in to comment.