Zabaware Support Forums

Quotes in Jokes Plugin

Started by James007, February 13, 2009, 05:33:17 PM

Previous topic - Next topic

James007

I am getting really funny output from Hal when she tells a joke. If it's quoted it reads out <&qout> rather then the classic """ sign. Any idea whats causing it?
Great spirits have often encountered violent opposition from mediocre minds. -Albert Einstein
...but I'm so good at mediocre. -James

Bill819

quote:
Originally posted by James007

I am getting really funny output from Hal when she tells a joke. If it's quoted it reads out <&qout> rather then the classic """ sign. Any idea whats causing it?


I don't think that quotes are needed in the Joke files. That may be your problem.
Bill
 

James007

The jokes which were provided in a text file that came with the plugin have quotes built in like:

How does a spoiled rich girl change a lightbulb? .......... She says, <quote>Daddy, I want a new apartment.<quote> .

The quotes are not being read correctly displayed by the plugin. The answer to this joke will read:

& quot;Daddy, I want a new apartment.& quot; (There is no space between the ampersands and the "quot;" but it only reads as a quotation mark on this forum unless I add the space.)

This is a little odd. I think the newest version of Hal has a different way of processing a quotation when read from a text file. I'd be interested in a fix as my UltraHal (Mary) loves to tell these jokes more then anything else she talks about. I think I have a regular comedian in this brain. I'd like to keep her comedy a bit more elegant than she is displaying right now.  [:)]
Great spirits have often encountered violent opposition from mediocre minds. -Albert Einstein
...but I'm so good at mediocre. -James

Bill819

The old version of the Hal joke file did not use quotes at all. I will enclose it for you to test.

Download Attachment: jokes.txt
24.95 KB
 

James007

Bill, the quotes are still in this file?
Great spirits have often encountered violent opposition from mediocre minds. -Albert Einstein
...but I'm so good at mediocre. -James

Bill819

quote:
Originally posted by James007

Bill, the quotes are still in this file?


There were no quotes in the file I posted.
Bill
 

freddy888

Sorry Bill, I see it has quotes (<quote>) too...

Bill819

To Freddy and Jame
I don't know what you are using to open the *.txt file with but the file was created with no quotes and still appears that way to me when I open it. It does have a series of (.) periods as they were used to create small pauses. It never worked that good though.
Tell you what, if you two would send me an email with your email addresses I will then send you the file that way. If you use WordPad to open the file you should not see any quotes at least I don't.
Bill
 

freddy888

Have sent you a message with my email.  Thanks [:)]

Bill819

quote:
Originally posted by freddy888

Have sent you a message with my email.  Thanks [:)]


Freddy
So far I have not received any emails from you. I will keep an eye out for one.
The joke file I posted is from Hal 5 and it worked just fine there. I can't remember if I tested it on Hal 6 though.
Bill
 

freddy888

Hi Bill, yes for some reason my message sent from this forum didn't reach you.  Something about the connection timing out.

Here is my email :  freddy at aidreams.co.uk

James007

Thanks for the offer Bill. I'll forward my email. The quotes I was talking about are in the form of - <quote> - not the - " - character. I asked on the forum because I figured there must have been a change in Hal 6.x that caused the odd behavior. I can remove the - <quote> - instances from the file very quickly with a find/replace but thank you for the offer.
Great spirits have often encountered violent opposition from mediocre minds. -Albert Einstein
...but I'm so good at mediocre. -James