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 Mon 24 Nov 2014, 13:49
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
ultratiny html viewer - PuppyBrowser 0.5 + embeddedbookmarks
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 9 [123 Posts]   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Author Message
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Tue 10 Mar 2009, 14:35    Post subject:  ultratiny html viewer - PuppyBrowser 0.5 + embeddedbookmarks  

this version is outdated!
Get instead "PuppyBrowser":

http://www.murga-linux.com/puppy/viewtopic.php?p=303882#303882

---------------------------------
original message:

read more:
http://puppylinux.com/blog/?viewDetailed=00595

I attach a pack with a binary, that shows a real cool Flash site Cool
Also included the files I used for compilation.

Mark
gtkmozembedstuff-03.10.2009-19.30.36.tar.gz
Description 
gz

 Download 
Filename  gtkmozembedstuff-03.10.2009-19.30.36.tar.gz 
Filesize  1.05 MB 
Downloaded  1792 Time(s) 

_________________
my recommended links

Last edited by MU on Mon 01 Jun 2009, 20:32; edited 6 times in total
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


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

PostPosted: Tue 10 Mar 2009, 22:00    Post subject:  

Now with toolbar buttons:

http://puppylinux.com/blog/?viewDetailed=00596

...and it has grown to a whopping big 11KB!

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


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sat 09 May 2009, 01:02    Post subject:  

this version is outdated!
Get instead "PuppyBrowser":

http://www.murga-linux.com/puppy/viewtopic.php?p=303882#303882


-------------------------------------------------
original message:
made some changes to Barrys newer example with buttons Very Happy

- no more crashes on https sites
- uses fonts from profile setting "MU". To override my defaults, create a new profile MU in seamonkey.
- added a URL bar
- started to restructure the code, so that it resembles more my other examples

Sidenotes:
- crashed fixed by defining a profile
- The available methods of MozEmbed can be looked up in /usr/include/gtkembedmoz/gtkmozembed.h

- Unfortunately it seems, that libgtkmozembed is dropped in latest firefox/seamonkey/xulrunner.
So what API is replacing it?

Mark
HTML-viewer-01.tar.gz
Description 
gz

 Download 
Filename  HTML-viewer-01.tar.gz 
Filesize  33.75 KB 
Downloaded  1722 Time(s) 
html-viewer01.jpg
 Description   
 Filesize   42.23 KB
 Viewed   14068 Time(s)

html-viewer01.jpg


_________________
my recommended links

Last edited by MU on Sun 10 May 2009, 18:38; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sat 09 May 2009, 03:37    Post subject:  

Dear Mark,

The browser is great. Thanks. I love the fact that the binary is only 10k. It is working smoothly in 4.12.

With kind regards,
vovchik
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Sat 09 May 2009, 03:46    Post subject:  

Nice and snappy.

@vovchick

I don't see this as a browser...... yet Smile (post made with it Wink )

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1287
Location: Ukraine

PostPosted: Sat 09 May 2009, 04:15    Post subject:  

Dear Micko,

Not a web browser yet - but good for offline documentation and as the browser of choice for mail progs like sylpheed. I am pposting now, like, you, using MU's browser...

With kind regards,
vovchik
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 09 May 2009, 04:30    Post subject:  

Quote:
I don't see this as a browser...... yet


What does it need? Bookmarks? Is certainly fast . . .

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Sat 09 May 2009, 05:43    Post subject:  

Quote:
What does it need? Bookmarks? Is certainly fast . . .


In the interest of keeping this light and fast I think bookmarks are not needed. They can be kept in a separate text file and copied and pasted. Cool

Downloading is vital, IMO.

I'm attempting to run this on my 486 with 2.16-fat_free-dillo (from big_bass). I know GTK is the issue. Gonna try to get the necessary dependencies only and see how it goes. Wink

I've trialled many browsers on that system and so far text based are the best, however it would be nice to have a snappy gui browser on that old clunker. I am of the opinion that I can get this to work and work well. Even if it means an upgrade of OS.. (which is an immediate goal Wink )

vovchik

I tend to agree with you. It is a browser certainly, but we are spoiled with features!

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 09 May 2009, 07:10    Post subject:  

