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 23 Aug 2014, 05:34
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
PZCHMView
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Sun 02 May 2010, 09:52    Post subject:  PZCHMView
Subject description: Simple CHM file viewer.
 

Created for using with Puppy 4.3.x
Uses default html viewer. (You may change it's name by editing a corresponding variable).
Works in text and graphical modes.
No dependencies, all tools and libs included into package.
(If you want to use it in text mode, you must install any console web browser).
pzchmview-1.0.pet
Description 
pet

 Download 
Filename  pzchmview-1.0.pet 
Filesize  14.63 KB 
Downloaded  801 Time(s) 

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 5086
Location: Charleston S.C. USA

PostPosted: Sun 02 May 2010, 10:29    Post subject: What is a CHM file?  

What is a CHM file?
I see you are from Earth. I've been to that planet, but they are so primitive. They still use Windows!
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Sun 02 May 2010, 11:23    Post subject: Re: What is a CHM file?  

bigpup wrote:
What is a CHM file?

Microsoft compiled HTML help file.
bigpup wrote:

I see you are from Earth. I've been to that planet, but they are so primitive. They still
use Windows!

Smile
Sorry but "primitive" people from this planet sometimes want to read some usefull books compiled as CHM.

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1031
Location: Smithers, BC, Canada

PostPosted: Sun 02 May 2010, 15:20    Post subject:  

Thank you PANZERKOPF,

I do need to read chm files from time to time but do not have seamonkey or firefox installed so could never use chmsee. This does a great job on its own! Very Happy I've just installed it in my woofed up version of quirky21 and it is displaying files in Netsurf quite nicely.

One problem with your pet, there is no pet.specs file in the pet so petget manager will not uninstall it. Sad I extracted your pet and reran it through dir2pet and created a pet with pet.specs in it. I was able to reinstall and then uninstall (just to make sure it would work, I immediately installed it again).

While I was rebuilding it I also included a new /root/Choices/MIME-types/application_x-chm with this code:
Code:
#! /bin/sh
exec pzchmview "$1"
Now I can click on a .chm file and it will open in defaulthtmlviewer.

Thanks again, J

Edit: Reworked .pet attached
pzchmview-1.0b.pet
Description  PANZERKOPF's .pet with pet.specs and application_x-chm
pet

 Download 
Filename  pzchmview-1.0b.pet 
Filesize  15.13 KB 
Downloaded  719 Time(s) 

Last edited by jrb on Thu 06 May 2010, 08:58; edited 1 time in total
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Mon 03 May 2010, 20:04    Post subject:  

Nice, I'm adding this to Puppeee.
Back to top
View user's profile Send private message Visit poster's website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Wed 05 May 2010, 06:31    Post subject:  

@ jrb

Can you upload your updated PET file for members?

Thanks in advance Smile
Back to top
View user's profile Send private message 
jrb


Joined: 11 Dec 2007
Posts: 1031
Location: Smithers, BC, Canada

PostPosted: Thu 06 May 2010, 09:00    Post subject:  

Reworked .pet attached to post above.
Back to top
View user's profile Send private message 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Thu 06 May 2010, 15:50    Post subject:  

jrb wrote:
Reworked .pet attached to post above.

Thanks for addition!

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Mon 10 May 2010, 09:35    Post subject:  

Hi, I installed the 1.0b PET, but it doesn't work properly for me.

I downloaded three .chm files, they all have the same problem. When I click on one, it opens in my browser -- a page of links, I click on a link and get "Page not found", I click the go-back button and get "Page not found".

It seems that whatever got created in /tmp got immediately erased, I look and there is nothing in /tmp, even while the .chm file is being viewed.

Here is where I got a couple of the .chm files:
http://code.google.com/p/htmlhelp/downloads/list?q=label:CHM

Looking at your script, I see the problem. Quirky does not have a HTML viewer as such, uses the full SeaMonkey. In the second last line, SeaMonkey gets launched in a tab-window and there is an immediate return to the script, then the files in /tmp get deleted.

I have attached a workaround, which detects the special condition and does not delete the files in /tmp. Not a very satisfactory solution though.
pzchmview.gz
Description 
gz

 Download 
Filename  pzchmview.gz 
Filesize  900 Bytes 
Downloaded  692 Time(s) 

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Mon 10 May 2010, 18:25    Post subject:  

Hi Barry !
I newer used seamonkey but installed it especially for simulate this error.
This is what I understood:
1) The "mozstart" executes seamonkey with "exec" command and immediately
exits.
3) Chmviewer goes to last string and erases all temporary html files.
2) Seamonkey continues running as a separate process but all needed files are erased.
We can use directly "seamonkey" script instead of "mozstart" for solving this problem (IMHO).

_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Mon 10 May 2010, 22:01    Post subject:  

Oh, of course, dumb me.

For SM 2.0.4, /usr/bin/seamonkey is a symlink to /usr/lib/seamonkey/seamonkey, which is a script that runs SM but exits immediately.

The solution is to run the binary executable directly, ex:

/usr/lib/seamonkey/seamonkey-bin file:///usr/share/doc/index.html

...so, if that is put into your script, test that 'gtkmoz' exists, check that it is a symlink to 'mozstart', then check that /usr/lib/seamonkey/seamonkey-bin exists, if all 3 are true then run seamonkey-bin directly.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
PANZERKOPF

Joined: 16 Dec 2009
Posts: 280
Location: Earth

PostPosted: Tue 11 May 2010, 09:43    Post subject:  

I think that my some researches are wrong. When chmviewer uses defauthtmlviewer script (which also uses "exec" for executing viewer) this problem doesn't appear. It only appears when chmviewer uses mozstart and seamonkey is running at this time (opens files in new tab).
_________________
SUUM CUIQUE.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 11 May 2010, 20:11    Post subject:  

PANZERKOPF wrote:
I think that my some researches are wrong. When chmviewer uses defauthtmlviewer script (which also uses "exec" for executing viewer) this problem doesn't appear. It only appears when chmviewer uses mozstart and seamonkey is running at this time (opens files in new tab).


I'm using SeaMonkey 2.0.4.

If I run this in a terminal:

# seamonkey file:///usr/share/doc/index.html
#

There is an immediate return to the prompt.

This must be different from how SeaMonkey 1.1.18 works.

_________________
http://bkhome.org/news/

Last edited by BarryK on Tue 11 May 2010, 23:29; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 11 May 2010, 20:31    Post subject:  

Ah, I think that I will fix it in my seamonkey package. I'll make /usr/bin/seamonkey a link to /usr/lib/seamonkey/seamonkey-bin. I don't think that there is any need to run the /usr/lib/seamonkey/seamonkey startup script.

Then your script will work.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Tue 11 May 2010, 23:32    Post subject:  

I was getting confused about the real cause of the problem. Have sorted it out, see my blog post:

http://bkhome.org/blog/?viewDetailed=01582

I have created pzchmview-1.0c.pet, here is the script:
pzchmview.gz
Description 
gz

 Download 
Filename  pzchmview.gz 
Filesize  1.01 KB 
Downloaded  695 Time(s) 

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Documents
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.0793s ][ Queries: 13 (0.0067s) ][ GZIP on ]