sourcehypertextpublicbasadictionaryen.pug

//- meta
	slug: "basa/dictionary"
	translates: "basa/dictionary"
	lang: en
	title: "Basa de Dunya: Basa–English dictionary"
	pageCreated: "2022-06-06"
	pageUpdated: "2023-10-12"

extends ../basa-en.pug

append presets
	- const letterhead = [..."ABCDEFGHIJKLMNOPRSTUWXY".split(""), "Affixes"]

mixin entry(word)
	li(href=word.headword.url)
		strong.headword(lang=basa)!= word.headword.headword
		|  
		span.definition!= word.headword.definition
		if word.headword.etymon
			|  
			span.etymon ← !{word.headword.etymon}
		if word.headword.note
			aside.usage-note!= word.headword.note
		if word.children
			ul
				each child in word.children
					+entry(child)

mixin crumbs
	ul.dictionary-index
		a(href="#section-a") A
		a(href="#section-b") B
		a(href="#section-c") C
		a(href="#section-d") D
		a(href="#section-e") E
		a(href="#section-f") F
		a(href="#section-g") G
		a(href="#section-h") H
		a(href="#section-i") I
		a(href="#section-j") J
		a(href="#section-k") K
		a(href="#section-l") L
		a(href="#section-m") M
		a(href="#section-n") N
		a(href="#section-o") O
		a(href="#section-p") P
		a(href="#section-r") R
		a(href="#section-s") S
		a(href="#section-t") T
		a(href="#section-u") U
		a(href="#section-w") W
		a(href="#section-x") X
		a(href="#section-y") Y
		a(href="#section-affixes") Affixes

append presets
	- const dict = annexe;

block header
	a#source-link(href="/basa/dictionary/dict.txt") [<i>Source</i>]
	h2
		strong Basa–English dictionary
		small.subtitle(lang=basa) Kalimakitab de basa a inglix

block content
	each letter, idx in dict
		h3.letter= letterhead[idx]
		ul.dictionary
			each word in letter
				+entry(word)