nerd-fonts: unescape characters in descriptions

This commit is contained in:
ben9986 2024-12-07 00:37:27 +00:00
parent b0cbb2b290
commit 9f0e5cf83f
No known key found for this signature in database
GPG Key ID: ABBCDD7769BCD3B0
2 changed files with 8 additions and 7 deletions

View File

@ -97,7 +97,7 @@
},
{
"caskName": "comic-shanns-mono",
"description": "The very typeface you\u2019ve been trained to recognize since childhood",
"description": "The very typeface youve been trained to recognize since childhood",
"folderName": "ComicShannsMono",
"licenseId": "MIT",
"patchedName": "ComicShannsMono",
@ -217,7 +217,7 @@
},
{
"caskName": "hack",
"description": "Dotted zero, short descenders, expands upon work done for Bitstream Vera & DejaVu, legible at common sizes",
"description": "Dotted zero, short descenders, expands upon work done for Bitstream Vera & DejaVu, legible at common sizes",
"folderName": "Hack",
"licenseId": "Bitstream-Vera AND MIT",
"patchedName": "Hack",
@ -281,7 +281,7 @@
},
{
"caskName": "intone-mono",
"description": "Expressive monospaced font family that\u2019s built with clarity, legibility, and the needs of developers in mind",
"description": "Expressive monospaced font family thats built with clarity, legibility, and the needs of developers in mind",
"folderName": "IntelOneMono",
"licenseId": "OFL-1.1-RFN",
"patchedName": "IntoneMono",
@ -377,7 +377,7 @@
},
{
"caskName": "monoid",
"description": "Ligatures, distinguishable glyphs with short ascenders & descenders, large operators & punctuation",
"description": "Ligatures, distinguishable glyphs with short ascenders & descenders, large operators & punctuation",
"folderName": "Monoid",
"licenseId": "MIT OR OFL-1.1-no-RFN",
"patchedName": "Monoid",
@ -513,7 +513,7 @@
},
{
"caskName": "ubuntu-mono",
"description": "Dotted zeros, used the `n`, `o`, `H` & `O` Latin characters as a base for design",
"description": "Dotted zeros, used the `n`, `o`, `H` & `O` Latin characters as a base for design",
"folderName": "UbuntuMono",
"licenseId": "LicenseRef-UbuntuFont",
"patchedName": "UbuntuMono",

View File

@ -3,6 +3,7 @@
import os
import urllib.request as ureq
import json
import html
if not all(
f"UPDATE_NIX_{v}" in os.environ
@ -28,12 +29,12 @@ def fetchjson(url):
def storejson(path, obj):
with open(path, "w", encoding="utf-8") as f:
json.dump(obj, f, indent=2)
json.dump(obj, f, indent=2, ensure_ascii=False)
# Needed to satisfy EditorConfig's rules
f.write('\n')
def slicedict(d, ks):
return {k: d[k] for k in ks}
return {k: html.unescape(d[k]) for k in ks}
os.chdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), "manifests"))