From f6d40fff04fcf28e3a9f79afc3f00c6b6ac7f383 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 21 Jul 2025 07:27:29 +0300 Subject: feat(src/ext): Replace icons.du with icons.awk Adding the substitutions in an AWK BEGIN block is much faster than with a dunbar file. It also eliminates the HTML file, generated in ext. However, this does bring up the question whether having cross-file definitions is a bug or a feature. It would be better for dunbar implementation compatibility. --- ext/icons.awk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ext/icons.awk (limited to 'ext/icons.awk') diff --git a/ext/icons.awk b/ext/icons.awk new file mode 100644 index 0000000..027cc75 --- /dev/null +++ b/ext/icons.awk @@ -0,0 +1,19 @@ +BEGIN { + flagdef("gb", "ENG") + flagdef("bg", "BGN") + + ftdef("ft-photo", "") + ftdef("ft-text", "") + ftdef("ft-zip", "") + ftdef("ft-movie", "") + ftdef("ft-markdown", "") + ftdef("ft-browser", "") +} + +function flagdef(flag, alt) { + substitutions[flag] = "\""" +} + +function ftdef(ft, char) { + substitutions[ft] = "" char "" +} -- cgit v1.3.1-26-gb76a