Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / create-flags.awk
diff options
context:
space:
mode:
Commit0187e255a811bebb0dad3624f2c6d78b829d15c5 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-01-17 16:15:28 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-01-17 16:15:28 +0200
Files68efd3520e72c8c8c553fdda7b9391d9ec4e9feb /generate-hooks/create-flags.awk
syndamia.com-0187e255a811bebb0dad3624f2c6d78b829d15c5.tar
syndamia.com-0187e255a811bebb0dad3624f2c6d78b829d15c5.tar.gz
syndamia.com-0187e255a811bebb0dad3624f2c6d78b829d15c5.zip
Parentda000c477625bb533688df84bd95ba3a3aff3246 (diff)
[awk] Reworked generation to happen via a combined script, updated scripts and added info in scripts readme
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
-}