I like the idea of it, but why not use something thats universal, say a frontend to netsurf, since those guys a really taking their time with issues thats it has like it doesn't have "save as" so when you click on a pet in the repo, you get a whole page of code and no file. etc, you might be able to make a real nice small browser. Its just an idea, Also why provide a 35kb COPYING txt file? at one time it was a couple of lines saying its GPL, now its a full blown legal document, what a waste of space, for a 11kb program, why not just a weblink to the online document? it is a browser, so most would be using the net anyways with it Smile even a better Idea would have this "COPYING" text file default in puppy, So any other files that you download can just be system linked to the one and only copy on the machine. Like if we had 10 files with the COPYING document, thats 350kb, so one installed by default and system link sounds better.
Really I like the old way better. Like the one in the dotpup package manager
#!/bin/sh
#Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html)

and that was it, one line not 674 Lines / 5644 words of stuff that most won't ever read from start to finish.
Anyways nice application and a great start. Doesn't work on uPUP, if opens up to a blank page, with google in the url, but the enter key doesn't work, I press enter and nothing happens.I can change the url, but no enter button to actually execute a webpage.
ttuuxx
browser.jpg
 Description   
 Filesize   12.39 KB
 Viewed   14080 Time(s)

browser.jpg


_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 09 May 2009, 08:05    Post subject:  

ps just checked it with ldd. and nothing was missing.
I ran it from command prompt and no error messages.
ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 09 May 2009, 08:27    Post subject:  

Ttuuxxx's comments got me thinking (I may explode)

Make this the default homepage
http://pupweb.org/desktop/ and or use a bookmark facility
eg http://delicious.com/

Then we rebrand as Puppy Browser . . .
Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
ttuuxxx


Joined: 05 May 2007
Posts: 10843
Location: Ontario Canada,Sydney Australia

PostPosted: Sat 09 May 2009, 09:25    Post subject:  

Hi guys This is just an idea, but this tiny webbrowser named Atlantis http://freshmeat.net/projects/atlantis/ which was basically a front-end to gtkhtml.
With that in mind you could make this html viewer work on that base gtkhtml. That way you wouldn't need any other browsers installed.

gtkhtml 3 series sources (2 series is about 1/2 the size) (also says it needs a gnome theme, probably could hack one down)
http://ftp.acc.umu.se/pub/gnome/sources/gtkhtml/3.27/gtkhtml-3.27.1.tar.bz2

main
http://ftp.acc.umu.se/pub/gnome/sources/gtkhtml/

2 series sources that didn't need the theme was
ftp://ftp.uio.no/pub/GNOME/sources/libgtkhtml/2.6/

anyways like I said just an idea if you want a full independent browser.

ttuuxxx

_________________
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games Smile
Back to top
View user's profile Send private message Visit poster's website 
BarryK
Puppy Master


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

PostPosted: Sat 09 May 2009, 10:14    Post subject:  

To be used as the internal HTML viewer in Puppy, it must support CSS and Javascript, which rules out Netsurf and gtkhtml. Also for any kind of decent web browsing these days, you need both of those features.
_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sun 10 May 2009, 01:03    Post subject:  

This browser is based on Seamonkey.
It uses a new, simpler grafical interface written in Genie/Gtk2, so it loads faster than Seamonkey.
I recommend in addition to view images/PDFs:
http://www.murga-linux.com/puppy/viewtopic.php?t=42075
You can run the pictureviewer from within Puppybrowser, and then drag PDFs on it.

You also might have to install "libgee" with petget or from this messages attachment, if it will not work.
If you have no menu entry, click on:
/usr/local/PuppyBrowser/puppy-browser


Changelog:

version 0.1:
- initial release with a new toolbar, bookmarks, search, buttons to download files.

version 0.2:

- fixed bug, that pages for "new windows" did not load.
They now open in the same window.

- added a statusbar, so you can see where a link points to, when you move the mouse over it.

- bookmarks were loaded twice using different code, removed the unneeded one.

version 0.3:

- optional buttons now located in the statusbar
- fullscreen mode
- tabbed browsing
- load/save the current tabs
- updated startscript, so it should work with newer installed seamonkey 1.x or with the xulrunner sfs.


