LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-27-2016, 05:06 AM   #1
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Rep: Reputation: Disabled
Issue with man page formatting in Japanese


Keiichi SHIGA has translated all man pages for scripts in pkgtools and slackpkg packages to Japanese, thanks to him.

But there are formatting issues: some lines are not broken where they should and we see unexpected line justifications, see the attached pic.

Also, when running "man" with "most" as pager(1) I see warnings like these:
Code:
didier[~/Slint/repo/x86_64/slint-14.2/source/localization/wip]$ man ./ja.installpkg
<standard input>:28: warning [p 1, 2.7i]: cannot adjust line
<standard input>:32: warning [p 1, 3.5i]: can't break line
<standard input>:33: warning [p 1, 3.7i]: can't break line
<standard input>:39: warning [p 1, 5.0i]: cannot adjust line
<standard input>:43: warning [p 1, 5.8i]: cannot adjust line
<standard input>:43: warning [p 1, 6.0i]: can't break line
Of course the man pages are encoded in UTF-8 and GROFF_ENCODING is set to UTF-8.

If that matters the po4a application is used to convert the man pages to/from PO files.

I have uploaded the man pages in Japanese here.

Any clue appreciated, as usual.

(1) these warnings are not displayed if I use "less" but the result is the same.
Attached Thumbnails
Click image for larger version

Name:	_2016-11-27_18-26-45.jpg
Views:	53
Size:	94.5 KB
ID:	23630  
 
Old 11-28-2016, 09:12 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Original Poster
Rep: Reputation: Disabled
Follow-up

Well, man2html does a good job, I uploaded converted man pages that you can check with:
Code:
lftp -c "mirror http://slint.fr/testing/man_pages_ja/html/"
cd html
firefox *html
and Keiichi already stored the man pages on his website:
https://sites.google.com/site/slackwarejapanese/man

He also pointed me to the man-db package: https://slackbuilds.org/repository/14.2/system/man-db/ that will hopefully solve the formatting issue, thanks to B. Watson.

I will check after my afternoon walk, stay tuned.
 
Old 11-28-2016, 12:26 PM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Original Poster
Rep: Reputation: Disabled
More follow-up

I installed man-db and yes the man pages look better.

I consider replacing man by man-db in Slint as it better handles UTF-8 among other reasons but whether this change will occur in Slackware-current is of course up to Pat.

Debian ships man-db, so I assume that will be safe.

Last edited by Didier Spaier; 11-29-2016 at 03:17 AM.
 
Old 11-29-2016, 03:32 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,048

Original Poster
Rep: Reputation: Disabled
Pictures

Here are, from left to right, pics of "man-db" pages using "less" then "most" as pager, that you can compare with a "man" page using "most" (last on the right).

The issue using "man" also occurs with most of the man pages in Japanese shipped in Slackware.

As far as I am in concern this issue is solved using man-db.

To be complete I saw a few lines not wrapped using "most" with some other pages, but even then one can scroll horizontally using the left and right arrow keys. Or just use "less".
Attached Thumbnails
Click image for larger version

Name:	man-db_with_less.png
Views:	35
Size:	119.1 KB
ID:	23640   Click image for larger version

Name:	man-db_with_most.png
Views:	29
Size:	126.6 KB
ID:	23641   Click image for larger version

Name:	man_with_most.jpg
Views:	27
Size:	94.5 KB
ID:	23642  

Last edited by Didier Spaier; 11-29-2016 at 03:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
man page is not found although $MANPATH and man.conf changed Abbraxas Linux - Newbie 3 09-05-2011 06:40 PM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 08:52 AM
how to produce a text file from man w/o formatting? spyghost Linux - Newbie 2 07-30-2003 06:05 PM
Man Page Formatting nxny Linux - General 7 01-06-2003 07:59 PM
MAN page formatting incorrect via telnet/SSH pederslie Linux - Newbie 3 12-11-2002 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration