maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Tear 0.3 - Simple WebKit browser, now with Dashboard (https://talk.maemo.org/showthread.php?t=26475)

tso 2009-02-22 21:05

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
i cant help but wonder if part of the perception of speed comes from the way tear/webkit treats the loading bar, vs the microb way...

Bundyo 2009-02-22 21:30

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by tso (Post 266298)
hmm, i have bumped into some forums recently that trigger a index.php download when i try to post using tear.

Can you give me a link to such forum?

tso 2009-02-22 21:42

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
not sure how useful it would be as its a norwegian one. buts if it helps, its running of ip.board...

bunanson 2009-02-22 22:33

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
OMG, it is eye blinking fast! Thanks Bundyo and nobodysbusiness (http://www.internettablettalk.com/fo...highlight=tear). One slight qirk, on the acid test, I got only 96/100 instead of 100/100. I followed nobodysbusiness instructions. Is there anything I can do to get 100/100? like take something stronger than acid, heroine, duh! Or does it matter, like make my tablet explode, my house on fire, have me catch a cold or my viagra stop functioning?

N800/5.2008.43-7/mmc1 boot

Ummm......did not realize I am using a 2008 OS version in 2009. What is goin on :eek:?

bun

bunanson 2009-02-22 22:47

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Surfing is eye blinking fast, no crash at all. Doing great.

However, there is a slight problem in input. Have not quite characterise it yet. Problem is more with handwriting, my favorite, then keyboard. It gave a sound 'ding' and the writing character turns red. I switched to OSKB, one out of two, the spacebar is NOT there. Again, I have NOT quite characterize the problem and not quite sure whether it is related to 96/100 or something else.

bun

Bundyo 2009-02-22 22:48

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Its just a test, the numbers change all the time due to ongoing development of WebKit. I'm getting now 69/100 with 41071.

bunanson 2009-02-22 22:54

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
I just cannot stop saying how fast it is, THANK YOU!!!

One slight question again, how do you make the screen stop kinetic, i.e, stay put, DONT move?

TIA,

Edit: BTW, what is tear stands for? I hope it is NOT related to the browser that shipped with my tablet. That is way too obvious :-)

Edit: More than eye-blinking fast, I cannot, even if I try hard, I cannot crash it! OOMMGG!!! I now, for a change, can use my tablet to surf, thank you.

Edit: itT forum works fantastic. Youtube viewing is acceptable. However, I cannot make the video go full screen.

bun

BrentDC 2009-02-22 22:54

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 266333)
Its just a test, the numbers change all the time due to ongoing development of WebKit. I'm getting now 69/100 with 41071.

Yeah, it stalls for about 15 secs. Wait a bit and it'll hit 96/100 :)

Bundyo 2009-02-22 23:06

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Nope, in 41071 it stays at 69 :)

BrentDC 2009-02-22 23:10

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 266337)
Nope, in 41071 it stays at 69 :)

Ah, yes. I'm running a slightly older version, and it just stalls for a while. It has been getting worse and worse, good to see they finally broke it :D

bodri 2009-02-22 23:45

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Thx, i will try again. I tried Fennace but was too slow. MicroB is good i think, but adblock plugin is missing on it. Anyway i think adblock would be te most important feature to good browsing on internet tablets.

mscdex 2009-02-23 07:41

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by bodri (Post 266345)
Thx, i will try again. I tried Fennace but was too slow. MicroB is good i think, but adblock plugin is missing on it. Anyway i think adblock would be te most important feature to good browsing on internet tablets.

MicroB does have an Adblock plus port. It's in the "Browser Extras" repository.

tso 2009-02-23 08:54

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
tho it will probably slow down page loads more then just turning plugins off and leaving the javascript powered ads in place...

allnameswereout 2009-02-23 13:59

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by bodri (Post 266345)
Thx, i will try again. I tried Fennace but was too slow. MicroB is good i think, but adblock plugin is missing on it. Anyway i think adblock would be te most important feature to good browsing on internet tablets.

Its called Fennec.

For ad blocking please see the wiki at http://wiki.maemo.org/Ad_blocking

buhao 2009-02-23 15:13

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by tso (Post 266450)
tho it will probably slow down page loads more then just turning plugins off and leaving the javascript powered ads in place...

This is true. I use a custom css file to do ad blocking on microb and it now works with tear as well :D.

I am to the point where I use tear almost exclusively and the only issues I am having are:

1. Bookmark deletion
2. Scrollbar removal to free up some screen real estate
3. Sometimes when I just tap the page goes flying in some direction
4. Strange results with text input sometimes (issue with n800 OSK?)

Other than that, so happy. As someone said before, clicking thanks doesn't seem like it is thanks enough. If you are ever traveling Bundyo, stop by and I will buy you a beer, give you a place to stay, let you borrow my scooter or bike, etc.

bongo 2009-02-23 15:24

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
I'd like to develop a bookmark manager if help is required ...

qole 2009-02-23 18:30

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
I was having issues with N800 OSK too. Spacebar was non-functional.

I had to reinstall my OS over the weekend (stupid SD card keeps corrupting my main partition), I won't be testing for a while...

iskarion 2009-02-23 19:28

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by bongo (Post 266522)
I'd like to develop a bookmark manager if help is required ...

Imo it would be much better to access the microb bookmarks from tear. They are stored in the quite common, xml based xbel format.
This way both browsers can share the same bookmarks and a bookmark manager is also not required, as Maemo already has one (which afaik is a standalone app and in no way related to microb).

tso 2009-02-23 19:30

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
it seems to have its own binary at least...

Bundyo 2009-02-23 20:25

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Yes, xbel support is planned.

Benson 2009-02-23 21:17

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by BrentDC (Post 266291)
Code:

def shorten_text(self, variable_holding_text):
    if len(variable_holding_text) > 15:
        new_variable = variable_holding_text[0:15] + " ..."
    return new_variable

Extremely easy! :D

Or:
Code:

def shorten_text(self, variable_holding_text):
    if len(variable_holding_text) > 18:
        new_variable = variable_holding_text[0:15] + " ..."
    return new_variable

After all, if you can hold 15 chars with " ..." you can hold at least 17, and usually 18, chars without.

bongo 2009-02-23 21:17

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 266610)
Yes, xbel support is planned.

That's good news.

Could you please implement a temporary solution to delete/edit bookmarks?

Bundyo 2009-02-23 21:33

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
I've already did add removing bookmarks using the star when there is bookmark already. I have some things yet to do before the next release though.

BrentDC 2009-02-23 21:37

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Benson (Post 266619)
Or:
Code:

def shorten_text(self, variable_holding_text):
    if len(variable_holding_text) > 18:
        new_variable = variable_holding_text[0:15] + " ..."
    return new_variable

After all, if you can hold 15 chars with " ..." you can hold at least 17, and usually 18, chars without.

True, True. This is really something that should be changeable in the settings (which should be a Control Panel applet. K, TrueJournals? :D).

I have a programming rule: if I find myself putting an arbitrary hard-coded value into my program, chances are it should be user-configurable.

So, shorten_text version 2:

Code:

def shorten_text(self, variable_holding_text):
    settings = self.get_settings() # a function to get all user settings. This should be a list.
    if len(variable_holding_text) > settings['title_length']:
        end_length = settings['title_length'] - 3
        new_variable = variable_holding_text[0:end_length] + " ..."
    return new_variable


I think that'll work. Never tested using a variable as a slice index, though... (translated, it'll cause you plugin to silently fail like all problems with Python hildon-desktop plugins do).

Bundyo 2009-02-23 21:47

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Btw, these changes to the Tear bookmarks remove the need for VBox and look good on the dark Echo background (also add left alignment):

Code:

      for row in self.c:
            menuitem = gtk.ImageMenuItem()
            label = gtk.Label("")
            label.set_markup("<span color='#7090BA'><b>"+self.html_escape(str(row[1]))+"</b></span>\n<span foreground='#FFF'>%s</span>" % row[2])
            label.set_alignment(0, 0)
            menuitem.add(label)
            self.menu.append(menuitem)
            menuitem.connect('activate',self.open_url,row[2])

      #menu_item = gtk.SeparatorMenuItem()
      #self.menu.append(menu_item)

Right now i'm directly using white for the bookmark url, but if we can get the theme fg color will be best. I tried with

Code:

fgcolor = menu_item.get_child().get_style().text[0]
and with
Code:

scheme = gtk.Object(gtk.Settings().get_default()).get("gtk-color-scheme")
But I'm not very good with Python and even less with Hildon Desktop and wasn't able to see the error messages which I was getting to check what I'm receiving. Maybe someone else can take it from here?

bongo 2009-02-23 22:38

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 266624)
I've already did add removing bookmarks using the star when there is bookmark already. I have some things yet to do before the next release though.

Doesn't work for me. I use 0.3pre4 ...

Bundyo 2009-02-23 22:39

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Its not released :)

BrentDC 2009-02-23 22:45

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 266631)
Btw, these changes to the Tear bookmarks remove the need for VBox and look good on the dark Echo background (also add left alignment):

Code:

      for row in self.c:
            menuitem = gtk.ImageMenuItem()
            label = gtk.Label("")
            label.set_markup("<span color='#7090BA'><b>"+self.html_escape(str(row[1]))+"</b></span>\n<span foreground='#FFF'>%s</span>" % row[2])
            label.set_alignment(0, 0)
            menuitem.add(label)
            self.menu.append(menuitem)
            menuitem.connect('activate',self.open_url,row[2])

      #menu_item = gtk.SeparatorMenuItem()
      #self.menu.append(menu_item)

