Re: garbages in man page output

2010-02-02 Thread s. keeling
Camaleón noela...@gmail.com:
  On Fri, 29 Jan 2010 18:13:43 +, T o n g wrote:
  On Fri, 29 Jan 2010 08:55:07 +, Camaleón wrote:
  
  Or try by appending -d for debugging.
  
  Here's it. What's wrong?
  
  $ LANG=en_US.UTF-8 man -d xrandr

I'm not sure I understand the problem, but in X, try:

   LOCALE=utf-8 xman -notopbox -bothshown

I have that in ~/.fluxbox/fluxbox-menu:

   [exec] (Xman) {LOCALE=utf-8 xman -notopbox -bothshown} 

and it displays manpages with no flaws so far that I've seen (and I
have seen the flaws you mention at CLI man blah).  GL.


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: garbages in man page output

2010-01-30 Thread Camaleón
On Fri, 29 Jan 2010 18:13:43 +, T o n g wrote:

 On Fri, 29 Jan 2010 08:55:07 +, Camaleón wrote:
 
 Or try by appending -d for debugging.
 
 Here's it. What's wrong?
 
 -- 
 $ LANG=en_US.UTF-8 man -d xrandr
 [ . . . ]

(...)

 page_encoding = ISO-8859-1
 source_encoding = ISO-8859-1
 cat_charset = ANSI_X3.4-1968
 locale_charset = UTF-8
 roff_device (locale) = utf8
 roff_encoding = ISO-8859-1
 output_encoding = UTF-8

Dunno what is wrong in your side. Here is my output (lenny):

***
s...@stt008:~$ LANG=en_US.UTF-8 man -d xrandr 
(...)
page_encoding = ISO-8859-1
source_encoding = ISO-8859-1
cat_charset = ANSI_X3.4-1968
locale_charset = ANSI_X3.4-1968
roff_device (locale) = ascii
roff_encoding = ANSI_X3.4-1968
output_encoding = ANSI_X3.4-1968
less_charset = ascii
***

And, without setting the $LANG:

***
s...@stt008:~$ man -d xrandr
(...)
page_encoding = ISO-8859-1
source_encoding = ISO-8859-1
cat_charset = ANSI_X3.4-1968
locale_charset = UTF-8
roff_device (locale) = utf8
roff_encoding = ISO-8859-1
output_encoding = UTF-8
less_charset = utf-8
***

P.S. Try with another (new-created) user.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: garbages in man page output

2010-01-29 Thread Camaleón
On Thu, 28 Jan 2010 15:29:42 +, T o n g wrote:

 On Thu, 28 Jan 2010 10:51:16 +, Camaleón wrote:
 
 I have garbage outputs in the man page of my newly installed Debian,
 
 Does this happen...?

(...)
 
  - For all users?
 
 Yes, with all man pages, under xterm and even console tty. For the rest,
 (konsole, other users, etc), I don't care.

You should care :-)

If another brand-new user account is not facing the problem, something 
could be wrong with your current user profile.

Anyway, test with another locale that can handle UTF-8:

LANG=en_US.UTF-8 man whatever

Or try by appending -d for debugging.

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: garbages in man page output

2010-01-29 Thread T o n g
On Fri, 29 Jan 2010 08:55:07 +, Camaleón wrote:

 test with another locale that can handle UTF-8:
 
 LANG=en_US.UTF-8 man whatever

No luck, still get the same garbage.

 Or try by appending -d for debugging.

Here's it. What's wrong?

