mirror of
https://github.com/kmein/niveum
synced 2026-03-20 03:51:07 +01:00
feat(stardict): better rendering
This commit is contained in:
@@ -183,6 +183,8 @@ let
|
|||||||
s!</\?pron[^>]*>!!g
|
s!</\?pron[^>]*>!!g
|
||||||
s!</\?gen[^>]*>!!g
|
s!</\?gen[^>]*>!!g
|
||||||
s!</\?tns[^>]*>!!g
|
s!</\?tns[^>]*>!!g
|
||||||
|
s!</\?per[^>]*>!!g
|
||||||
|
s!</\?blockquote[^>]*>!!g
|
||||||
s!</\?etym[^>]*>!!g
|
s!</\?etym[^>]*>!!g
|
||||||
s!<foreign[^>]*>!$(tput sitm)!g
|
s!<foreign[^>]*>!$(tput sitm)!g
|
||||||
s!</foreign[^>]*>!$(tput sgr0)!g
|
s!</foreign[^>]*>!$(tput sgr0)!g
|
||||||
@@ -254,6 +256,7 @@ let
|
|||||||
s!^\s*[0-9])!$(tput setaf 5)&$(tput sgr0)!g
|
s!^\s*[0-9])!$(tput setaf 5)&$(tput sgr0)!g
|
||||||
s#^\(-->.*\)\$#$(tput bold)\1$(tput sgr0)#
|
s#^\(-->.*\)\$#$(tput bold)\1$(tput sgr0)#
|
||||||
s!</\?span[^>]*>!!g
|
s!</\?span[^>]*>!!g
|
||||||
|
s!</\?p[^>]*>!!g
|
||||||
" | less -FR
|
" | less -FR
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
|
|||||||
Reference in New Issue
Block a user