DateBk6: Quote Of The Day Plugin

This plugin allows you to display quotes from a memopad file in the Today View. The quotes can either be displayed sequentially or in random order and can be refreshed once a day or each time the Today View is invoked.

A sample list of quotes is attached (all are by Albert Einstein except the first three which are words of wisdom from CESD - since I wrote the plug-in I get to choose the sample quotes<g>). The format of the quote file is just a single line of text followed by a return/linefeed character (it may wrap to several lines on the screen, but it is the Cr|Lf that terminates the quote.

To use this file, bring up 'sample quotes.txt' in any text editor on your desktop, select all text and COPY all the text to the clipboard. Then launch the Palm Desktop with memos displayed (or whatever desktop software you are using to edit/display memos) and PASTE this in as a new memo. This will provide you with a sample set of quotes and a starting off point for adding/editing the memo for new quotes.

Each quote begins with a # immediately followed by a number which identifies the quote. Quotes are selected by this number and the quote memopad is searched, so there is no absolute requirement that these numbers be sequentially assigned, but it's a good idea to do that. If a quote is not found, nothing appears in the Today View's quote section.

To anticipate two obvious suggestions:

(1) it is not practical to dynamically adjust the number of lines for this plug-in - all plug-ins have to have a fixed number of lines assigned, and

(2) I may in the future add the ability to display quotes in a small or tiny font even though the default font for the Today View is Normal.

Revision History:
2.2 - added check for corrupt Quote file that has no quotes at all AND user selected RANDOM as the display mode (caused divide by zero error in prior versions).