--
$ LANG=en_US.UTF-8 man -d xrandr
[ . . . ]
Starting pipeline: zcat  /usr/share/man/man1/xrandr.1.gz [input: {0, 
/usr/share/man/man1/xrandr.1.gz}, output: {-1, NULL}]
Started zcat  /usr/share/man/man1/xrandr.1.gz, pid 3739
pre-processors `t' from default
page_encoding = ISO-8859-1
source_encoding = ISO-8859-1
cat_charset = ANSI_X3.4-1968
locale_charset = UTF-8
roff_device (locale) = utf8
roff_encoding = ISO-8859-1
output_encoding = UTF-8
Terminal width 80
Terminal width 80 within cat page range [80, 80]
format: 1, save_cat: 0, found: 1
Setting LESS to -ix8RmPm Manual page xrandr(1) ?ltline %lt?L/%L.:byte 
%bB?s/%s..?e (END):?pB %pB\%..$PM Manual page xrandr(1) ?ltline %lt?L/%L.:byte 
%bB?s/%s..?e (END):?pB %pB\%..$ifMRdh20
Setting MAN_PN to xrandr(1)
++priv_drop_count = 1
Starting pipeline: /usr/bin/zsoelim | /usr/lib/man-db/manconv -f 
UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e UTF-8 | tbl | nroff -mandoc 
-Tutf8 [input: {-1, NULL}, output: {-1, NULL}]
Started /usr/bin/zsoelim, pid 3740
Started /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE, pid 3742
Started preconv, pid 3744
Started tbl, pid 3745
Started nroff, pid 3746
Starting pipeline: less [input: {-1, NULL}, output: {0, NULL}]
Active processes (1):
  less (3749) - 0
--priv_drop_count = 0
hash_free: 6 entries, 6 (100%) unique
Starting pipeline: zcat  /usr/share/man/man1/xrandr.1.gz [input: {0, 
/usr/share/man/man1/xrandr.1.gz}, output: {-1, NULL}]
Started zcat  /usr/share/man/man1/xrandr.1.gz, pid 3739
pre-processors `t' from default
page_encoding = ISO-8859-1
source_encoding = ISO-8859-1
cat_charset = ANSI_X3.4-1968
locale_charset = UTF-8
roff_device (locale) = utf8
roff_encoding = ISO-8859-1
output_encoding = UTF-8
Terminal width 80
Terminal width 80 within cat page range [80, 80]
format: 1, save_cat: 0, found: 1
Setting LESS to -ix8RmPm Manual page xrandr(1) ?ltline %lt?L/%L.:byte 
%bB?s/%s..?e (END):?pB %pB\%..$PM Manual page xrandr(1) ?ltline %lt?L/%L.:byte 
%bB?s/%s..?e (END):?pB %pB\%..$ifMRdh20
Setting MAN_PN to xrandr(1)
++priv_drop_count = 1
Starting pipeline: /usr/bin/zsoelim | /usr/lib/man-db/manconv -f 
UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e UTF-8 | tbl | nroff -mandoc 
-Tutf8 [input: {-1, NULL}, output: {-1, NULL}]
Started /usr/bin/zsoelim, pid 3740
Started /usr/lib/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE, pid 3742
Started preconv, pid 3744
Started tbl, pid 3745
Started nroff, pid 3746
Starting pipeline: less [input: {-1, NULL}, output: {0, NULL}]
Active processes (1):
  less (3749) - 0
--priv_drop_count = 0
hash_free: 6 entries, 6 (100%) unique
--

Thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: garbages in man page output

2010-01-28 Thread Camaleón
On Thu, 28 Jan 2010 03:30:28 +, T o n g wrote:

 I have garbage outputs in the man page of my newly installed Debian,

Does this happen...?

- With all man pages
- Under any terminal (gnome-terminal, xterm, konsole...)?
- Even on tty?
- For all users?

Greetings,

-- 
Camaleón


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: garbages in man page output

2010-01-28 Thread T o n g
On Thu, 28 Jan 2010 10:51:16 +, Camaleón wrote:

 I have garbage outputs in the man page of my newly installed Debian,
 
 Does this happen...?
 
 - With all man pages
 - Under any terminal (gnome-terminal, xterm, konsole...)? - Even on tty?
 - For all users?

Yes, with all man pages, under xterm and even console tty. 
For the rest, (konsole, other users, etc), I don't care.

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



garbages in man page output

2010-01-27 Thread T o n g
Hi,

I have garbage outputs in the man page of my newly installed Debian, like:

   There  are  a  few  global options. Other options
   modify the last output that is specified in  earâ
8090
   lier  parameters  in  the  command line. Multiple
   outputs may be modified at the same time by passâ
8090
   ing  multiple  --output  options followed immediâ
8090
   ately by their corresponding modifying options.

