1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(stardict): better rendering

This commit is contained in:
2022-01-13 18:05:46 +01:00
parent c651413768
commit f0e11f3147

View File

@@ -183,6 +183,8 @@ let
s!</\?pron[^>]*>!!g
s!</\?gen[^>]*>!!g
s!</\?tns[^>]*>!!g
s!</\?per[^>]*>!!g
s!</\?blockquote[^>]*>!!g
s!</\?etym[^>]*>!!g
s!<foreign[^>]*>!$(tput sitm)!g
s!</foreign[^>]*>!$(tput sgr0)!g
@@ -254,6 +256,7 @@ let
s!^\s*[0-9])!$(tput setaf 5)&$(tput sgr0)!g
s#^\(-->.*\)\$#$(tput bold)\1$(tput sgr0)#
s!</\?span[^>]*>!!g
s!</\?p[^>]*>!!g
" | less -FR
'';
in