words/utils: render wordlist as a table
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Cadey Ratio 2020-05-25 17:22:56 -04:00
parent 68f648c66f
commit 8604b67e26
3 changed files with 6 additions and 16 deletions

View File

@ -3,12 +3,6 @@ let ContentWord = ../types/ContentWord.dhall
let render let render
: ContentWord.Type → Text : ContentWord.Type → Text
= λ(word : ContentWord.Type) → = λ(word : ContentWord.Type) →
'' "| ${word.word} | ${word.gloss} | ${word.definition} |"
### ${word.word}
*${word.gloss}*
${word.definition}
''
in render in render

View File

@ -22,9 +22,13 @@ in ''
## Root Words ## Root Words
| L'ewa | gloss | English |
|:----- |:----- |:------- |
${contentWords dictionary.rootWords} ${contentWords dictionary.rootWords}
## Particles ## Particles
| L'ewa | family | gloss | English |
|:----- |:------ |:----- |:------- |
${particleWords dictionary.particles} ${particleWords dictionary.particles}
'' ''

View File

@ -3,14 +3,6 @@ let ParticleWord = ../types/ParticleWord.dhall
let render let render
: ParticleWord.Type → Text : ParticleWord.Type → Text
= λ(word : ParticleWord.Type) → = λ(word : ParticleWord.Type) →
'' "| ${word.word} | ${word.family} | ${word.gloss} | ${word.definition} |"
### ${word.word}
family: ${word.family}
*${word.gloss}*
${word.definition}
''
in render in render