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 Thu 02 Oct 2014, 06:55
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 Posts_count  
Author Message
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to 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

Edited_time_total
Back to top
View user's profile Send_private_message 
shinobar


Joined: 28 May 2009
Posts: 2630
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_website 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Mon 07 Feb 2011, 09:37    Post_subject: puppy-manpages_NLS
Sub_title: 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.

Edited_time_total
Back to top
View user's profile Send_private_message 
L18L

Joined: 19 Jun 2010
Posts: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Sat 12 Feb 2011, 19:11    Post_subject: puppy-manpages NLS
Sub_title: 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: 2507
Location: Moved from Hosla to www.eussenheim.de

PostPosted: Mon 14 Feb 2011, 16:27    Post_subject: Manpages for commands which are in Puppy
Sub_title: 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  543 Time(s) 
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects » Localization Project
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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