Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package fonts-noto-cjk

The version fonts-noto-cjk/1:1.004+repack2-2 add a configuration file so
that it can use different variants of fonts based on different locale
(ja, ko, zh_cn, zh_tw).

(include/attach the debdiff against the package in testing)

unblock fonts-noto-cjk/1:1.004+repack2-2

-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

-- 
ChangZhuo Chen (陳昌倬) <czc...@debian.org>
Debian Developer (https://nm.debian.org/public/person/czchen)
Key fingerprint = BA04 346D C2E1 FE63 C790  8793 CC65 B0CD EC27 5D5B
diff -Nru fonts-noto-cjk-1.004+repack2/debian/70-fonts-noto-cjk.conf fonts-noto-cjk-1.004+repack2/debian/70-fonts-noto-cjk.conf
--- fonts-noto-cjk-1.004+repack2/debian/70-fonts-noto-cjk.conf	1970-01-01 08:00:00.000000000 +0800
+++ fonts-noto-cjk-1.004+repack2/debian/70-fonts-noto-cjk.conf	2017-02-13 22:38:48.000000000 +0800
@@ -0,0 +1,147 @@
+<?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 Sans 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 Sans 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">
+            <string>Noto Sans 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">
+            <string>Noto Sans CJK TC</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">
+            <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">
+            <string>Noto Sans CJK TC</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">
+            <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">
+            <string>Noto Sans Mono CJK TC</string>
+        </edit>
+    </match>
+</fontconfig>
diff -Nru fonts-noto-cjk-1.004+repack2/debian/changelog fonts-noto-cjk-1.004+repack2/debian/changelog
--- fonts-noto-cjk-1.004+repack2/debian/changelog	2016-05-04 22:51:24.000000000 +0800
+++ fonts-noto-cjk-1.004+repack2/debian/changelog	2017-02-13 22:40:52.000000000 +0800
@@ -1,3 +1,10 @@
+fonts-noto-cjk (1:1.004+repack2-2) unstable; urgency=medium
+
+  * Add 70-fonts-noto-cjk.conf to select properly font based on lang.
+    (Closes: #854772)
+
+ -- ChangZhuo Chen (陳昌倬) <czc...@debian.org>  Mon, 13 Feb 2017 22:40:52 +0800
+
 fonts-noto-cjk (1:1.004+repack2-1) unstable; urgency=medium
 
   * Repack with seven OTC fonts instead of one Super OTC font to fix display
diff -Nru fonts-noto-cjk-1.004+repack2/debian/fonts-noto-cjk.install fonts-noto-cjk-1.004+repack2/debian/fonts-noto-cjk.install
--- fonts-noto-cjk-1.004+repack2/debian/fonts-noto-cjk.install	2016-05-04 22:51:24.000000000 +0800
+++ fonts-noto-cjk-1.004+repack2/debian/fonts-noto-cjk.install	2017-02-13 22:38:48.000000000 +0800
@@ -7,3 +7,4 @@
 NotoSansCJK-Thin.ttc /usr/share/fonts/opentype/noto/
 
 NEWS /usr/share/doc/fonts-noto-cjk/
+debian/70-fonts-noto-cjk.conf etc/fonts/conf.avail/
diff -Nru fonts-noto-cjk-1.004+repack2/debian/fonts-noto-cjk.links fonts-noto-cjk-1.004+repack2/debian/fonts-noto-cjk.links
--- fonts-noto-cjk-1.004+repack2/debian/fonts-noto-cjk.links	1970-01-01 08:00:00.000000000 +0800
+++ fonts-noto-cjk-1.004+repack2/debian/fonts-noto-cjk.links	2017-02-13 22:38:48.000000000 +0800
@@ -0,0 +1 @@
+etc/fonts/conf.avail/70-fonts-noto-cjk.conf etc/fonts/conf.d/70-fonts-noto-cjk.conf

Attachment: signature.asc
Description: PGP signature

Reply via email to