Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit125616dd74ee83dbf34a0c862eafeb2ca79560b0 (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-02-25 12:52:11 +0200
Committer
 Syndamia <kamen@syndamia.com>
2024-02-25 12:52:11 +0200
Files7b769609d4d2776fa8df92fc689da9f65aed73be
syndamia.com-125616dd74ee83dbf34a0c862eafeb2ca79560b0.tar
syndamia.com-125616dd74ee83dbf34a0c862eafeb2ca79560b0.tar.gz
syndamia.com-125616dd74ee83dbf34a0c862eafeb2ca79560b0.zip
Parent867b5015fda689bc5414557557a00cd8ad62699d (diff)
(awk-edits) Reworked Icons.awk into MEL format
1 files changed, 26 insertions, 0 deletions
-rw-r--r--awk-edits/MEL-Iconified.awk26
diff --git a/awk-edits/MEL-Iconified.awk b/awk-edits/MEL-Iconified.awk
new file mode 100644
index 0000000..9c7655f
--- /dev/null
+++ b/awk-edits/MEL-Iconified.awk
@@ -0,0 +1,26 @@
+# .*html
+
+BEGIN {
+ #
+ # Flags
+ #
+
+ melFlagTag("gb", "ENG")
+ melFlagTag("bg", "BGN")
+
+ #
+ # Noteworthy paragraphs
+ #
+
+ melParTag("question", "dialog-question.png")
+ melParTag("warn", "dialog-warning.png")
+ melParTag("important", "dialog-important.png")
+}
+
+function melFlagTag(name, alt) {
+ MEL[name, MELINSERT] = "<img src=\"/img/" name ".svg\" class=\"flag unzoomable svg\" alt=\"" name "\" height=18>"
+}
+
+function melParTag(name, image) {
+ MEL[name, MELPARAGRAPH] = "class=\"special-par " name "-par\"><img src=\"/img/" image "\" class=\"special-par-icon borderless unzoomable\" alt=\"" name "\">"
+}