X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=list.sh;h=60609b62c2f26c05dbeef788979d163ac0c178c3;hb=835303be710dd2a465809f1163cecbd86c19f265;hp=1ae43f19e58c1911dcf2bbfba0fd4ed8bfbc1f52;hpb=8fa27d850ad8f2577a6ce94f895ec1bca88e3bfa;p=serve0 diff --git a/list.sh b/list.sh index 1ae43f1..60609b6 100644 --- a/list.sh +++ b/list.sh @@ -51,10 +51,14 @@ list_item() { STRING "$FILTER^" \ | sed -E 's;\^;\n;g; s;[]\/\(\)\\\^\$\?\.\+\*\;\[\{\}];\\&;g' \ | while read -r f; do - [ "${f#\~}" ] || continue - [ "${f#\~}" = "$f" ] \ - && fex="/(\ttags=([^\t]*,)?)(${f})((,[^\t]*)?\t)/{${fex}}" \ - || fex="/(\ttags=([^\t]*,)?)(${f#\~})((,[^\t]*)?\t)/d; ${fex}" + [ "${f##*[A-Z]*}" ] && tl="y;ABCDEFGHIJKLMNOPQRSTUVWXYZ;abcdefghijklmnopqrstuvwxyz;;" + case $f in + ''|~) continue;; + ~\\\$:*) fex="h; ${tl} /${f#~\\\$:}/d; g;${fex}";; + \\\$:*) fex="h; ${tl} /${f#\\\$:}/{g;${fex}}";; + ~*) fex="/(\ttags=([^\t]*,)?)(${f#\~})((,[^\t]*)?\t)/d; ${fex}";; + *) fex="/(\ttags=([^\t]*,)?)(${f})((,[^\t]*)?\t)/{${fex}}";; + esac printf '%s\n' "${fex}" done \ | tail -n1 @@ -207,13 +211,13 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n' printf ' by %s]' "$ORDER" printf ' [meta name="viewport" content="width=device-width"] + [link rel=stylesheet href="/cgilite/common.css" ] [link rel=stylesheet href="/style.css" ] ] [body [div #navigation [a #t_bookmarks href="#bookmarks" ★]' w_search printf ' - [a #t_avsearch href="#advsearch" Advanced] [a #t_prefs href="#prefs" ⚙] ]' w_bookmarks