diff --git a/configs/stardict.nix b/configs/stardict.nix index 7e5316f..f7cab12 100644 --- a/configs/stardict.nix +++ b/configs/stardict.nix @@ -98,11 +98,6 @@ let sha256 = "0p99ybxwxmmd94hf035hvm2hhnfy84av7qq79xf28bh2rbx6s9ng"; stripRoot = false; }; - MacDonell = pkgs.fetchzip { - url = "https://github.com/indic-dict/stardict-sanskrit/raw/4ebd2d3db5820f7cbe3a649c3d5aa8f83d19b29f/sa-head/en-entries/tars/macdonell__2021-10-05_14-23-18Z__2MB.tar.gz"; - sha256 = "1yzmj0393mxvjv4n2lnvd2c722v2bmxxiyq7pscdwni3bxip3h8s"; - stripRoot = false; - }; MonierWilliamsEnglish = pkgs.fetchzip { url = "${repo}/en-head/tars/mw-english-sanskrit__2021-10-05_14-23-18Z__3MB.tar.gz"; sha256 = "09a61hhii4b1m2fkrlh4rm2xnlgwrllh84iypbc6wyj00w9jkl3x"; @@ -118,11 +113,6 @@ let sha256 = "064ysm24ydc534ca689y5i2flnra8jkmh8zn0gsb6n8hdsb0d1lq"; stripRoot = false; }; - ApteSa = pkgs.fetchzip { - url = "${repo}/sa-head/en-entries/tars/apte-sa__2021-12-18_13-20-56Z__6MB.tar.gz"; - sha256 = "0cq1dd02d1pvmjnibbs2cscifjnk2z0nqccf5yzzilxkzsrarh32"; - stripRoot = false; - }; }; oed = { OED1 = pkgs.fetchzip { @@ -157,10 +147,10 @@ let sdcvPager = pkgs.writeDash "sdcvPager" '' export PATH=${lib.makeBinPath [pkgs.gnused pkgs.ncurses pkgs.less]} sed " - s!1!¹!g - s!2!²!g - s!3!³!g - s!4!⁴!g + s!1!¹!gI + s!2!²!gI + s!3!³!gI + s!4!⁴!gI s! style=\"color: #...\"!!g; s!\([^<>]*\)!\1!g; s!]*>!!g; @@ -212,13 +202,13 @@ let s/
/\n/g; s:
::g; s:::g; - s/<[bB]>/$(tput bold)/g; - s::$(tput sgr0):g; - s:<[bB][rR]\s*/\?>:\n:g; - s:<[iI]>:$(tput sitm):g; - s::$(tput sgr0):g; - s:<[uU]>:$(tput smul):g; - s::$(tput sgr0):g; + s//$(tput bold)/gI; + s::$(tput sgr0):gI; + s::\n:gI; + s::$(tput sitm):gI; + s::$(tput sgr0):gI; + s::$(tput smul):gI; + s::$(tput sgr0):gI; s:]*>::g; s:::g; s!\([^<>]*\)!$(tput bold)\1$(tput sgr0)!g; @@ -240,13 +230,12 @@ let s:]*>:ː:g; s:]*>::g; s:]*>:n̩:g - s!!!g - s!]*>!!g - s!!!g - s!]*>!!g - s!]*>!!g + s!!!gI + s!]*>!!gI + s!!!gI + s!]*>!!gI + s!]*>!!gI s!\([^<>]*\)!$(tput setaf 245)\1$(tput sgr0)!g - s!]*>!!g s! +! !g; s!
!\n\n&!g s!]*>!!g s!!!g # unbalanced in Frisk s!^\s*[0-9])!$(tput setaf 5)&$(tput sgr0)!g - s!]*>!!g - s!]*>!!g + s!]*>!!gI + s!]*>!!gI " | less -FR ''; in @@ -335,4 +324,14 @@ Benfey = pkgs.fetchzip { sha256 = "0lj3hgphqgnihn482g9kgjwbvdrcd38vc29v1fi36srn08qdhvcb"; stripRoot = false; }; +ApteSa = pkgs.fetchzip { + url = "${repo}/sa-head/en-entries/tars/apte-sa__2021-12-18_13-20-56Z__6MB.tar.gz"; + sha256 = "0cq1dd02d1pvmjnibbs2cscifjnk2z0nqccf5yzzilxkzsrarh32"; + stripRoot = false; +}; +MacDonell = pkgs.fetchzip { + url = "https://github.com/indic-dict/stardict-sanskrit/raw/4ebd2d3db5820f7cbe3a649c3d5aa8f83d19b29f/sa-head/en-entries/tars/macdonell__2021-10-05_14-23-18Z__2MB.tar.gz"; + sha256 = "1yzmj0393mxvjv4n2lnvd2c722v2bmxxiyq7pscdwni3bxip3h8s"; + stripRoot = false; +}; */