From 644fb575ddb9bec82d135b1ebec0dbca49505c6c Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Mon, 15 Sep 2025 00:10:23 +0800 Subject: [PATCH] gnu: Add font-cns11643-sung. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/fonts.scm (font-cns11643-sung): New variable. Change-Id: I83778e2c2173b489147dd4bb2f67ec16ccd6070e Signed-off-by: 宋文武 --- gnu/packages/fonts.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 23693db9db5..732484199ab 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -34,7 +34,7 @@ ;;; Copyright © 2020 John Soo ;;; Copyright © 2020 Raghav Gururajan ;;; Copyright © 2020, 2021 Julien Lepiller -;;; Copyright © 2020, 2024 Zhu Zihao +;;; Copyright © 2020, 2024, 2025 Zhu Zihao ;;; Copyright © 2020-2022, 2025 Simen Endsjø ;;; Copyright © 2020 Tim Van den Langenbergh ;;; Copyright © 2020 Nicolò Balzarotti @@ -990,6 +990,38 @@ terminal applications, and user interfaces that involve both Latin and Japanese text.") (license license:silofl1.1))) +(define-public font-cns11643-sung + (package + (name "font-cns11643-sung") + (version "20250718") ; see https://www.cns11643.gov.tw/opendata/release.txt + (source + (origin + (method url-fetch/zipbomb) + (uri (string-append "https://web.archive.org/web/20250914051659if_/" + "https://cns11643.gov.tw/opendata/Fonts_Sung.zip")) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0b570p5jnw4bqhapalascrx8z1ybgf1c9xj691f5g48pq1jxrhqb")))) + (build-system font-build-system) + (home-page "https://www.cns11643.gov.tw") + (synopsis "CJK TrueType fonts, TW-Sung") + (description + "@code{CNS 11643} character set (Chinese National Standard, or Chinese +Standard Interchange Code) is the standard character set of the Republic of +China (Taiwan) for Chinese Characters and other Unicode symbols. Contained +are three variant of TrueType fonts in Sung/Ming script: + +@itemize +@item @code{TW-Sung-98_1.ttf}: CJK characters in the Basic Multilingual Plane +of Unicode. +@item @code{TW-Sung-Ext-B-98_1.ttf}: CJK characters in the CJK Unified +Ideographs Extension B of Unicode. +@item @code{TW-Sung-Plus-98_1.ttf}: CJK characters in the Plane 15 (Private Use) +of Unicode. +@end itemize\n") + (license license:silofl1.1))) + (define-public font-cns11643 ;; Since upstream doesn't provide any version numbers, the date of the last ;; edit is used, taken from https://data.gov.tw/dataset/5961