From 254097968bc13bfbadf18932f92ff275116ae95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 31 Jan 2021 14:26:56 +0000 Subject: htindex: Support more characters --- htindex | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'htindex') diff --git a/htindex b/htindex index accd0be..b3f88f1 100755 --- a/htindex +++ b/htindex @@ -67,8 +67,12 @@ source $* | awk ' gsub("[ÙÚÛÜùúûü]", "u", s) gsub("[×]", "x", s) gsub("[Ýýÿ]", "y", s) - gsub("[^-a-z_ ]", "", s) - gsub("[ ]+", "-", s) + gsub("[/]", "-", s) + gsub("[ \n]+\\+[ \n]+", "+", s) + gsub("[ \n]+=[ \n]+", "=", s) + gsub("[ \n]+", "-", s) + gsub("[^=-+a-z0-9_ ]", "", s) + gsub("-+", "-", s) return s } ' -- cgit v1.2.3