From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 30 12:31:09 2020 Received: (at submit) by debbugs.gnu.org; 30 Apr 2020 16:31:09 +0000 Received: from localhost ([127.0.0.1]:47546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUC5Z-0003KT-G1 for submit@debbugs.gnu.org; Thu, 30 Apr 2020 12:31:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:37506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUC5W-0003He-Rk for submit@debbugs.gnu.org; Thu, 30 Apr 2020 12:31:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49718) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUC5V-00051G-30 for guix-patches@gnu.org; Thu, 30 Apr 2020 12:31:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jUC5T-0000SI-TE for guix-patches@gnu.org; Thu, 30 Apr 2020 12:31:00 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:35454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jUC5S-0000Qj-VU for guix-patches@gnu.org; Thu, 30 Apr 2020 12:30:59 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id e645c91b for ; Thu, 30 Apr 2020 16:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type; s=dkim; bh=y1S NA7iTB6VVaq8sx+DOP4lJEVdAKX8bBn0pwf8BdsA=; b=bu1Lb2tUCgqffsqoMdm Em4WuXqEkt1z7SbbEbVBGV+PKwIsbeB12YHhUAXcrHeS/nOeSF/cHXIY7tYvvrti 8z/jp1TEAAcN89YdkGGy3VXUARzuGWUSuPu3FKz0YBqek37S65a9WZm9b1AhcFnG akvD1m268og90/tU1nzJC4amOr0YYMSJNPip687HY9KwrGyKKYOg1iW1ZY7hMQVg acRSh/Vij1yNJaHe8zqGXtuCD88HWZ2yndDqhQ9rAHU6zELxLXe6x8t5KqTXGh+c 1UoktlKu0A0NSlStzYcwsiUENEZobEUV7JbmfNUL++91h0JqzlMu0l3Gi2WfQ2xe ZEQ== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 4cb9b9c1 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Thu, 30 Apr 2020 16:30:51 +0000 (UTC) Date: Thu, 30 Apr 2020 18:30:37 +0200 From: Julien Lepiller To: guix-patches@gnu.org Subject: [PATCH] gnu: Add font-api-mj-mincho Message-ID: <20200430182709.6b378b1e@tachikoma.lepiller.eu> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/x24KA4qkDuCnTOhMNgm7e3t" Received-SPF: none client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:5884:8208::1 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --MP_/x24KA4qkDuCnTOhMNgm7e3t Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, This patch adds a Japanese font (I recently learned about hentaigana, and wasn't able to display them, this font solved the issue for me). The only problem with this package is the license: it sounds like a free software license to me, but it's not one of the standard ones. The license is available in Japanese and English in the same file in the source, and also at the bottom of the home page (you have to click on "English" to see the English version). I tried to translate the first sentence of the home page to English, but my Japanese is limited and I wasn't able to make much sense of the grammar construction: IPAmj=E6=98=8E=E6=9C=9D=E3=83=95=E3=82=A9=E3=83=B3=E3=83=88=E3=81=AF=E3=80= =81=E4=BA=BA=E5=90=8D=E3=81=AE=E8=A1=A8=E8=A8=98=E7=AD=89=E3=81=A7=E3=80=81= =E7=B4=B0=E3=81=8B=E3=81=AA=E5=AD=97=E5=BD=A2=E3=81=AE=E5=B7=AE=E7=95=B0=E3= =82=92=E7=89=B9=E5=88=A5=E3=81=AB=E4=BD=BF=E3=81=84=E5=88=86=E3=81=91=E3=82= =8B=E5=BF=85=E8=A6=81=E3=81=AE=E3=81=82=E3=82=8B=E6=A5=AD=E5=8B=99=E7=AD=89= =E3=81=A7=E3=81=AE=E6=B4=BB=E7=94=A8=E3=82=92=E6=83=B3=E5=AE=9A=E3=81=97=E3= =81=9F=E3=83=95=E3=82=A9=E3=83=B3=E3=83=88=E3=81=A7=E3=81=99=E3=80=82 If someone can do better (or maybe some other part of the website gives a better description?), I'd be glad to use their version! --MP_/x24KA4qkDuCnTOhMNgm7e3t Content-Type: text/x-patch Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename=0001-gnu-Add-font-api-mj-mincho.patch =46rom 4ff2df4a374684570be8a9b0160c640a49f69c39 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Thu, 30 Apr 2020 18:19:11 +0200 Subject: [PATCH] gnu: Add font-api-mj-mincho. * gnu/packages/fonts.scm (font-api-mj-mincho): New variable. --- gnu/packages/fonts.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm index dbc0c4f9d6..12e1d7c383 100644 --- a/gnu/packages/fonts.scm +++ b/gnu/packages/fonts.scm @@ -32,6 +32,7 @@ ;;; Copyright =C2=A9 2020 Amin Bandali ;;; Copyright =C2=A9 2020 Michael Rohleder ;;; Copyright =C2=A9 2020 John Soo +;;; Copyright =C2=A9 2020 Julien Lepiller ;;; ;;; This file is part of GNU Guix. ;;; @@ -1670,3 +1671,35 @@ always uses Farsi digits, and does not include Latin= glyphs from Roboto. (license:x11-style ; ...the Bitstream Vera typeface "file://LICENSE" "Bitstream Vera License") license:asl2.0)))) ; Latin glyphs from Roboto + +(define-public font-ipa-mj-mincho + (package + (name "font-ipa-mj-mincho") + (version "006.01") + (source (origin + (method url-fetch/zipbomb) + (uri (string-append "https://mojikiban.ipa.go.jp/OSCDL/IPAmj= Mincho" + "/ipamjm" (string-join (string-split ver= sion #\.) "") + ".zip")) + (sha256 + (base32 + "0s2vs9p7vd7ajnn6c2icli069sjwi4d45a39fczqpwwn507lwj9m")))) + (build-system font-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (let ((doc-dir (string-append (assoc-ref outputs "out") + "/share/doc/font-ipa-mj-mincho"= ))) + (mkdir-p doc-dir) + (copy-file "Readme.txt" (string-append doc-dir "/README")) + (copy-file "IPA_Font_License_Agreement_v1.0.txt" + (string-append doc-dir "/LICENSE")) + #t)))))) + (home-page "https://mojikiban.ipa.go.jp/1300.html") + (synopsis "Japanese font from the Information-technology Promotion Age= ncy") + (description "MJM Mincho is a font that aims at, for example, allowing= you +to write people's name, or for formal business situations where it is nece= ssary +to have a detailed and proper character style.") + (license (license:non-copyleft "IPA_Font_License_Agreement_v1.0.txt"))= )) --=20 2.26.0 --MP_/x24KA4qkDuCnTOhMNgm7e3t--