# # == About == # # A collection of ftags that generate an image HTML tag, containing the specified # flag. This is done, because these tags need to have specific classes, which is # supported in Markdown, but is less flexible and more tedious. # == ftags == # # &&gb Great Britain flag # &&bg Bulgarian flag # # -- Placement/Flow -- # # They can reside absolutely anywhere in text. BEGIN { flag[1] = "gb" flagTitle[1] = "ENG" flag[2] = "bg" flagTitle[2] = "BG" for (i = 1; i <= length(flag); i++) { flagExp[i] = "&&" flag[i] flagTag[i] = "\""" } } /&&/ { for (i = 1; i <= length(flagExp); i++) { gsub(flagExp[i], flagTag[i]) } }