diff options
author | John Ankarström <john@ankarstrom.se> | 2021-01-31 14:26:56 +0000 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-01-31 14:26:56 +0000 |
commit | 254097968bc13bfbadf18932f92ff275116ae95f (patch) | |
tree | 9ebd3cb35fb0fcfc93088c7457d34898a85acfee /htindex | |
parent | c24ff6b3ff7abdfeff9fde7d19075ea1edec087c (diff) | |
download | em-254097968bc13bfbadf18932f92ff275116ae95f.tar.gz |
htindex: Support more characters
Diffstat (limited to 'htindex')
-rwxr-xr-x | htindex | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 } ' |