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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# .*html
BEGIN {
usesMEL()
#
# Flags
#
melFlagTag("gb", "ENG")
melFlagTag("bg", "BGN")
#
# Noteworthy paragraphs
#
melParTag("question", "dialog-question.png")
melParTag("warn", "dialog-warning.png")
melParTag("important", "dialog-important.png")
#
# File type
#
melFiletypeTag("ft-photo", "")
melFiletypeTag("ft-text", "")
melFiletypeTag("ft-zip", "")
melFiletypeTag("ft-movie", "")
melFiletypeTag("ft-markdown", "")
melFiletypeTag("ft-browser", "")
}
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 "\">"
}
function melFiletypeTag(name, repl) {
MEL[name, MELINSERT] = "<span class=\"file-type-icon\">" repl "</span>"
}
|