On Sun, Dec 5, 2010 at 9:22 PM, harsh gupta <[email protected]
> wrote:

> Is there a gui program where we could browse all the local
> documentation on our computer? Or is there any other alternate way to
> browse the documentation?
>
> My aim is to get quick access to all the documentation for any
> language rather than the usual (and slow) method of googling and then
> checking the top few links.
>
> the man command is not a solution to my problem as to man a function/
> command we have to know the name of the function to man it , whereas
> that is not always the case when we are coding in a language we have
> not used for long.
>
> Thanks,
> Harsh Gupta
>
> --
> l...@iitd - http://tinyurl.com/ycueutm
>


You can download manpages in html format  -
http://www.kernel.org/doc/man-pages/online/dir_all_alphabetic.html and place
in local directory.

Here is a small tip for GUI reading of a man page as pdf.

$gedit ~/gMan.sh

Add following item into gMan.sh files.

man -t $(zenity --entry --text "Which manpage you want to read?" ) | ps2pdf
- | okular - ;

Save and Close


$chmod +x ~/gMan.sh
$ gedit ~/Desktop/gMan.desktop

CopyPaste following items

#!/usr/bin/env xdg-open

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Icon[en_IN]=gnome-panel-launcher
Name[en_IN]=gMan
Exec=/home/user/gMan.sh
Comment[en_IN]=View Man page in command line
Name=gMan
Comment=View Man page in command line
Icon=gnome-panel-launcher


Replace *Exec=/home/user/gMan.sh by Exact Path of gMan.sh ie, replace user with
your home dir*
Save and close


You can drag and put this icon in gnome panel.

you need to install following

*sudo apt-get install zenity ps2pdf okular*


now can figure out a way to list all the installed Man pages on a system and
create a GUI using zenity or QT to display all available man page and when
user click an text, you trigger man -t $Answer | ps2pdf - | okular - ;
 command to display man page.

Or you can use QTWebView to display a man page as HTML instead of using
pdf-okular...
-- 
┌─────────────────────────┐
│    Narendra Sisodiya
│    http://narendrasisodiya.com
└─────────────────────────┘

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to