How to make man outputs in English look in good shape?


 
Thread Tools Search this Thread
Operating Systems Solaris How to make man outputs in English look in good shape?
# 1  
Old 02-20-2010
How to make man outputs in English look in good shape?

Hi,

My question is how to make man outputs in English look in good shape.

I use OpenSolais with a locale setting "LANG=ja_JP.UTF-8". Under this circumstance running "man something" shows Japanese translated man pages, but I need to read original English man explanations occasionally.
"LANG=C man something" or "LANG=C ; export LANG" changes man page in English, however the outputs of some man pages (not all) crush out of good format and are hard to read.

Could someone please help me on how to make it in a good format?
Thank you,

My usual locale settings
Code:
$ locale
LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES=ja_JP.UTF-8
LC_ALL=
$

After changing LANG, then ran "man sar" command as an example
Code:
$ LANG=C ; export LANG
$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES=ja_JP.UTF-8
LC_ALL=
$
$ man sar

                           sar(1)

sar -

sar [-aAbcdgkmpqruvwy] [-o filename] t [n]

sar [-aAbcdgkmpqruvwy] [-e time] [-f filename] [-i sec]
 [-s time]

sar

t                                              n
t
5       t
(
5                                         sar
)
-o

filename   n
1

sar
                                  filename
-f

/var/adm/sa/sadd                                         (dd
)
-s   -e
hh[:mm[:ss]]        time    -i
                           sec

                              sar

-a
            :
            iget/s, namei/s, dirblk/s

/tmp/mpj_a4.e


Last edited by Franklin52; 02-20-2010 at 07:34 AM.. Reason: Please use code tags!
# 2  
Old 02-21-2010
IF I understand - you CAN read the man pages in Japanese, but you cannot read the exact same man pages in English.

Changing locale does not change the content (Japanese) of the man pages, it will not translate from Japanese to English.

If you have a separate set of man pages that are English text, then reset MANPATH to point to them.

When you switch back to Japanese, reset MANPATH again.
# 3  
Old 02-21-2010
Hello Jim,
Quote:
IF I understand - you CAN read the man pages in Japanese, but you cannot read the exact same man pages in English.
I can read the Japanese translated version man pages. I ALSO CAN call the original English ones by changing the local. I am aware that they are different and that changing the local can not translate the contents themselves.

The problem is the English ones appear out of good proportion on screen when I call them by changing to LANG=C on my Japanese OpenSolaris env... Extra spaces are inserted between the words as if the pages are taken apart and broken.

Quote:
If you have a separate set of man pages that are English text, then reset MANPATH to point to them.
I see...I will go with your suggestion. This could handle my situation much better, I guess.

Thank you for the good tip!

Fragile_it
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script to add root element and remove to make it good

Hi All, I have a situation to parse a file with following limitations: 2) The XML is not proper as it has no fix root tag rather have multiple XML in a single XML. or you can say multiple root elements. This file will be huge in size. So before i think of some good solution to parse it, i... (1 Reply)
Discussion started by: peekuabc
1 Replies

2. Shell Programming and Scripting

create outputs from other command outputs

hi friends, The code: i=1 while do filename=`/usr/bin/ls -l| awk '{ print $9}'` echo $filename>>summary.csv #Gives the name of the file stored at column 9 count=`wc -l $filename | awk '{print $1}'` echo $count>>summary.csv #Gives just the count of lines of file "filename" i=`expr... (1 Reply)
Discussion started by: rajsharma
1 Replies

3. Solaris

man and ldm man

According to Sun documentation (Ldoms 1.1 Administration Guide), To access the ldm(1M) man page, add the directory path /opt/SUNWldm/man to the variable $MANPATH. When I add the lines: MANPATH=$MANPATH:/opt/SUNWldm/man export MANPATH to .profile, exit root and re-login, I would have "man ldm"... (5 Replies)
Discussion started by: StarSol
5 Replies

4. UNIX for Dummies Questions & Answers

any good book on make utilities

could any one suggest me any good book on unix make utilities. (1 Reply)
Discussion started by: useless79
1 Replies

5. UNIX for Dummies Questions & Answers

is there kind of good utility that convert make files to dsp?

Hello all im looking for some kind of utility that convert make files to dsp files is there any kind of tool/script that does this job? thanks (1 Reply)
Discussion started by: umen
1 Replies

6. Shell Programming and Scripting

V shape

Hi, Im new to UNIX and figured I should sign up to this board to get some help. I was wondering if someone can help me out with a CShell script. Im trying to get it to display a V shape of the word school. Using a while loop i.e S S C C H H OO L (1 Reply)
Discussion started by: SilverFang
1 Replies

7. Shell Programming and Scripting

shape up the script

HI all ! does anyone have an idea how can i make a script look better ?? what i mean is thah its a menu that is being activated with case options. i need it to look better , is there a way to do it on unix ?? (except with ==== & ****** ) 10x alot bye (1 Reply)
Discussion started by: udi
1 Replies
Login or Register to Ask a Question