Kuotes

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5.0
Description:

Get a random quote from wikiquote, fortune or http://www.softwarequotes.com/ and put it to your desktop.

To install it, first uncompress the package, then put the quotes.sh shell script in your ~/bin. That's all.

To configure, edit ~/.kuotes/config.txt file.
Last changelog:

14 years ago

Future plan - Rewrite all code in Python.
- Exted support for wikiquote.

0.0.5 - Others bugs fixed.
- Others wikiquote improvements.
- Fortune now work again.
0.0.4 - Ssome bugs fixed.
- Another improvement at wikiquote support
- Now the code use the special wikiquote page "Random" (es. http://en.wikiquote.org/wiki/Special:Random) to generate an URL to wikiquote pages.
- Added wikiquote in fr, de, es, pt languages.
0.0.3 - Added fortune quotes.
- Improved support for wikiquote and rewritten most of regular expressions.
- Added generation of default config file when this not exist.
0.0.2 - Replaced grep perl based regular expressions with grep basic regular expressions.
- Added a configuration file (~/.kuotes/config.txt).
- Quote text now is written in ~/.kuotes/kuotes.txt, instead of ~/.kuotes.txt file.
- Added very experimental wikiquote support (only english and italian language are supported).

0.0.1 - First release.

Alerander

14 years ago

Hi, you have done a nice job! Thank you!
I'm wondering if i can quote my own text to this applet? For example, something in .kuotes/kuotes.txt?
Thank you in advance!

Report

C

alex77s

14 years ago

Uhm...
Yes, it's possible.

The theme consist (currently) of a .theme file (kuotes.theme) and a bash script (quotes.sh).

The kuotes.theme every hour call quotes.sh script (first "text" command), that recover a quote (basing on the options in config.txt file), and put them in the kuotes.txt file. Then the kuotes.txt is parser by the last two "text" command in kuote.theme file, and the author and quote text are extracted.

If you replace the quotes.sh script (or add another function to it) with yuor own script that fill the kuotes.txt file with a compatible text, you would have to obtain what that you want (I hope).

For example it's possible to built a function in the quotes.sh that extract a random quote from a text file that contain a list of quotes separated by special char. Perhaps I can add this feature in the next release...

Report

karunamurti

14 years ago

I remember there used to be an kicker applet called kuote, displaying random fortune cookies. Can you add that function?

Report

DaBlade

14 years ago

Can you also make a version that randomly grabs quotes from Wikimedia's Wikiquotes project?

Report

C

alex77s

14 years ago

I'm trying, but it isn't simple. I hope it isn't also impossible to do.

Major difficult is to catch the correct page for alphabetical index (http://en.wikiquote.org/wiki/Wikiquote:Quick_index) for various languages (english page is Quick_index, italian page is Indice_articoli, french page is ???), without have to code this pages in the script.
Another problem is to treat pages like this http://en.wikiquote.org/wiki/Citizen_Kane).

Report

14 years ago

Future plan - Rewrite all code in Python.
- Exted support for wikiquote.

0.0.5 - Others bugs fixed.
- Others wikiquote improvements.
- Fortune now work again.
0.0.4 - Ssome bugs fixed.
- Another improvement at wikiquote support
- Now the code use the special wikiquote page "Random" (es. http://en.wikiquote.org/wiki/Special:Random) to generate an URL to wikiquote pages.
- Added wikiquote in fr, de, es, pt languages.
0.0.3 - Added fortune quotes.
- Improved support for wikiquote and rewritten most of regular expressions.
- Added generation of default config file when this not exist.
0.0.2 - Replaced grep perl based regular expressions with grep basic regular expressions.
- Added a configuration file (~/.kuotes/config.txt).
- Quote text now is written in ~/.kuotes/kuotes.txt, instead of ~/.kuotes.txt file.
- Added very experimental wikiquote support (only english and italian language are supported).

0.0.1 - First release.

12345678910
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.0.5
updated Mar 28 2006
added Feb 27 2006
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0