Bug#848030: groff: Please add zh.tmac to fix Chinese wordbreaking problem

2016-12-13 Thread Boyuan Yang
在 2016年12月13日星期二 SGT 下午4:13:44,Colin Watson 写道:
> On Tue, Dec 13, 2016 at 11:54:31PM +0800, Boyuan Yang wrote:
> > However I am still a bit confused about the auto-detection of languages by
> > man-db according to file path. I installed the latest packages (man-db and
> > groff-base), but "man man" under a Chinese locale (zh_CN.UTF-8) does not
> > load the zh.tmac file unless I modify it and add a ".mso zh.tmac"
> > explicitly into the man page file. Did I miss something?
> 
> What version of man-db do you have?  You'll need 2.7.6.1-2.

Oh sorry my fault. It seems that the new man-db hasn't been installed into 
archive yet. Built from source and tested, everything is great.

--
Boyuan Yang


signature.asc
Description: This is a digitally signed message part.


Bug#848030: groff: Please add zh.tmac to fix Chinese wordbreaking problem

2016-12-13 Thread Colin Watson
On Tue, Dec 13, 2016 at 11:54:31PM +0800, Boyuan Yang wrote:
> However I am still a bit confused about the auto-detection of languages by 
> man-db according to file path. I installed the latest packages (man-db and  
> groff-base), but "man man" under a Chinese locale (zh_CN.UTF-8) does not load 
> the zh.tmac file unless I modify it and add a ".mso zh.tmac" explicitly into 
> the man page file. Did I miss something?

What version of man-db do you have?  You'll need 2.7.6.1-2.

-- 
Colin Watson   [cjwat...@debian.org]



Bug#848030: groff: Please add zh.tmac to fix Chinese wordbreaking problem

2016-12-13 Thread Boyuan Yang
在 2016年12月13日星期二 SGT 下午1:13:21,Colin Watson 写道:
> Thanks.  Upload on its way, and I also uploaded man-db with a
> cherry-pick of
> http://git.savannah.gnu.org/cgit/man-db.git/commit/?id=d450d4c2d3c09a629ef95
> d02d250a6cb290764ca so that the macro file is loaded automatically.  Even to
> my
> non-Chinese-reader's eye it looks much better now!

Hi Colin,

Thanks for the upload! Having zh.tmac inside system by default is a great leap 
forward!

However I am still a bit confused about the auto-detection of languages by 
man-db according to file path. I installed the latest packages (man-db and  
groff-base), but "man man" under a Chinese locale (zh_CN.UTF-8) does not load 
the zh.tmac file unless I modify it and add a ".mso zh.tmac" explicitly into 
the man page file. Did I miss something?

Thanks,
Boyuan Yang

signature.asc
Description: This is a digitally signed message part.


Bug#848030: groff: Please add zh.tmac to fix Chinese wordbreaking problem

2016-12-13 Thread Colin Watson
On Tue, Dec 13, 2016 at 07:29:06PM +0800, Boyuan Yang wrote:
> I am writing here in hope that we can cherry-pick one upstream commit to fix
> the work-breaking problem in groff.
> 
> Upstream bug: https://savannah.gnu.org/bugs/?44941
> Upstream commit:
> http://git.savannah.gnu.org/cgit/groff.git/commit/?id=ab3cf0445c3b7474680ed6451e0ec36ba2febe3c
> 
> That would help improve the appearance of Chinese man pages *a lot*.

Thanks.  Upload on its way, and I also uploaded man-db with a
cherry-pick of
http://git.savannah.gnu.org/cgit/man-db.git/commit/?id=d450d4c2d3c09a629ef95d02d250a6cb290764ca
so that the macro file is loaded automatically.  Even to my
non-Chinese-reader's eye it looks much better now!

-- 
Colin Watson   [cjwat...@debian.org]



Bug#848030: groff: Please add zh.tmac to fix Chinese wordbreaking problem

2016-12-13 Thread Boyuan Yang
Source: groff
Version: 1.22.3
Severity: wishlist
Tags: l10n

Hello,

I am writing here in hope that we can cherry-pick one upstream commit to fix
the work-breaking problem in groff.

Upstream bug: https://savannah.gnu.org/bugs/?44941
Upstream commit:
http://git.savannah.gnu.org/cgit/groff.git/commit/?id=ab3cf0445c3b7474680ed6451e0ec36ba2febe3c

That would help improve the appearance of Chinese man pages *a lot*.

Many thanks!



-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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