Help with Deleting Rounded Quotation Marks

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
deeverd
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 165
Joined: Mon Jul 16, 2007 11:58 pm

Help with Deleting Rounded Quotation Marks

Post by deeverd » Fri Jul 20, 2007 11:26 pm

Hello Forum,

Obviously I'm a newbie or I wouldn't be asking this basic question, but after several hours of effort to no avail, I thought I'd swallow my pride and ask the question:

How can I get rid of rounded quotation marks in a text field? Here's the problem, I made a little program that allows one to import text into a text field, and then to list all the words in that text in alphabetical order. This allows one to see how often they repeat certain words.

The problem is that any text that is imported that has a quote in it with quotation marks is usually composed of the fancier curved quotation marks, as opposed to the straight ASCII style quotation marks to which a Revolution search for the quote would turn up the quotation mark.

In other words, I can't find any way to get the program to find and delete those rounded quotation marks, and they are a problem because any word that is preceded by a quotation mark will not be sorted alphabetically. Instead, anything with a quotation mark attached before it, always is shown at the bottom of the list.

If anyone has any suggestions for what to do to get rid of these rounded quotation marks, I would greatly appreciate the suggestion. One thing I tried today was to set the imported text to other font styles such as Courier, which uses the straight ASCII style quote marks, but that doesn't work either, since other fonts don't recognize what the rounded quotation marks were in the first place. Instead, they wind up as single, thick, bold, vertical lines where the rounded quotes used to be.

I sure hope somebody else knows what to do here. Thanks in advance to whoever can help out.

All the best,
deeverd

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat Jul 21, 2007 12:54 am

Dear deeverd,

This might help:

replace numToChar(210) with quote in myText
replace numToChar(211) with quote in myText

210 and 211 are the numbers you need if on a Mac. The numbers may be different on Windows.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

deeverd
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 165
Joined: Mon Jul 16, 2007 11:58 pm

A Million and One Thanks

Post by deeverd » Sat Jul 21, 2007 7:32 pm

Thank you very much Mark,

I'm using a Window's system, so even if the characters are a different number, which I have no idea yet, at least I now understand the concept and can find out how to replace those frustrating rounded quotation marks.

Also, thanks again for your reply to my ideas on the other forum for Revolution suggestions. Being so new at all this, I had no idea that anything Java could even be run from the Rev browser, but now that I think about it, I can see how. However, I still know it's a great idea to offer a Java-to-Revolution interpreter, and have even heard that the Revolution team office has been considering that idea for some time before I ever mentioned it.

All the best, deeverd

Post Reply