Previously, I fix the problem with LANG='C' or LANG=en, but it doesn't 
work now. 

Please help. 

thanks

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Unusual entity #8482; in man page output; how to view it

2004-03-17 Thread Number Six
dh_make generates a template manpage.xml which can be run through
xsltproc using
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
to produce a manpage which may be viewed with nroff -man.

The input productnameDebian/productname produces the output:
Debian#8482;

My locale is en_US.  I assume this character is supposed to be
Trademark or Registered Trademark, but unicode 8482 is a Japanese
character.

What is it, and how to I view it, and is it Correct Behavior (TM) ?

///
If you need to see what I mean make a dh_make project and run:

$ xsltproc --nonet -o debian/ 
/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl 
debian/manpage.xml.ex 2/dev/null; nroff -man debian/x-package.SECTION | 
tail -n 17 | head -n 2
This manual page was written by Tom Ballard [EMAIL PROTECTED] for the
Debian#8482; system (but may be used by others). Permission is granted


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Unusual entity #8482; in man page output; how to view it

2004-03-17 Thread Colin Watson
On Wed, Mar 17, 2004 at 12:12:39AM -0800, Number Six wrote:
 dh_make generates a template manpage.xml which can be run through
 xsltproc using
 /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
 to produce a manpage which may be viewed with nroff -man.
 
 The input productnameDebian/productname produces the output:
 Debian#8482;
 
 My locale is en_US.  I assume this character is supposed to be
 Trademark or Registered Trademark, but unicode 8482 is a Japanese
 character.

Unicode *hex* 8482 is a Japanese character. Decimal 8482 is hex 2122,
and U+2122 is TRADE MARK SIGN.

 What is it, and how to I view it, and is it Correct Behavior (TM) ?

