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
|
||||
: ContentWord.Type → Text
|
||||
= λ(word : ContentWord.Type) →
|
||||
''
|
||||
### ${word.word}
|
||||
|
||||
*${word.gloss}*
|
||||
|
||||
${word.definition}
|
||||
''
|
||||
"| ${word.word} | ${word.gloss} | ${word.definition} |"
|
||||
|
||||
in render
|
||||
|
|
|
@ -22,9 +22,13 @@ in ''
|
|||
|
||||
## Root Words
|
||||
|
||||
| L'ewa | gloss | English |
|
||||
|:----- |:----- |:------- |
|
||||
${contentWords dictionary.rootWords}
|
||||
|
||||
## Particles
|
||||
|
||||
| L'ewa | family | gloss | English |
|
||||
|:----- |:------ |:----- |:------- |
|
||||
${particleWords dictionary.particles}
|
||||
''
|
||||
|
|
|
@ -3,14 +3,6 @@ let ParticleWord = ../types/ParticleWord.dhall
|
|||
let render
|
||||
: ParticleWord.Type → Text
|
||||
= λ(word : ParticleWord.Type) →
|
||||
''
|
||||
### ${word.word}
|
||||
|
||||
family: ${word.family}
|
||||
|
||||
*${word.gloss}*
|
||||
|
||||
${word.definition}
|
||||
''
|
||||
"| ${word.word} | ${word.family} | ${word.gloss} | ${word.definition} |"
|
||||
|
||||
in render
|
||||
|
|
Loading…
Reference in New Issue