Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / create-flags.awk
diff options
context:
space:
mode:
1 files changed, 0 insertions, 31 deletions
-rw-r--r--generate-hooks/create-flags.awk31
diff --git a/generate-hooks/create-flags.awk b/generate-hooks/create-flags.awk
deleted file mode 100644
index d07901d..0000000
--- a/generate-hooks/create-flags.awk
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# == 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] = "&#38;&#38;" 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
-}