Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 20 Dec 2014, 16:11
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Manpages for commands which are in Puppy
Moderators: Lobster, MU, raffy
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2619
Location: www.eussenheim.de/

PostPosted: Fri 04 Feb 2011, 17:55    Post subject:  Manpages for commands which are in Puppy  

usage
e.g. to get the manpage for ls in your default browser type in console:
Code:
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:
LANG=ja pman ls
japanese manpage for ls
Code:
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, 07:39; edited 1 time in total
Back to top
View user's profile Send private message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Sun 06 Feb 2011, 07:17    Post subject: puppy-manpages_NLS  

Download:
puppy-manpages_NLS.pet from Large packages
puppy-manpages_NLS.sfs from optional SFS

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 2619
Location: www.eussenheim.de/

PostPosted: Mon 07 Feb 2011, 09:37    Post subject: puppy-manpages_NLS
Subject description: installation and browser
 

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, 19:11; edited 1 time in total
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2619
Location: www.eussenheim.de/

PostPosted: Sat 12 Feb 2011, 19:11    Post subject: puppy-manpages NLS
Subject description: force browser UTF-8
 

Executing in console:
Code:
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.
Back to top
View user's profile Send private message 
L18L

Joined: 19 Jun 2010
Posts: 2619
Location: www.eussenheim.de/

PostPosted: Mon 14 Feb 2011, 16:27    Post subject: Manpages for commands which are in Puppy
Subject description: problem with charset solved
 

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:
     #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 Exclamation
pman.gz
Description  unzip and copy or move to /usr/bin
don'#t forget to make it executable
gz

 Download 
Filename  pman.gz 
Filesize  4.77 KB 
Downloaded  559 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0577s ][ Queries: 13 (0.0098s) ][ GZIP on ]