From ec0c6a69f984532992314e7c0c9a354f4fccec54 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 26 Feb 2024 12:52:50 +0200 Subject: [awk-edits] Removed old ftag scripts --- awk-edits/Icons.awk | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 awk-edits/Icons.awk (limited to 'awk-edits/Icons.awk') diff --git a/awk-edits/Icons.awk b/awk-edits/Icons.awk deleted file mode 100644 index ae780bd..0000000 --- a/awk-edits/Icons.awk +++ /dev/null @@ -1,30 +0,0 @@ -# .*html -# -# == About == -# -# A collection of ftags that generate an image HTML tag, containing the specified -# thing. This is done, because these tags need to have specific classes, which is -# supported in Markdown, but is less flexible and more tedious. -# -# -- Placement/Flow -- -# -# They can reside absolutely anywhere in text. - -function flagSub(name, alt) { - gsub("&&" name, - "\""") -} - -/&&gb/ { flagSub("gb", "ENG") } -/&&bg/ { flagSub("bg", "BGN") } - -function articleIconSub(name, filename) { - sub("p>&&" name, - "p class=\"special-par " name "-par\">\\&\\&" name) - gsub("&&" name, - "\""") -} - -/&&question/ { articleIconSub("question", "dialog-question.png") } -/&&warn/ { articleIconSub("warn", "dialog-warning.png") } -/&&important/ { articleIconSub("important", "dialog-important.png") } -- cgit v1.3.1-26-gb76a