diff options
| Commit | ec0c6a69f984532992314e7c0c9a354f4fccec54 (patch) | |
|---|---|---|
| Author | 2024-02-26 12:52:50 +0200 | |
| Committer | 2024-02-26 12:52:50 +0200 | |
| Files | 6f5a3fa9f3f4487c2077f52a39c743e9dd6fb1a9 /awk-edits/Icons.awk | |
| syndamia.com-ec0c6a69f984532992314e7c0c9a354f4fccec54.tar syndamia.com-ec0c6a69f984532992314e7c0c9a354f4fccec54.tar.gz syndamia.com-ec0c6a69f984532992314e7c0c9a354f4fccec54.zip | ||
| Parent | 42815619367b9294d1b1c69f556a93f7c8693f1f (diff) | |
[awk-edits] Removed old ftag scripts
1 files changed, 0 insertions, 30 deletions
| -rw-r--r-- | awk-edits/Icons.awk | 30 |
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, - "<img src=\"/img/" name ".svg\" class=\"flag unzoomable svg\" alt=\"" name "\" height=18>") -} - -/&&gb/ { flagSub("gb", "ENG") } -/&&bg/ { flagSub("bg", "BGN") } - -function articleIconSub(name, filename) { - sub("p>&&" name, - "p class=\"special-par " name "-par\">\\&\\&" name) - gsub("&&" name, - "<img src=\"/img/" filename "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">") -} - -/&&question/ { articleIconSub("question", "dialog-question.png") } -/&&warn/ { articleIconSub("warn", "dialog-warning.png") } -/&&important/ { articleIconSub("important", "dialog-important.png") } |