Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits / Flags.awk
diff options
context:
space:
mode:
1 files changed, 0 insertions, 27 deletions
-rw-r--r--awk-edits/Flags.awk27
diff --git a/awk-edits/Flags.awk b/awk-edits/Flags.awk
deleted file mode 100644
index aad1343..0000000
--- a/awk-edits/Flags.awk
+++ /dev/null
@@ -1,27 +0,0 @@
-# .*html
-#
-# == 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.
-
-function flagSub(name, alt) {
- gsub("&#38;&#38;" name, "<img src=\"/img/" name ".svg\" class=\"flag unzoomable svg\" alt=\"" name "\" height=18>")
-}
-
-/&#38;&#38;gb/ {
- flagSub("gb", "ENG")
-}
-/&#38;&#38;bg/ {
- flagSub("bg", "BGN")
-}