blob: d07901d1595f3340abe62d1fe176aa6cc0d41a81 (
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
27
28
29
30
31
|
#
# == About ==
#
# A collection of ftags that generate an image HTML tag, containing the specified
# flag. This is done, because these tags need to have the unzoomable class, which
# you can't specify in Markdown.
# == ftags ==
#
# &&gb Great Britain flag
#
# -- Placement/Flow --
#
# They can reside absolutely anywhere in text.
BEGIN {
flag[1] = "gb"
title[1] = "ENG"
for (i = 1; i <= length(flag); i++) {
flagExp[i] = "&&" flag[i]
flagTag[i] = "<img src=\"/img/" flag[i] ".svg\" class=\"unzoomable svg\" alt=\"" title[i] "\" title=\"" title[i] "\">"
}
}
{
for (i = 1; i <= length(flagExp); i++) {
gsub(flagExp[i], flagTag[i])
}
print
}
|