From 8f308d86f0157584181afadcd3b3f122690eb32a Mon Sep 17 00:00:00 2001 From: David Schlachter Date: Sun, 11 Jan 2026 13:50:43 -0500 Subject: Actually include etyomology --- README.md | 3 +++ setup.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 283a25f..2112bee 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,9 @@ Usage of french-wiktionary-flashcards: languages other than French - general code cleanup & organization - italicise part-of-speech in the TUI + - maybe we could create the Anki and the TUI definitions at the same time + during initial parsing? Then we'd have all the information required to do + a really good job of it. - better gender tags -- jq through the source data to see what's common - some kind of tests? diff --git a/setup.go b/setup.go index dbd9955..7921f47 100644 --- a/setup.go +++ b/setup.go @@ -88,7 +88,8 @@ func populateDictionary(rawDictionary string, db *sql.DB) error {
    {{ range .Senses}}
  1. {{ .Sense }}
    {{ if .Example }}
    • {{ .Example }}
  2. {{ end }} -{{ end }}
`) +{{ end }} +{{ if .Etymology }}

Étymologie: {{ .Etymology }}{{ end }}`) if err != nil { panic(err) } -- cgit v1.2.3