pariyatti / kosa

Digital library service
GNU Affero General Public License v3.0
8 stars 3 forks source link

Ingest TXT: Daily Words #39

Closed deobald closed 3 years ago

deobald commented 3 years ago
;; from pali_word/txt_job.clj —

;; 1. lookup word by `:words-of-buddha/words`
;;    (a) lookup translation for the current language
;;    (b) add translation if (a) fails

;; 2. add word if (1) fails
;;    (a) lookup largest "looped" index
;;    (b) add "largest + 1" as index
;;        ...but if largest = nil, index is 0
;;    (c) download and attach audio

TODO: sanity-check against Perl script