Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] noto-fonts-cjk: add 70-noto-fonts-cjk.conf
@ 2020-12-27 14:39 tsung-ju
  2021-01-04  1:35 ` [PR PATCH] [Closed]: " tsung-ju
  0 siblings, 1 reply; 2+ messages in thread
From: tsung-ju @ 2020-12-27 14:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

There is a new pull request by tsung-ju against master on the void-packages repository

https://github.com/tsung-ju/void-packages noto-fonts-cjk
https://github.com/void-linux/void-packages/pull/27468

noto-fonts-cjk: add 70-noto-fonts-cjk.conf
Installs a configuration file to config.avail which sets the default font for Chinese, Japanese, and Korean to their corresponding Noto CJK variant. Would be useful for setting up Noto CJK as the default font for CJK languages.

A patch file from https://github.com/void-linux/void-packages/pull/27468.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-noto-fonts-cjk-27468.patch --]
[-- Type: text/x-diff, Size: 6439 bytes --]

From 18eb44c73ce240c5256e64da56e0841389acc7e3 Mon Sep 17 00:00:00 2001
From: Tsung-Ju Chiang <71379180+tsung-ju@users.noreply.github.com>
Date: Sun, 27 Dec 2020 21:59:41 +0800
Subject: [PATCH] noto-fonts-cjk: add 70-noto-fonts-cjk.conf

---
 srcpkgs/noto-fonts-cjk/files/conf.avail | 183 ++++++++++++++++++++++++
 srcpkgs/noto-fonts-cjk/template         |   3 +-
 2 files changed, 185 insertions(+), 1 deletion(-)
 create mode 100644 srcpkgs/noto-fonts-cjk/files/conf.avail

diff --git a/srcpkgs/noto-fonts-cjk/files/conf.avail b/srcpkgs/noto-fonts-cjk/files/conf.avail
new file mode 100644
index 00000000000..c72aa447811
--- /dev/null
+++ b/srcpkgs/noto-fonts-cjk/files/conf.avail
@@ -0,0 +1,183 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+    <match target="pattern">
+        <test name="lang">
+            <string>ja</string>
+        </test>
+        <test name="family">
+            <string>serif</string>
+        </test>
+        <edit name="family" mode="prepend">
+            <string>Noto Serif CJK JP</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>ko</string>
+        </test>
+        <test name="family">
+            <string>serif</string>
+        </test>
+        <edit name="family" mode="prepend">
+            <string>Noto Serif CJK KR</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-cn</string>
+        </test>
+        <test name="family">
+            <string>serif</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Serif CJK SC</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-tw</string>
+        </test>
+        <test name="family">
+            <string>serif</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Serif CJK TC</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-hk</string>
+        </test>
+        <test name="family">
+            <string>serif</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Serif CJK HK</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>ja</string>
+        </test>
+        <test name="family">
+            <string>sans-serif</string>
+        </test>
+        <edit name="family" mode="prepend">
+            <string>Noto Sans CJK JP</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>ko</string>
+        </test>
+        <test name="family">
+            <string>sans-serif</string>
+        </test>
+        <edit name="family" mode="prepend">
+            <string>Noto Sans CJK KR</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-cn</string>
+        </test>
+        <test name="family">
+            <string>sans-serif</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Sans CJK SC</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-tw</string>
+        </test>
+        <test name="family">
+            <string>sans-serif</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Sans CJK TC</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-hk</string>
+        </test>
+        <test name="family">
+            <string>sans-serif</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Sans CJK HK</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>ja</string>
+        </test>
+        <test name="family">
+            <string>monospace</string>
+        </test>
+        <edit name="family" mode="prepend">
+            <string>Noto Sans Mono CJK JP</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>ko</string>
+        </test>
+        <test name="family">
+            <string>monospace</string>
+        </test>
+        <edit name="family" mode="prepend">
+            <string>Noto Sans Mono CJK KR</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-cn</string>
+        </test>
+        <test name="family">
+            <string>monospace</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Sans Mono CJK SC</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-tw</string>
+        </test>
+        <test name="family">
+            <string>monospace</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Sans Mono CJK TC</string>
+        </edit>
+    </match>
+
+    <match target="pattern">
+        <test name="lang">
+            <string>zh-hk</string>
+        </test>
+        <test name="family">
+            <string>monospace</string>
+        </test>
+        <edit name="family" mode="prepend" binding="strong">
+            <string>Noto Sans Mono CJK HK</string>
+        </edit>
+    </match>
+</fontconfig>
diff --git a/srcpkgs/noto-fonts-cjk/template b/srcpkgs/noto-fonts-cjk/template
index 22494e46b3e..eee5e26b4cb 100644
--- a/srcpkgs/noto-fonts-cjk/template
+++ b/srcpkgs/noto-fonts-cjk/template
@@ -1,7 +1,7 @@
 # Template file for 'noto-fonts-cjk'
 pkgname=noto-fonts-cjk
 version=20190416
-revision=2
+revision=3
 _githash=be6c059ac1587e556e2412b27f5155c8eb3ddbe6
 wrksrc="noto-cjk-${_githash}"
 depends="font-util"
@@ -17,5 +17,6 @@ font_dirs="/usr/share/fonts/noto"
 
 do_install() {
 	install -Dm644 Noto*.ttc -t ${DESTDIR}/usr/share/fonts/noto
+	vinstall ${FILESDIR}/conf.avail 644 etc/fonts/conf.avail 70-noto-fonts-cjk.conf
 	vlicense LICENSE
 }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PR PATCH] [Closed]: noto-fonts-cjk: add 70-noto-fonts-cjk.conf
  2020-12-27 14:39 [PR PATCH] noto-fonts-cjk: add 70-noto-fonts-cjk.conf tsung-ju
@ 2021-01-04  1:35 ` tsung-ju
  0 siblings, 0 replies; 2+ messages in thread
From: tsung-ju @ 2021-01-04  1:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 403 bytes --]

There's a closed pull request on the void-packages repository

noto-fonts-cjk: add 70-noto-fonts-cjk.conf
https://github.com/void-linux/void-packages/pull/27468

Description:
Installs a configuration file to config.avail which sets the default font for Chinese, Japanese, and Korean to their corresponding Noto CJK variant. Would be useful for setting up Noto CJK as the default font for CJK languages.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-04  1:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-27 14:39 [PR PATCH] noto-fonts-cjk: add 70-noto-fonts-cjk.conf tsung-ju
2021-01-04  1:35 ` [PR PATCH] [Closed]: " tsung-ju

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).