
Kuotes
Source (link to git-repo or to original if based on someone elses unmodified work):
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.
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.
Ratings & Comments
5 Comments
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!
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...
I remember there used to be an kicker applet called kuote, displaying random fortune cookies. Can you add that function?
Can you also make a version that randomly grabs quotes from Wikimedia's Wikiquotes project?
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).