It's not correct, since #...;-style entities aren't valid *roff input.
It should be using \(tm instead.

I've never been all that convinced by trying to use docbook for man
pages (particularly not by the output), but I *am* the groff maintainer,
so I guess I'm biased ...

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-06-04 Thread Andy Saxena
On Sun, Jun 02, 2002 at 10:01:20PM +0100, Colin Watson wrote:
 On Sat, Jun 01, 2002 at 10:54:22PM -0400, Andy Saxena wrote:
  On Fri, May 31, 2002 at 06:53:50PM +0200, Pietro Cagnoni wrote:
   Matthew Daubenspeck wrote:
   Is there an easy way to output man pages without all of the underlined
   text? I want to redirect man page output to text type files, but all
   of the files include squares or ^H^H^H all over the place...
   
   you already got good answers to your question, but if you need
   the text format to print it, the best thing is to use
   man -t something, which will give you nicely formatted
   postscript output.
  
  zcat /usr/share/man/man5/html2textrc.5.gz | groff -t -mandoc  print.ps
 
 That's morally equivalent to 'man -t html2textrc  print.ps', but more
 cumbersome and less reliable (it will fail if the man page needs a
 preprocessor like tbl).
 

Yes, it is. One of these days I will change that alias. It seems to work
with signal (7). Maybe there's another example where my method fails.

Thanks for the correction,
Andy


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-06-04 Thread Colin Watson
On Sun, Jun 02, 2002 at 10:01:20PM +0100, Colin Watson wrote:
 On Sat, Jun 01, 2002 at 10:54:22PM -0400, Andy Saxena wrote:
  On Fri, May 31, 2002 at 06:53:50PM +0200, Pietro Cagnoni wrote:
   you already got good answers to your question, but if you need
   the text format to print it, the best thing is to use
   man -t something, which will give you nicely formatted
   postscript output.
  
  zcat /usr/share/man/man5/html2textrc.5.gz | groff -t -mandoc  print.ps
 
 That's morally equivalent to 'man -t html2textrc  print.ps', but more
 cumbersome and less reliable (it will fail if the man page needs a
 preprocessor like tbl).

I meant eqn and so on, of course - the -t flag to groff handles tbl ...

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-06-04 Thread prover
I'M NOT MEMER OF YOUR MAILING LISTS. MY MAIL IS : [EMAIL PROTECTED]
([EMAIL PROTECTED] IS ONLY FORWARD FROM [EMAIL PROTECTED]).

WHY THIS MAILS COME TO ME?
EVERY DAY COME TO ME 200 MAILS FROM YOUR MAILING LISTS.

CAN YOU DO SOMETHING WITH IT?

 THANK YOU.

- Original Message -
From: Andy Saxena [EMAIL PROTECTED]
To: debian-user@lists.debian.org
Sent: Tuesday, June 04, 2002 7:24 AM
Subject: Re: Man page output


 On Sun, Jun 02, 2002 at 10:01:20PM +0100, Colin Watson wrote:
  On Sat, Jun 01, 2002 at 10:54:22PM -0400, Andy Saxena wrote:
   On Fri, May 31, 2002 at 06:53:50PM +0200, Pietro Cagnoni wrote:
Matthew Daubenspeck wrote:
Is there an easy way to output man pages without all of the
underlined
text? I want to redirect man page output to text type files, but
all
of the files include squares or ^H^H^H all over the place...
   
you already got good answers to your question, but if you need
the text format to print it, the best thing is to use
man -t something, which will give you nicely formatted
postscript output.
  
   zcat /usr/share/man/man5/html2textrc.5.gz | groff -t -mandoc 
print.ps
 
  That's morally equivalent to 'man -t html2textrc  print.ps', but more
  cumbersome and less reliable (it will fail if the man page needs a
  preprocessor like tbl).
 

 Yes, it is. One of these days I will change that alias. It seems to work
 with signal (7). Maybe there's another example where my method fails.

 Thanks for the correction,
 Andy


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-06-04 Thread prover
I'M NOT MEMER OF YOUR MAILING LISTS. MY MAIL IS : [EMAIL PROTECTED]
([EMAIL PROTECTED] IS ONLY FORWARD FROM [EMAIL PROTECTED]).

WHY THIS MAILS COME TO ME?
EVERY DAY COME TO ME 200 MAILS FROM YOUR MAILING LISTS.

CAN YOU DO SOMETHING WITH IT?

 THANK YOU.

- Original Message -
From: Colin Watson [EMAIL PROTECTED]
To: debian-user@lists.debian.org
Sent: Tuesday, June 04, 2002 12:25 PM
Subject: Re: Man page output


 On Sun, Jun 02, 2002 at 10:01:20PM +0100, Colin Watson wrote:
  On Sat, Jun 01, 2002 at 10:54:22PM -0400, Andy Saxena wrote:
   On Fri, May 31, 2002 at 06:53:50PM +0200, Pietro Cagnoni wrote:
you already got good answers to your question, but if you need
the text format to print it, the best thing is to use
man -t something, which will give you nicely formatted
postscript output.
  
   zcat /usr/share/man/man5/html2textrc.5.gz | groff -t -mandoc 
print.ps
 
  That's morally equivalent to 'man -t html2textrc  print.ps', but more
  cumbersome and less reliable (it will fail if the man page needs a
  preprocessor like tbl).

 I meant eqn and so on, of course - the -t flag to groff handles tbl ...

 --
 Colin Watson  [EMAIL PROTECTED]


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-06-02 Thread Colin Watson
On Sat, Jun 01, 2002 at 10:54:22PM -0400, Andy Saxena wrote:
 On Fri, May 31, 2002 at 06:53:50PM +0200, Pietro Cagnoni wrote:
  Matthew Daubenspeck wrote:
  Is there an easy way to output man pages without all of the underlined
  text? I want to redirect man page output to text type files, but all
  of the files include squares or ^H^H^H all over the place...
  
  you already got good answers to your question, but if you need
  the text format to print it, the best thing is to use
  man -t something, which will give you nicely formatted
  postscript output.
 
 zcat /usr/share/man/man5/html2textrc.5.gz | groff -t -mandoc  print.ps

That's morally equivalent to 'man -t html2textrc  print.ps', but more
cumbersome and less reliable (it will fail if the man page needs a
preprocessor like tbl).

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Nav Keys in Man (was RE: Man page output)

2002-06-01 Thread Jeremy Turner
Another question related to manpages:

On other Linux boxes I've built (Mandrake, Redhat), whenever I view a
manpage I can use the arrow keys to navigate.  On the first Debian box I
built, I just got a 'more' navigation (spacebar or enter key).
Somewhere along the line, I installed something which allowed me to
actually navigate in the manpage with arrow keys (probably a dependency
on something else I installed).  Any idea which package will return this
feature?

Jeremy

 -Original Message-
 From: Pietro Cagnoni [mailto:[EMAIL PROTECTED] 
 Sent: Friday, May 31, 2002 11:54 AM
 To: Matthew Daubenspeck
 Cc: debian-user@lists.debian.org
 Subject: Re: Man page output
 
 
 Matthew Daubenspeck wrote:
  Is there an easy way to output man pages without all of the 
 underlined
  text? I want to redirect man page output to text type files, but all
  of the files include squares or ^H^H^H all over the place...
 
 you already got good answers to your question, but if you need
 the text format to print it, the best thing is to use
 man -t something, which will give you nicely formatted
 postscript output.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Nav Keys in Man (was RE: Man page output)

2002-06-01 Thread Hubert Chan
 Jeremy == Jeremy Turner [EMAIL PROTECTED] writes:

Jeremy Another question related to manpages: On other Linux boxes I've
Jeremy built (Mandrake, Redhat), whenever I view a manpage I can use
Jeremy the arrow keys to navigate.  On the first Debian box I built, I
Jeremy just got a 'more' navigation (spacebar or enter key).  Somewhere
Jeremy along the line, I installed something which allowed me to
Jeremy actually navigate in the manpage with arrow keys (probably a
Jeremy dependency on something else I installed).  Any idea which
Jeremy package will return this feature?

apt-get install less should do it.

-- 
Hubert Chan [EMAIL PROTECTED] - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.


pgpvPTMOojmp9.pgp
Description: PGP signature


RE: Nav Keys in Man (was RE: Man page output)

2002-06-01 Thread Jeremy Turner
Thanks!  I think I remember less being added on in a previous apt-get
install session on the first machine.

I find it funny that the way to not list manpages with 'more' is to
install 'less'.  Or maybe I haven't had enough caffeine today...

Jeremy

 -Original Message-
 From: Hubert Chan [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, June 01, 2002 4:09 PM
 To: debian-user@lists.debian.org
 Subject: Re: Nav Keys in Man (was RE: Man page output)
 
 
  Jeremy == Jeremy Turner [EMAIL PROTECTED] writes:
 
 Jeremy Another question related to manpages: On other Linux 
 boxes I've
 Jeremy built (Mandrake, Redhat), whenever I view a manpage I can use
 Jeremy the arrow keys to navigate.  On the first Debian box 
 I built, I
 Jeremy just got a 'more' navigation (spacebar or enter key). 
  Somewhere
 Jeremy along the line, I installed something which allowed me to
 Jeremy actually navigate in the manpage with arrow keys (probably a
 Jeremy dependency on something else I installed).  Any idea which
 Jeremy package will return this feature?
 
 apt-get install less should do it.
 
 -- 
 Hubert Chan [EMAIL PROTECTED] - http://www.uhoreg.ca/
 PGP/GnuPG key: 1024D/124B61FA
 Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
 Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.
 


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-06-01 Thread Andy Saxena
On Fri, May 31, 2002 at 06:53:50PM +0200, Pietro Cagnoni wrote:
 Matthew Daubenspeck wrote:
 Is there an easy way to output man pages without all of the underlined
 text? I want to redirect man page output to text type files, but all
 of the files include squares or ^H^H^H all over the place...
 
 you already got good answers to your question, but if you need
 the text format to print it, the best thing is to use
 man -t something, which will give you nicely formatted
 postscript output.
 
 pietro.
 

zcat /usr/share/man/man5/html2textrc.5.gz | groff -t -mandoc  print.ps

does a great job as well at producing a print.ps output, and you don't
have to setup a postscript printer that you need with man -t | lpr -Pps.

-Andy


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-05-31 Thread Pietro Cagnoni

Matthew Daubenspeck wrote:

Is there an easy way to output man pages without all of the underlined
text? I want to redirect man page output to text type files, but all
of the files include squares or ^H^H^H all over the place...


you already got good answers to your question, but if you need
the text format to print it, the best thing is to use
man -t something, which will give you nicely formatted
postscript output.

pietro.





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Man page output

2002-05-30 Thread Matthew Daubenspeck
Is there an easy way to output man pages without all of the underlined
text? I want to redirect man page output to text type files, but all
of the files include squares or ^H^H^H all over the place...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-05-30 Thread Robert_L
On Thursday 30 May 06:55, Matthew Daubenspeck wrote:
 Is there an easy way to output man pages without all of the underlined
 text? I want to redirect man page output to text type files, but all
 of the files include squares or ^H^H^H all over the place...

man ls | col -b ls.txt

all the best,
Robert_L


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Man page output

2002-05-30 Thread Colin Watson
On Thu, May 30, 2002 at 07:53:53PM -0400, Robert_L wrote:
 On Thursday 30 May 06:55, Matthew Daubenspeck wrote:
  Is there an easy way to output man pages without all of the underlined
  text? I want to redirect man page output to text type files, but all
  of the files include squares or ^H^H^H all over the place...
 
 man ls | col -b ls.txt

You might also want to use the -7 option to get rid of Latin-1
characters for things like continuation hyphens, depending on exactly
what kind of output you want.

Advance notice: groff will soon (version 1.18) start generating ANSI
escapes rather than the ^H characters of yore to do bold and underlining
and the like. I understand setting the GROFF_NO_SGR environment
variable, or using 'groff -c', will disable this.

-- 
Colin Watson  [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Man page output width

2001-07-12 Thread Paul D. Smith
Back a long time ago when I used to know roff in general, and groff in
particular, really well (at Data General I wrote a lot of docs using
groff, and talked to James a good bit about it), I took the tmac.an
macros and modified them to decrease the margin on the man pages
displayed on the TTY.

It is _SO_ annoying to lose at least 10 characters of perfectly good
space on the right of every single line, to a quite useless right hand
margin.

Unfortunately, that knowledge has passed out of my ever-shrinking set of
useful brain cells.

I see that there's an /etc/groff/man.local file which is loaded after
the normal tmac.an (or tmac.an-old or however that works--looks
confusing).  That seems promising.

However, I've completely forgotten what magic incantation I need to put
there to change the right-hand margin from 1 inch or whatever it
currently is to something more reasonable...

Hints, anyone?

-- 
---
 Paul D. Smith [EMAIL PROTECTED]HASMAT--HA Software Methods  Tools
 Please remain calm...I may be mad, but I am a professional. --Mad Scientist
---
   These are my opinions---Nortel Networks takes no responsibility for them.



Re: Man page output width

2001-07-12 Thread Colin Watson
[EMAIL PROTECTED] wrote:
Back a long time ago when I used to know roff in general, and groff in
particular, really well (at Data General I wrote a lot of docs using
groff, and talked to James a good bit about it), I took the tmac.an
macros and modified them to decrease the margin on the man pages
displayed on the TTY.

It is _SO_ annoying to lose at least 10 characters of perfectly good
space on the right of every single line, to a quite useless right hand
margin.

Unfortunately, that knowledge has passed out of my ever-shrinking set of
useful brain cells.

I see that there's an /etc/groff/man.local file which is loaded after
the normal tmac.an (or tmac.an-old or however that works--looks
confusing).  That seems promising.

However, I've completely forgotten what magic incantation I need to put
there to change the right-hand margin from 1 inch or whatever it
currently is to something more reasonable...

Try the .ll request (groff(7) mentions it). Note, though, that man-db
2.3.19 [1] sets this too if the terminal width is outside the range
where it can reasonably use the standard line length, and I've never
tested which one overrides the other. If you like, you could recompile
man-db to override this differently: edit src/man.c and search for
roff_line_length.

[1] Since you have an /etc/groff/man.local, I'm assuming you're on
testing or unstable - 2.3.19 is in unstable, and should be in
testing in a few days.

Cheers,

-- 
Colin Watson  [EMAIL PROTECTED]