diff options
author | sinanmohd <sinan@firemail.cc> | 2023-04-04 12:56:56 +0530 |
---|---|---|
committer | sinanmohd <sinan@firemail.cc> | 2023-04-04 12:56:56 +0530 |
commit | 5042b32d808141d25bf3012595b7be6735b9eb6b (patch) | |
tree | 2fdbee0d849fc26c0af6f7fce46b4c1eac2a32c8 /.local/share/unicode/emoji | |
parent | 2156a6726c577323162b5b42744cc1bd67efb2ac (diff) |
font: import nerd font data for sds/dunicode
the following script was used to scrap the data off of nerd font website
set -e
nerd_sheet="https://www.nerdfonts.com/cheat-sheet"
get_nerd()
{
curl --silent -H 'Accept-Encoding: gzip,deflate, br' --compressed "$nerd_sheet"
}
parse()
{
name=
obs=
while IFS="$(printf '\n')" read -r line
do
case "$line" in
*obsolete*)
obs=true
;;
*"div class=\"nf "*)
[ "$obs" = true ] &&
continue
line="${line#*nf }"
name="${line%% *}"
;;
*"Copy Hex Code to Clipboard"*)
if [ "$obs" = true ]; then
obs=false
continue
fi
line="${line%<*}"
line="${line##*>}"
printf "%b %s %s\n" "\U${line}" "$name" "$line"
;;
*)
continue
;;
esac
done
unset name
}
get_nerd | parse
Diffstat (limited to '.local/share/unicode/emoji')
0 files changed, 0 insertions, 0 deletions