version 0.4:

- fixed crashes caused by javascript popups (popups in most cases do NOT work, this is a limitation of gtkembedmoz).
- when you close a tab, the last one that was active before is selected again.
- using the same bookmark again now works with new tabs.
- fullscreenmode now hides the toolbars. Move the mouse to top or bottom, to show them. Move the mouse slowly, so that they hide again, this works not perfect yet.

- support for profiles
Run for example:
/usr/local/PuppyBrowser/puppy-browser -profile=fullscreen derbauer.de
(turn up sound, then relax and enjoy!)

A profile is a folder in /root/.PuppyBrowser/profiles.
If you pass a non-existent one, it will be created. Each profile has own saved tabs and bookmarks.
in addition, you can save there a "settings.rc".
I included 4 profiles:

default
- this is created when you run it the first time (your old tabs/bookmarks are copied to it).

fullscreen
- run the browser in fullscreen mode.

flashviewer
- runs the browser without any toolbar. Use it for example, to display Flash games in it, so the game looks like a native desktop application.

helpviewer
- has only 3 buttons: back, forward, reload.

The corresponding "settings.rc", for example from profile helpviewer:
Code:
always_show_tabs=0
show_bookmarks=0
show_status=0
show_urlbar=0
use_tabs=0
show_no_bars=0
start_fullscreen=0


Related to the profiles, I had to change the way, how arguments are passed.
Now it can be done like this (it does not matter, which you use first)
Code:
puppy-browser -x=10 -y=30 -w=300 -h=200 -profile=helpviewer '-title=my help' /root/help.htm


version 0.5:

- links passed as console argument now may contain "="

- 3 buttons support drag'n'drop:
- open new tab
- pictureviewer
- pwget
So you can drag a link on the "new tab" button, to open it in a new tab.

- pwget now is included, the updated version from gposil that suppots passwords.
I modified it, so that the download window will not close automatically, so that you can see, if the download had no errors.

- bookmarks fixed again. My last fix had a bug - you could no longer edit their names

- added a new button "Open Bookmarks for Embedded Code". This is a new optional program explained here:
http://www.murga-linux.com/puppy/viewtopic.php?p=311452#311452

Note:
If you have a Puppy without seamonkey, you need such a SFS:
http://www.murga-linux.com/puppy/viewtopic.php?p=304329#304329

Mark
EmbeddedBookmarks-0.3.pet
Description 
pet

 Download 
Filename  EmbeddedBookmarks-0.3.pet 
Filesize  57.71 KB 
Downloaded  1697 Time(s) 
embeddedbookmarks.jpg
 Description   Puppybrowser playing a video, that is saved as bookmark for embedded code.
 Filesize   96.88 KB
 Viewed   12257 Time(s)

embeddedbookmarks.jpg

Puppy-Browser-0.5.pet
Description 
pet

 Download 
Filename  Puppy-Browser-0.5.pet 
Filesize  55.27 KB 
Downloaded  2320 Time(s) 
puppybrowser-0.5.jpg
 Description   the browser
 Filesize   40.29 KB
 Viewed   12596 Time(s)

puppybrowser-0.5.jpg

libgee-20081125-i486.pet
Description 
pet

 Download 
Filename  libgee-20081125-i486.pet 
Filesize  30.39 KB 
Downloaded  1840 Time(s) 

_________________
my recommended links

Last edited by MU on Thu 04 Jun 2009, 02:35; edited 31 times in total
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sun 10 May 2009, 02:17    Post subject:  

Incredible! [Lobster faints]
You have a credible browser Smile

Even comes with an icon and link here (once installed)
/usr/share/applications/puppy-browser.desktop
which can be dragged to the desktop

Mark, you must be dependent on some libraries from Seamonkey?
Would it be viable to use this in Puppy - allowing users to download a bigger browser if required? Preferences for Opera, Seamonkey, Firefox, Konqueror, Flock, Dillo etc would no longer be an issue . . .

How exciting Smile
Using it in Upup Alpha 6 incidentally . . .

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 9 [123 Posts]   Goto page: 1, 2, 3, ..., 7, 8, 9 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.1027s ][ Queries: 13 (0.0075s) ][ GZIP on ]