Right now i'm directly using white for the bookmark url, but if we can get the theme fg color will be best. I tried with

Code:

fgcolor = menu_item.get_child().get_style().text[0]
and with
Code:

scheme = gtk.Object(gtk.Settings().get_default()).get("gtk-color-scheme")
But I'm not very good with Python and even less with Hildon Desktop and wasn't able to see the error messages which I was getting to check what I'm receiving. Maybe someone else can take it from here?

Python hildon-desktop applets/plugins always silently fail. At least on the device (I hear you can get the debug text on scratchbox...if I can ever get it installed).

I'll take a look at it later and see if I can figure out how to do it. :)

bongo 2009-02-23 22:56

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by Bundyo (Post 266643)
Its not released :)

Might be the reason ... :cool:

I had an other thought about the bookmark manager: what about mer? The microb manager won't be there so maybe we need a new one.

Bundyo 2009-02-23 23:00

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Yeah, you're right, ask me for a project join if you have an urge to do it :)

Bundyo 2009-02-23 23:10

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by BrentDC (Post 266645)
Python hildon-desktop applets/plugins always silently fail.

Not always ;) There's a little trick you can do to get messages from all maemo-launcher applications. Every maemo app is a symlink to maemo-invoker. Try editing the symlink of hildon-desktop to point to maemo-summoner instead. Then you have to launch it from console as a user. You'll get two desktops but you'll have console debug messages :) There's probably a way to restart it so you can get the messages for the current desktop, but I'm not sure how.

TrueJournals 2009-02-24 00:46

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Hello all... Been a while since I posted anything in this thread :P

URLs/Titles that are too long have been in the back of my mind, but I didn't have any, so didn't bother coding the feature to shorten them. Thanks all for looking at my code and pointing out modifications for this. I'll include something in the next release that will take care of this.

As for the style issue... I figured it would be a problem. I even looked into getting the style information in python, but I couldn't figure out how. It really annoyed me. There's not much documentation for the python side of things in maemo. I think I'll need to dig into the C documentation a bit and see if I can find anything, then translate it into python.

Getting rid of the vbox: the vbox was a design prototype to prepare for a hbox in anticipation of favicons. At the current stage, getting rid of it really isn't a problem, it was more just me playing around trying to figure out how to make text appear like that and still be one menu item. After all, I'm still learning python!

Once I or someone else figures out how to get the color information from the theme, I'll have no problem throwing the code in there and releasing a new version. However, I'd really like to wait for that...

BrentDC 2009-02-24 01:27

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
I did a little digging about the theme color thing and got nowhere. But I started thinking:

A: Why does the background color change when the theme is changed but not the foreground color?
B: Since A doesn't work, maybe color should be user configurable; seems like the only perfect solution (like Personal Menu).

TrueJournals 2009-02-24 02:37

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
I'm actually working on the style issue... and I feel like I'm VERY close to getting it. I figured out where the color is in the files, so I can extract it from there, or (hopefully) figure out the correct way to do it. And, I think I'm pretty close to getting it done the right way (or at least close to the right way).

If all else fails, though... I suppose it'll have to be user configurable.

Bundyo 2009-02-24 05:09

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
No need for HBox too, as you can see I'm using ImageMenuItem.

As for the color if we use directly the menu item's text without markup it will turn up with the proper color as can be seen from the Open in new window menu item. So GTK already knows it, we need only a way to get it.

tso 2009-02-24 08:18

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
hmm, i just spotted something interesting in app manager ;)

bongo 2009-02-24 08:49

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Quote:

Originally Posted by tso (Post 266734)
hmm, i just spotted something interesting in app manager ;)

Very nice!

Only 2 little things:
- Left aligned text would give us a little bit more space
- Maybe the scroll buttons should be a little bit larger

Un27Pee 2009-02-24 10:27

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
new update hmmm! does it mean the project is pushed to extras?

tso 2009-02-24 10:29

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
nope, only the bookmarks sidebar plugin...

and for all i know, its on devel, not extra proper (app manager do not tell, and i cant be assed to turn devel off as all the interesting stuff is found there anyways).

TrueJournals 2009-02-24 18:42

Re: Tear 0.3 - Simple WebKit browser, now with Dashboard
 
Yes, in order to build the deb, I uploaded it to extras-devel. However, I've found a small problem with my sqlite handling, have fixed it locally, just need to upload the new version. I also need to figure out how to make the arrows bigger. What you SHOULD notice in this version is theme-adjusting colors. If you encounter a problem with this, please let me know what theme you used. If I remember correctly, the colors should update automatically if you change the theme.


All times are GMT. The time now is 06:58.

vBulletin® Version 3.8.8