guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: Add font-cns11643.


From: Marius Bakke
Subject: 01/02: gnu: Add font-cns11643.
Date: Mon, 1 May 2017 18:59:07 -0400 (EDT)

mbakke pushed a commit to branch master
in repository guix.

commit 840b7136138951b7a43a8cda1b16f88a5ce951c2
Author: Brendan Tildesley <address@hidden>
Date:   Sat Apr 29 04:30:48 2017 +1000

    gnu: Add font-cns11643.
    
     * gnu/packages/fonts.scm (font-cns11643): New variable.
    
    Signed-off-by: Marius Bakke <address@hidden>
---
 gnu/packages/fonts.scm | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 1873c76..4d882b3 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -18,6 +18,7 @@
 ;;; Copyright © 2017 José Miguel Sánchez García <address@hidden>
 ;;; Copyright © 2017 Alex Griffin <address@hidden>
 ;;; Copyright © 2017 Clément Lassieur <address@hidden>
+;;; Copyright © 2017 Brendan Tildesley <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -522,6 +523,66 @@ fonts are intended to support the characters necessary to 
render or display
 text in Simplified Chinese, Traditional Chinese, Japanese, and Korean.")
     (license license:silofl1.1)))
 
+(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
+                "02kb3bwjrra0k2hlr2p8xswd2y0xs6j8d9vm6yrby734h02a40qf"))))
+    (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
+                      (assoc-ref %outputs "out") font-dir))
+                (tw-kai (string-append
+                         (assoc-ref %outputs "tw-kai") font-dir))
+                (tw-sung (string-append
+                          (assoc-ref %outputs "tw-sung") font-dir))
+                (unzip (string-append
+                        (assoc-ref %build-inputs "unzip") "/bin/unzip")))
+           (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)
+           #t))))
+    (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 Chinese
+Standard Interchange Code) is the standard character set of the Republic of
+China (Taiwan) for Chinese Characters and other Unicode symbols.  Contained
+are six TrueType fonts based on two script styles, Regular script (Kai), and
+Sung/Ming script, each with three variants:
+
address@hidden
address@hidden @code{CNS 11643} (@code{TW-Kai} and @code{TW-Sung}): Tens of 
thousands
+of CJK characters from frequency tables published by the Taiwanese
+Ministry of Education.  ISO 10646 and Unicode compatible encoding.
address@hidden @code{Big-5 Plus}: Several thousand frequently used CJK 
characters
+encoded in the user defined area of the Big-5 code.
address@hidden @code{Big-5 Extended}: A Big-5 character set based on the
address@hidden Plus} and @code{CNS 11643} character sets.
address@hidden itemize\n")
+    (license (license:non-copyleft
+              "http://data.gov.tw/license";)))) ; CC-BY 4.0 compatible
+
 (define-public font-wqy-zenhei
   (package
     (name "font-wqy-zenhei")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]