Active Topics

 



Notices


Reply
Thread Tools
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#41
Originally Posted by fraaaaanka View Post
Hi There,
Using touchsearch i tried to add my own search for 'yell'
went through all the steps and it worked successfully apart from when i press the +button and select 'Yell' the icon i created does not appear on the widget (i just get a black box with the blue + sign on the right)
when i click the black box it then opens up the search bar with the logo i created on the left hand side.

My question is why am i not getting the logo on the desktop widget?

I created the icon using paint, the size is the specified 122x40, saved as a .png file.

Help is appreciated.
Hi,

Could you attach the image to a post in this thread. That way, I can test it here. Thanks.

P.S. Are the default search engine icons working on the desktop?
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
Posts: 436 | Thanked: 298 times | Joined on Jan 2010 @ England
#42
Hi There
Firstly thanks for the help

I have attached the file i created

The other icons all work fine ... its just the one I created (its not very pretty but It'll do for me)

Cheers
Attached Images
 
 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#43
Originally Posted by fraaaaanka View Post
Hi There
Firstly thanks for the help

I have attached the file i created

The other icons all work fine ... its just the one I created (its not very pretty but It'll do for me)

Cheers
After a bit of investigating I found out that for the image to show up it needs to be rgba and not just rgb -- the difference is that the background needs to be transparent instead of white (white doesn't look very good anyway!).

I edited the yell.png to be rgba as an example (I also made the Yell text light gray so is shows up on a dark background).

Hope this helps (I'll add this to the documentation soon).
Attached Images
 
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#44
Originally Posted by BrentDC View Post
After a bit of investigating I found out that for the image to show up it needs to be rgba and not just rgb -- the difference is that the background needs to be transparent instead of white (white doesn't look very good anyway!).
What kind of program are you using? Gimp seems unable to do that, at least in my hands

Nevermind, I found the way with Gimp. Here are some png's which might be useful.
Attached Images
     
__________________
Ernesto de Bernardis


Last edited by debernardis; 2010-01-13 at 09:18.
 

The Following User Says Thank You to debernardis For This Useful Post:
Posts: 12 | Thanked: 0 times | Joined on Jan 2010
#45
When adding custom search engines, sometime the latest one I add is not editable or deletable (like the Google one).

I entered Bing, but 3 times in a row I was told that it already existed. Quite annoying. I was starting to think I wasn't permitted to add it. :| Eventually it went in, but now that one isn't editable, so I can't add an icon. Guess I have to add a new one.
 
Posts: 12 | Thanked: 0 times | Joined on Jan 2010
#46
Hmm, I have moved it to the top by mistake. Now I can only move Bing up and Google down. Seems like there is some unnecessary 'control' (that obviously doesn't work right) that is programmed into this widget.

No offense, but editing a string and opening the browser with it isn't complicated. Maybe you should keep it simple instead of trying to control its use. You may as well open it up before someone else makes a more open version. Until then, I'll do my searches manually.

Last edited by joebush; 2010-01-13 at 12:30.
 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#47
Originally Posted by joebush View Post
Hmm, I have moved it to the top by mistake. Now I can only move Bing up and Google down. Seems like there is some unnecessary 'control' (that obviously doesn't work right) that is programmed into this widget.

No offense, but editing a string and opening the browser with it isn't complicated. Maybe you should keep it simple instead of trying to control its use. You may as well open it up before someone else makes a more open version. Until then, I'll do my searches manually.
Hi,

There is very little that TouchSearch tries to "control". If you are having issues with things not working properly, then I assure you they are just bugs in the code.

It may seem like a very simple thing to do as you alluded to above, but it isn't. I will not go into the technical details of what was required to program it, but I will tell you that the code responsible for storing, editing, loading and using user-created search engines is several hundred lines long. Whenever you program several-hundred lines there are bound to be bugs. I'm usually pretty good at finding and fixing them before public release, but sometimes some do get through.

Here is exactly what TouchSearch controls:

Editing and Deleting Search Engines:
All search engines are 100% editable and deletable with the exception of Google and the search engine currently in use.

Google is this way because it is the default search engine and is there when TouchSearch runs into problems. For example, any of the below would cause TouchSearch to automatically load Google:
  1. Deletion of every other search engine
  2. Default install state
  3. Corrupted settings file
  4. "Stale" settings file (program requires a newer version
  5. Error in loading any of the other search engines including user-defined ones

The search engine currently in use is this way because TouchSearch will not be happy if you delete the search engine in use (it is like trying to delete a file open in another program). TouchSearch would crash, so I made it undeletable (and uneditable).

Adding Search Engines:

There really aren't any controls here, just checks to make sure everything was entered correctly.

There are three things that can cause TouchSearch to report an error adding a search engine:
  1. Name is not unique and matches one already in use (TouchSearch identifies search engines by name so having two with identical names would cause TouchSearch not to know which is which)
  2. Query not contained in URL (This is almost always caused be dynamically created search pages. For example, "http://example.com/q=query" is a very easy website to search, just replace query with a substitution character and you're set. However "http://example.com/search.php" is not easy to remotely search, and may even be impossible).
  3. Search query appeared more than once in the string (For example, http://example.com/q=e". This is caused by either the user not using a unique enough search string or the website has the query appear more than once in the string).

All these checks are there to make sure the search engine will work properly once added, not to "control" you.

Sorting Search Engines with Up/Down:

If you have selected a search engine at the top or bottom of the list or have moved one to the top or bottom of the list, TouchSearch will gray-out the top or bottom button respectively. If it didn't do this, you could actually move search engines out of "range" which I assure you isn't something you want to do (it would cause the program to crash).

If this isn't working properly in a repeatable scientific way, please report it in the Bugzilla and I will try to fix it. Thanks.

Edit: I also forgot to mention that any version of TouchSearch that has user-defined search engine capability is either in -testing or -devel. This is why some features may have bugs or don't seem quite polished yet -- because it isn't!
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900

Last edited by BrentDC; 2010-01-13 at 16:49.
 
Posts: 436 | Thanked: 298 times | Joined on Jan 2010 @ England
#48
Originally Posted by BrentDC View Post
After a bit of investigating I found out that for the image to show up it needs to be rgba and not just rgb -- the difference is that the background needs to be transparent instead of white (white doesn't look very good anyway!).

I edited the yell.png to be rgba as an example (I also made the Yell text light gray so is shows up on a dark background).

Hope this helps (I'll add this to the documentation soon).
Top Man
Top App
Will get loads of use from me .... saves me loading up web, then finding the bookmark, then clicking it etc etc
possibilities are endless ... lyric databases, forums ... and all in a little tiny widget that takes up no space on my desktop

.... again ... nice one!
 

The Following User Says Thank You to fraaaaanka For This Useful Post:
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#49
It would be nice to have the talk.maemo.org powersearch too (http://talk.maemo.org/msearch.php) but unfortunately it calls a script from google. A page formatted with a 'get' input box which passes the parameters to the google script could solve the issue but other than suggesting I'm no good at doing it
__________________
Ernesto de Bernardis

 
BrentDC's Avatar
Posts: 903 | Thanked: 632 times | Joined on Apr 2008
#50
I don't think that PowerSearch allows remote searching via url parameters, but Google does:

http://www.google.com/cse?cx=0124142...53A2laarii9gbw

That is Reggie's CSE, a little crude, but results are the same...

I may create a CSE just like that but with a nice Maemo.org logo. It should be fairly easy
__________________
-Brent

Author of TouchSearch -- web searching software for Maemo 5.

Mobile Device lineage: Palm Z22 -> Palm TX -> Nokia N800 -> Nokia N900
 

The Following User Says Thank You to BrentDC For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 08:30.