WebSearch 0.5
Hi Argolance,
Thank you for your latest version 0.3 which is working well here, though I have two requests:
(1) Are the height and width of the display (bottom left of image below) easily reduced, as shown where my calculator (with 64,000,000 entered) is displayed (bottom right of the image below)?
(2) Very few are obvious to me, so please does anyone have any tips as to which engines are especially useful for any particular type of search?
Thank you for your latest version 0.3 which is working well here, though I have two requests:
(1) Are the height and width of the display (bottom left of image below) easily reduced, as shown where my calculator (with 64,000,000 entered) is displayed (bottom right of the image below)?
(2) Very few are obvious to me, so please does anyone have any tips as to which engines are especially useful for any particular type of search?
- Attachments
-
- image.jpg
- (21.9 KiB) Downloaded 330 times
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonsoir,
@mfb
Thank you!
More: if ever something really amazing is found, it is recommanded to report it on this thread. On my side, 500px is great to find photos about anything (example: puppies!).
@musher0
Cordialement
@mfb
Thank you!
Yes, but it is not possible to go below a certain height without the buttons becoming unreadable. Maybe once we know how to use them, just colored buttons without images?(1) Are the height and width of the display (bottom left of image below) easily reduced, as shown where my calculator (with 64,000,000 entered) is displayed (bottom right of the image below)?
Don't you think the best way is to go to the page of the selected engine, see what it is and then keep the engines you are interested in and delete or simply remove the others? This is what I have done among the many engines I found. I only kept those I thought were relevant. This remains very subjective but user can easily add the engines he wants, taking as a model the existing configuration files in the /usr/local/websearch/engines directory.(2) Very few are obvious to me, so please does anyone have any tips as to which engines are especially useful for any particular type of search?
More: if ever something really amazing is found, it is recommanded to report it on this thread. On my side, 500px is great to find photos about anything (example: puppies!).
@musher0
Cordialement
- Attachments
-
- 181217_184953_663x28_easyshot.jpg
- (5.44 KiB) Downloaded 260 times
Dear Argolance,
Websearch is very nicely done and works well, too. To get it to run in my Raspbian PI3, I had to change all the instances of root to $HOME (one search/replace operation) in the file /usr/local/websearch/websearch. It also runs nicely in Mint with that change. I also made a little SVG icon for Websearch - just for fun.
Thanks.
With kind regards,
vovchik
Websearch is very nicely done and works well, too. To get it to run in my Raspbian PI3, I had to change all the instances of root to $HOME (one search/replace operation) in the file /usr/local/websearch/websearch. It also runs nicely in Mint with that change. I also made a little SVG icon for Websearch - just for fun.
Thanks.
With kind regards,
vovchik
- Attachments
-
- grey-websearch.svg_20181217.tar.gz
- (838 Bytes) Downloaded 131 times
@Argolance:
I tested your v. 3.0. Almost everything ok! (taquinerie / tease)
Is it possible to make the Enter key NOT ERASE the entry in the search-
word box? Is it possible to make the Enter key start the search instead,
like it does in most browsers? TIA.
Is it possible to include a button to go edit the search list manually, in
one's text editor? TIA
I do not know most of the search engines you include. You mentioned
somewhere above that 500px is for pictures, but I had to search about
RottenTomatoes (it's for actors' reviews).
Is it possible to a have a short description of each search engine's
specialty? (Or if it is a generalist search engine.) As a separate info file in
plain text will be fine. TIA.
Why is the Exit explanation only in English? (Pls see attached scrot.)
As vovchik said, changing /root to $HOME is child's play. I did it and your
v. 3 still works fine in this xenialPup-706_32-bits. So you could have ONE
version for all Linuxes. (Just a thought.)
À la revoyure ! / BFN
I tested your v. 3.0. Almost everything ok! (taquinerie / tease)
Is it possible to make the Enter key NOT ERASE the entry in the search-
word box? Is it possible to make the Enter key start the search instead,
like it does in most browsers? TIA.
Is it possible to include a button to go edit the search list manually, in
one's text editor? TIA
I do not know most of the search engines you include. You mentioned
somewhere above that 500px is for pictures, but I had to search about
RottenTomatoes (it's for actors' reviews).
Is it possible to a have a short description of each search engine's
specialty? (Or if it is a generalist search engine.) As a separate info file in
plain text will be fine. TIA.
Why is the Exit explanation only in English? (Pls see attached scrot.)
As vovchik said, changing /root to $HOME is child's play. I did it and your
v. 3 still works fine in this xenialPup-706_32-bits. So you could have ONE
version for all Linuxes. (Just a thought.)
À la revoyure ! / BFN
- Attachments
-
- French-missing!.jpg
- (111.17 KiB) Downloaded 161 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Dear Musher0,
Plain vanilla raspian and mint require a sudo to do anything in /root, so it is preferable, I think, to make that bit distro-agnostic, since it makes the program universal, makes no difference in operation, and in no way diminishes performance when you happen to be "su". In any case, I did that for my own purposes and, as you say, it was a cinch (one search and replace). And it worked.
With kind regards,
vovchik
Plain vanilla raspian and mint require a sudo to do anything in /root, so it is preferable, I think, to make that bit distro-agnostic, since it makes the program universal, makes no difference in operation, and in no way diminishes performance when you happen to be "su". In any case, I did that for my own purposes and, as you say, it was a cinch (one search and replace). And it worked.
With kind regards,
vovchik
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonsoir,
Merci beaucoup.
Cordialement.
Two things I noticed but I admit I don't know how to solve this. Concerning the use of the Enter key, I followed the section of the message "Press 'Enter' instead of clicking the 'Ok' button" in the zigbert's "GtkDialog - tips" thread but without success. The code is still in my script but has not the expected effect, probably because it should be applied to a simple "entry" and not a "comboboxentry". The Find button has the focus but looses it as soon as user click the boxes. If anyone has the solution, I'm interested!musher0 wrote:Is it possible to make the Enter key NOT ERASE the entry in the search-word box? Is it possible to make the Enter key start the search instead, like it does in most browsers? TIA.
This list, as said above, is created dynamically at startup of WebSearch. So, if you delete one the configuration file from the engine directory, this is immediately taken into account by the script, the same for any added configuration file. I thought about adding a button to open the engine directory but I forgot to do it.Is it possible to include a button to go edit the search list manually, in one's text editor? TIA
It would be possible but, as said above to mfb asking the same question, every one can jump to the welcome page of every sites, have a look and make his own opinion about their opportunity. I think that this has not to be integrated into the script but rather be the subject of a dedicated thread where everyone could contribute their opinion.I do not know most of the search engines you include. You mentioned somewhere above that 500px is for pictures, but I had to search about RottenTomatoes (it's for actors' reviews).
Is it possible to a have a short description of each search engine's specialty? (Or if it is a generalist search engine.) As a separate info file in plain text will be fine. TIA.
Sorry, I forgot to update the translation mo file of the latest version.Why is the Exit explanation only in English? (Pls see attached scrot.)
It is exactly my thought...As vovchik said, changing /root to $HOME is child's play. I did it and your v. 3 still works fine in this xenialPup-706_32-bits. So you could have ONE version for all Linuxes. (Just a thought.)
Merci beaucoup.
Cordialement.
- Attachments
-
- 181218_234358_2646x1024_easyshot.jpg
- (26.2 KiB) Downloaded 126 times
Hi Argolance,
Testing WebSearch 3.0 -- looks very good!
One small issue: In Preferences, italicized text does not render correctly in the tooltip of the 'Above' checkbox.
Perhaps 'tooltip-text' should be 'tooltip-markup' in line #219.
Thanks again!
Testing WebSearch 3.0 -- looks very good!
One small issue: In Preferences, italicized text does not render correctly in the tooltip of the 'Above' checkbox.
Perhaps 'tooltip-text' should be 'tooltip-markup' in line #219.
Thanks again!
[color=blue][b][url=http://www.smokey01.com/radky/PupMates.html]PupMates[/url][/b][/color]
Hello all.
Please find attached a brief description of the search engines included in
Argolance's utility, both as a screen capture, below, and as an attached ods
(OpenOffice scalc) file.
I plucked the descriptions from the sites themselves or from reliable sources
such as wikipedia, so they should be up to date as of this writing.
Please feel free to add below any significant info or precision about these
search sites.
Best regards
Please find attached a brief description of the search engines included in
Argolance's utility, both as a screen capture, below, and as an attached ods
(OpenOffice scalc) file.
I plucked the descriptions from the sites themselves or from reliable sources
such as wikipedia, so they should be up to date as of this writing.
Please feel free to add below any significant info or precision about these
search sites.
Best regards
- Attachments
-
- websearch_engines.zip
- (11.13 KiB) Downloaded 119 times
-
- Search-Engine-Types.jpg
- (198.26 KiB) Downloaded 354 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonsoir,
@musher0
I included this description as simple txt file displayed with Xdialog from WebSearch "Preferences" gui and also translated it into French for French speaking users...
WebSearch 0.4 is available. Details in the first message of this topic.
(thanks to vovchik)
Cordialement.
@musher0
Thank you so much for this!Please find attached a brief description of the search engines
I included this description as simple txt file displayed with Xdialog from WebSearch "Preferences" gui and also translated it into French for French speaking users...
WebSearch 0.4 is available. Details in the first message of this topic.
(thanks to vovchik)
Cordialement.
- Attachments
-
- 181219_194740_706x448_easyshot.jpg
- (60.79 KiB) Downloaded 341 times
Last edited by Argolance on Fri 04 Jan 2019, 09:48, edited 2 times in total.
- nilsonmorales
- Posts: 972
- Joined: Fri 15 Apr 2011, 14:39
- Location: El Salvador
spanish locales
rename gz to mo
- Attachments
-
- websearch.gz
- (6.57 KiB) Downloaded 129 times
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]
Hello Argolance and all.
The search engines table appeared somewhat jagged on my Pup so I tried
to rework the layout through the following script:
It looks perfect when viewed with the less utility:
but it still looks jagged (less than it was, let's say) when viewed
with websearch's gtkdialog viewer.
(Not a criticism, not a tease. This said wearing white gloves, and bowing
my head in respect. I'm just trying to help improve things, here.)
The formatting script above is sound, I have tested it numerous times.
Plus, it can accommodate tables in different languages, process them in a
row in a cinch, provided the originating csv2 files are well formed.
Now, if someone knows the magic formula for a text in columns to look
identical in console and GUI, please chime in?
I have included everything in the attached zip file, for interested
people to test, etc. (Do not forget to make the script executable before.)
BFN.
The search engines table appeared somewhat jagged on my Pup so I tried
to rework the layout through the following script:
Code: Select all
#!/bin/bash
# /root/my-applications/bin/BellePres.sh
# Répertoire suggéré pour ce script / Suggested directory
# for this script.
#
# But -- Améliorer la mise en forme des listes de moteurs
# de recherche de l'utilitaire "websearch" par Argolance. /
# Goal -- Improve the layout of the search engines lists in
# Argolance's utility "websearch".
#
# (c) musher0, Gatineau (Qc), Canada, 2018-12-19. GPL3.
####
Y=" : "
LongY="${#Y}"
#
for lang in fr en;do # On peut ajouter des langues. /
# More languages can be added.
#
ReP=/usr/local/websearch/help_files
TxT="$ReP/websearch_engines_$lang.txt2"
# Ce fichier pour éviter les accidents; en changer au besoin. /
# That file name to avoid accidents; change as needed.
rm -f $TxT
LignE="------------- : ------------------------------------------"
> $TxT
while read line;do
Z="";Z="$line"
A="";A="${Z%;*}";LongA="${#A}"
X="${Y:$LongA:$LongY}"
B="";B="${Z#*;}"
if [ "${A}" = " " ];then
echo "${Y}${B}" >> $TxT
else
echo "${A}${X}${B}" >> $TxT
fi
done < $ReP/websearch_engines_$lang.csv2
echo "$LignE" >> $TxT
more $TxT # On peut diéser cette ligne. /
# The above line can be commented out.
done
Code: Select all
Engine : Type
----------------------------------------------------------------------
500px : Canada-based global online photography
: community and network
Ask : Generalist search engine
Bandcamp : Pop music
Bing : Generalist search engine
CNN : American news network
Cplusplus : C++ Resources Network
Crunchyroll : Anime repertoire
Docker Hub : Library and community for container images
Dribbble : Community for Designers
DuckDuckGo : Generalist search engine
eBay : Online auction and shopping website
Ecosia : Search engine that plants trees
Facebook : Social media
Gibiru : Uncensored Anonymous Search
Giphy : Animated GIFs Search Engine
Google : General search engine
Internet Archive : Archived internet material
Lilo : Search engine that finances social and eco-
: friendly projects, and protects privacy.
Netflix : Online streaming of films and TV programs
NhacCuaTui : Free online music streaming
Pinterest : Multi-lingual visual discovery,
: collection, and storage tool
Quora : Forum to share knowledge and better
: understand the world.
Qwant : Forum-type search engine that respects your
: privacy, and eases discovering and sharing
: via a social approach
Rotten Tomatoes : Info on movies, celebs and critics,
: reviews and ratings, plus trailers and exclusives
Slideshare : Aims at making knowledge sharing easy
: through sharing of presentation slides
SoundCloud : Online audio distribution platform and
: music sharing website
Stack Overflow : Specialized Linux forum
Swisscows : Data-safe search engine and the absolute
: alternative to Google
The Register : Technology news and opinion website
Twitter : American real-time information network and
: social networking service
Vimeo : Video-sharing website
Wikipedia : Participative encyclopedia
WolframAlpha : Computational knowledge or answer engine
Yahoo : News, email and generalist search engine
Yandex : World-class, locally relevant search and
: information services
YouTube : Generalist video site
------------- : ------------------------------------------
with websearch's gtkdialog viewer.
(Not a criticism, not a tease. This said wearing white gloves, and bowing
my head in respect. I'm just trying to help improve things, here.)
The formatting script above is sound, I have tested it numerous times.
Plus, it can accommodate tables in different languages, process them in a
row in a cinch, provided the originating csv2 files are well formed.
Now, if someone knows the magic formula for a text in columns to look
identical in console and GUI, please chime in?
I have included everything in the attached zip file, for interested
people to test, etc. (Do not forget to make the script executable before.)
BFN.
- Attachments
-
- help_files.zip
- (8.33 KiB) Downloaded 101 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Puppy's custom-google search
Hi Argolance,
In the original post you provide gtk2desklet-3.1.pet. But, I can't find any reference to it or discussion about it. So, why and when?
Nevermind. Found it on first post: "Display WebSearch as desktop application (needs gtkdialog-desklet)".
But you've left out Puppy's Custom Google Search, the hardest Search-Engine to find, and the one most useful for tracking down Puppies' utilities and oddities:
https://cse.google.com/cse?cx=015995643 ... #gsc.tab=0.
FWIW: I can get WebSearch to open that engine, but not automatically use the Search Term entered into WebSearch. But then, I never represented that I could actually code.
Speaking of getting lost, I finally figured out how to use Aroglance's included text file identifying Search Engines: Click preferences, then Click the (!) at the bottom-right corner. But how to use --or test-- musher0's creation still escapes me.
In the original post you provide gtk2desklet-3.1.pet. But, I can't find any reference to it or discussion about it. So, why and when?
Nevermind. Found it on first post: "Display WebSearch as desktop application (needs gtkdialog-desklet)".
But you've left out Puppy's Custom Google Search, the hardest Search-Engine to find, and the one most useful for tracking down Puppies' utilities and oddities:
https://cse.google.com/cse?cx=015995643 ... #gsc.tab=0.
FWIW: I can get WebSearch to open that engine, but not automatically use the Search Term entered into WebSearch. But then, I never represented that I could actually code.
Speaking of getting lost, I finally figured out how to use Aroglance's included text file identifying Search Engines: Click preferences, then Click the (!) at the bottom-right corner. But how to use --or test-- musher0's creation still escapes me.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
I take this opportunity to report the error message below when using gtkdialog-desklet, that is not fatal and does not prevent the program from working properly but that an experienced coder could perhaps correct?
I admit I hesitated between two ways of displaying information about the engines:
-------------------------------------------
After listening to your suggestions (thank you all) and implementing some of them to the script, I do not see now what could be added to WebSearch and the next version should (don't smile!) be the final one. In the meantime here is a tar patch to fix the formatting problem.
Cordialement
gtk2desklet 3.1 by akash_rawal (sources files for compiling the lib are in the package).mikeslr wrote:In the original post you provide gtk2desklet-3.1.pet. But, I can't find any reference to it or discussion about it. So, why and when?
I take this opportunity to report the error message below when using gtkdialog-desklet, that is not fatal and does not prevent the program from working properly but that an experienced coder could perhaps correct?
Code: Select all
(gtkdialog:5297): Gtk-CRITICAL **: IA__gtk_widget_set_default_colormap: assertion `GDK_IS_COLORMAP (colormap)' failed
It is the case for this one and for some others. This is the reason why I didn't list them among the WebSearch engines.mikeslr wrote:FWIW: I can get WebSearch to open that engine, but not automatically use the Search Term entered into WebSearch.
Thank you for your effort to solve the text formatting. You are welcome.musher0 wrote:The search engines table appeared somewhat jagged on my Pup so I tried to rework the layout through the following script:
I admit I hesitated between two ways of displaying information about the engines:
- - a basic text file displayed through a simple Xdialog window
- an html file using the basichtmlviewer (it is what I usually do for scripts that I make for ToOpPy)
-------------------------------------------
After listening to your suggestions (thank you all) and implementing some of them to the script, I do not see now what could be added to WebSearch and the next version should (don't smile!) be the final one. In the meantime here is a tar patch to fix the formatting problem.
Cordialement
- Attachments
-
- websearch-engines-info-files_patch.tar.gz
- To unzip to /usr/local/websearch/
- (8.18 KiB) Downloaded 114 times
-
- 181220_122649_515x623_easyshot.jpg
- (64.48 KiB) Downloaded 252 times
I did some experimenting with Xdialog, as far as I know you cannot set the font with Xdialog, so did like this (to set to Mono font):Argolance wrote:I admit I hesitated between two ways of displaying information about the engines:
- a basic text file displayed through a simple Xdialog window
- an html file using the basichtmlviewer (it is what I usually do for scripts that I make for ToOpPy)
Code: Select all
# create /tmp/gtkrc_websearch
echo '
style "window"
{
# fg[NORMAL] = "#FF4B00"
# bg[NORMAL] = "#92A4A8"
# base[NORMAL] = "#4db1c5"
font_name= "DejaVu Sans Mono Bold 9"
}
class "GtkWidget" style "window"
' > /tmp/gtkrc_websearch
cat "/root/websearch_engines_en.txt" | awk -F "|" '//{printf "%-20s %s\n",$1, $2 }' | GTK2_RC_FILES="/tmp/gtkrc_websearch" Xdialog --title "WebSearch - Engines Info" --left --no-cancel --textbox - 30 130
Maybe it's useful somehow, your html output above looks better , btw.
Fred
- Attachments
-
- engines.png
- (122.1 KiB) Downloaded 250 times
-
- websearch_engines_en.txt.gz
- Remove fake .gz and place in /root to test above code
- (1.85 KiB) Downloaded 101 times