Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits / MEL-Iconified.awk
blob: 9c7655f21ad3aa6ee6d41c7aab14c5323c3f5584 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# .*html

BEGIN {
	#
	# Flags
	#

	melFlagTag("gb", "ENG")
	melFlagTag("bg", "BGN")

	#
	# Noteworthy paragraphs
	#

	melParTag("question",  "dialog-question.png")
	melParTag("warn",      "dialog-warning.png")
	melParTag("important", "dialog-important.png")
}

function melFlagTag(name, alt) {
	MEL[name, MELINSERT] = "<img src=\"/img/" name ".svg\" class=\"flag unzoomable svg\" alt=\"" name "\" height=18>"
}

function melParTag(name, image) {
	MEL[name, MELPARAGRAPH] = "class=\"special-par " name "-par\"><img src=\"/img/" image "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">"
}