From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4BfV-000855-PN for guix-patches@gnu.org; Fri, 28 Apr 2017 15:35:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4BfS-0004c5-Ls for guix-patches@gnu.org; Fri, 28 Apr 2017 15:35:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46877) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d4BfS-0004bu-He for guix-patches@gnu.org; Fri, 28 Apr 2017 15:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d4BfS-0008EO-CE for guix-patches@gnu.org; Fri, 28 Apr 2017 15:35:02 -0400 Subject: bug#26702: [PATCH 1/2] gnu: Add font-cns11643 Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34490) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d4B1F-0003b2-Bq for guix-patches@gnu.org; Fri, 28 Apr 2017 14:53:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d4B1B-0004bU-J3 for guix-patches@gnu.org; Fri, 28 Apr 2017 14:53:29 -0400 Received: from lb1.openmailbox.org ([5.79.108.160]:53092 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d4B1B-0004aF-9x for guix-patches@gnu.org; Fri, 28 Apr 2017 14:53:25 -0400 From: Brendan Tildesley Message-ID: <36cee073-4427-d584-2d9c-c0e2e22fd4ff@openmailbox.org> Date: Sat, 29 Apr 2017 04:53:13 +1000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------AA7B1349E44EBA07EA156791" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 26702@debbugs.gnu.org This is a multi-part message in MIME format. --------------AA7B1349E44EBA07EA156791 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit --------------AA7B1349E44EBA07EA156791 Content-Type: text/x-patch; name="0001-gnu-Add-font-cns11643.patch" Content-Disposition: attachment; filename="0001-gnu-Add-font-cns11643.patch" Content-Transfer-Encoding: quoted-printable >From 69bd2f347a516bc978406f9810a5355812c58491 Mon Sep 17 00:00:00 2001 From: Brendan Tildesley Date: Sat, 29 Apr 2017 04:30:48 +1000 Subject: [PATCH 1/2] gnu: Add font-cns11643 * gnu/packages/fonts.scm (font-cns11643): New variable. --- gnu/packages/fonts.scm | 59 ++++++++++++++++++++++++++++++++++++++++++++= ++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index 2452a1c81..821fce69a 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -17,6 +17,7 @@ ;;; Copyright =C2=A9 2017 Tobias Geerinckx-Rice ;;; Copyright =C2=A9 2017 Jos=C3=A9 Miguel S=C3=A1nchez Garc=C3=ADa ;;; Copyright =C2=A9 2017 Alex Griffin +;;; Copyrihgt =C2=A9 2017 Brendan Tildesley =20 ;;; ;;; This file is part of GNU Guix. ;;; @@ -518,6 +519,64 @@ fonts are intended to support the characters necessa= ry to render or display text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.") (license license:silofl1.1))) =20 +(define-public font-cns11643 + (package + (name "font-cns11643") + (version "98.1.20170405") + (source (origin + (method url-fetch) + (uri "http://www.cns11643.gov.tw/AIDB/Open_Data.zip") + (sha256 + (base32 + "1kyfrwamr8zpdp4qw3z9j3cimhsvr4xd05dmxmfphiknlbr6d455"))= )) + (outputs '("out" "tw-kai" "tw-sung")) + (build-system trivial-build-system) + (native-inputs + `(("unzip" ,unzip))) + (arguments + `(#:modules ((guix build utils)) + #:builder + (begin + (use-modules (guix build utils)) + (let* ((font-dir "/share/fonts/truetype/cns11643") + (out (string-append %output font-dir)) + (unzip (string-append + (assoc-ref %build-inputs "unzip") "/bin/unzip")) + (tw-kai (string-append + (assoc-ref %outputs "tw-kai") font-dir)) + (tw-sung (string-append + (assoc-ref %outputs "tw-sung") font-dir))) + (system* unzip (assoc-ref %build-inputs "source")) + (chdir "Open_Data/Fonts/") + (install-file "TW-Kai-98_1.ttf" tw-kai) + (install-file "TW-Sung-98_1.ttf" tw-sung) + (install-file "TW-Kai-98_1.ttf" out) + (install-file "TW-Kai-Ext-B-98_1.ttf" out) + (install-file "TW-Kai-Plus-98_1.ttf" out) + (install-file "TW-Sung-98_1.ttf" out) + (install-file "TW-Sung-Ext-B-98_1.ttf" out) + (install-file "TW-Sung-Plus-98_1.ttf" out))))) + (home-page "http://www.cns11643.gov.tw/AIDB/welcome.do") + (synopsis "CJK TrueType fonts, TW-Kai and TW-Sung") + (description + "@code{CNS 11643} character set (Chinese National Standard, or Chin= ese +Standard Interchange Code) is the standard character set of the Republic= of +China (Taiwan) for Chinese Characters and other Unicode symbols. Contai= ned +are six TrueType fonts based on two script styles, Regular Script (Kai),= and +Sung/Ming Script, each with three variants: + +@itemize +@item @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of thous= ands +of CJK characters from frequency tables published by the Taiwanese +Ministry of Education. ISO 10646 and Unicode compatible code encoding. +@item @code{Big-5 Plus}: Several thousand frequently used CJK characters +encoded in the user defined area of the Big-5 code. +@item @code{Big-5 Extended}: A Big-5 character set based on the +@code{Big-5 Plus} and @code{CNS 11643} character sets. +@end itemize\n") + (license (license:non-copyleft + "http://data.gov.tw/license")))) + (define-public font-wqy-zenhei (package (name "font-wqy-zenhei") --=20 2.12.2 --------------AA7B1349E44EBA07EA156791--