Manpages for commands which are in Puppy

For efforts in internationalising Puppy and solving problems in this area
Post Reply
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Manpages for commands which are in Puppy

#1 Post by L18L »

usage
e.g. to get the manpage for ls in your default browser type in console:

Code: Select all

pman ls
For commands which are not implemented in puppy
or there is no translation available
you will get the english manpage from the web
just commands which are in puppy

After installation of puppy-manpages_NLS
in /usr/share/man there will be
13 languages: cs de es fr hu it ja ko pl pt ru tr zh_TW
delete which you do not need.

For multilingual puppians:

Code: Select all

LANG=ja pman ls
japanese manpage for ls

Code: Select all

LANG=tr pman ls
turkish manpages for ls
Have fun

edit
cannot upload puppy-manpages_NLS.pet now here, size is 8.7M
edited 2011-02-06
thanks to shinobar puppy-manpages_NLS now is available as pet and as sfs
Last edited by L18L on Sun 06 Feb 2011, 11:39, edited 1 time in total.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

puppy-manpages_NLS

#2 Post by shinobar »

Download:
puppy-manpages_NLS.pet from Large packages
puppy-manpages_NLS.sfs from optional SFS
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

puppy-manpages_NLS

#3 Post by L18L »

Two notes about manpages

1. Installing the .pet directly from browser or by klicking the downloaded .pet this will install manpages in all 13 languages. You can delete the ones you do not need in /usr/share/man or after having downloaded the .pet you can install it by PuppyPackageManager and that will (hopefully) enable you to unfatten.

2. As all manpages have been recoded to UTF-8 make sure your browser has set default encoding to UTF-8. With seamonkey it is: View > Character Encoding > Auto-Detect > Universal.
Last edited by L18L on Sat 12 Feb 2011, 23:11, edited 1 time in total.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

puppy-manpages NLS

#4 Post by L18L »

Executing in console:

Code: Select all

cd /root/.mozilla/seamonkey/*.default
echo 'user_pref("intl.charset.default", "UTF-8");' >> user.js
cd -
After restart of browser UTF-8 will be default and the manpages are displayed correctly.

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

Manpages for commands which are in Puppy

#5 Post by L18L »

The manpages are formatted for browser by man2html (binary) without any setting of charset now I have made a small fix in the script /usr/bin/pman near line 233

Code: Select all

     #14feb11
     sed 's/<\/HEAD><BODY>/<meta http-equiv="Content-Type" content="text\/html; charset=UTF-8" \/><\/HEAD><BODY>/' $TMPFILE > ${TMPFILE}1
     mv ${TMPFILE}1 $TMPFILE #14feb11
     $HTMLVIEWER $TMPFILE &
     #rm -f $TMPFILE
Now the manpages should be displayed correctly in every browser :idea:
Note: This fix is not yet included in pet and sfs :!:
Attachments
pman.gz
unzip and copy or move to /usr/bin
don'#t forget to make it executable
(4.77 KiB) Downloaded 812 times

Post Reply