Skip to content

Commit b7073fc

Browse files
authored
nerd-fonts: correct typos in descriptions (NixOS#361818)
2 parents eec12e3 + 9f0e5cf commit b7073fc

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

pkgs/data/fonts/nerd-fonts/manifests/fonts.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
},
9898
{
9999
"caskName": "comic-shanns-mono",
100-
"description": "The very typeface you\u2019ve been trained to recognize since childhood",
100+
"description": "The very typeface you’ve been trained to recognize since childhood",
101101
"folderName": "ComicShannsMono",
102102
"licenseId": "MIT",
103103
"patchedName": "ComicShannsMono",
@@ -217,7 +217,7 @@
217217
},
218218
{
219219
"caskName": "hack",
220-
"description": "Dotted zero, short descenders, expands upon work done for Bitstream Vera & DejaVu, legible at common sizes",
220+
"description": "Dotted zero, short descenders, expands upon work done for Bitstream Vera & DejaVu, legible at common sizes",
221221
"folderName": "Hack",
222222
"licenseId": "Bitstream-Vera AND MIT",
223223
"patchedName": "Hack",
@@ -281,7 +281,7 @@
281281
},
282282
{
283283
"caskName": "intone-mono",
284-
"description": "Expressive monospaced font family that\u2019s built with clarity, legibility, and the needs of developers in mind",
284+
"description": "Expressive monospaced font family that’s built with clarity, legibility, and the needs of developers in mind",
285285
"folderName": "IntelOneMono",
286286
"licenseId": "OFL-1.1-RFN",
287287
"patchedName": "IntoneMono",
@@ -377,7 +377,7 @@
377377
},
378378
{
379379
"caskName": "monoid",
380-
"description": "Ligatures, distinguishable glyphs with short ascenders & descenders, large operators & punctuation",
380+
"description": "Ligatures, distinguishable glyphs with short ascenders & descenders, large operators & punctuation",
381381
"folderName": "Monoid",
382382
"licenseId": "MIT OR OFL-1.1-no-RFN",
383383
"patchedName": "Monoid",
@@ -513,7 +513,7 @@
513513
},
514514
{
515515
"caskName": "ubuntu-mono",
516-
"description": "Dotted zeros, used the `n`, `o`, `H` & `O` Latin characters as a base for design",
516+
"description": "Dotted zeros, used the `n`, `o`, `H` & `O` Latin characters as a base for design",
517517
"folderName": "UbuntuMono",
518518
"licenseId": "LicenseRef-UbuntuFont",
519519
"patchedName": "UbuntuMono",

pkgs/data/fonts/nerd-fonts/update.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import urllib.request as ureq
55
import json
6+
import html
67

78
if not all(
89
f"UPDATE_NIX_{v}" in os.environ
@@ -28,12 +29,12 @@ def fetchjson(url):
2829

2930
def storejson(path, obj):
3031
with open(path, "w", encoding="utf-8") as f:
31-
json.dump(obj, f, indent=2)
32+
json.dump(obj, f, indent=2, ensure_ascii=False)
3233
# Needed to satisfy EditorConfig's rules
3334
f.write('\n')
3435

3536
def slicedict(d, ks):
36-
return {k: d[k] for k in ks}
37+
return {k: html.unescape(d[k]) for k in ks}
3738

3839
os.chdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), "manifests"))
3940

0 commit comments

Comments
 (0)