words/utils: render wordlist as a table
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
68f648c66f
commit
8604b67e26
|
@ -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
|
||||||
|
|
|
@ -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}
|
||||||
''
|
''
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue