Spelling checking

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Zaphod
User
User
Posts: 13
Joined: Thu Feb 19, 2004 1:25 pm

Spelling checking

Post by Zaphod »

It would probably be a bigger task to implement, but what would really be a nifty feature would be integrated (but optional!) spelling checking support for StringGadget and EditorGadget maybe in the form of a #PB_String_Spellcheck flag.

There are free dictionaries available from the open source scene iirc, which could be used.
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Spelling checking

Post by c4s »

-1

You can easily implement it yourself. Too much options would need to be adjusted for your own needs which can't be expressed with a simple #PB_String_Spellcheck flag: Language, precision, which dictionary?, grammar? etc.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Zaphod
User
User
Posts: 13
Joined: Thu Feb 19, 2004 1:25 pm

Re: Spelling checking

Post by Zaphod »

I can't highlight single words in a StringGadget, so how would someone implement that from the user side of PB?

I don't think too much options would be the problem. Precision could just be a standard value, i have yet to encounter a Program that lets users select that.
A PB Program could just use the dictionary it finds in its root directory by default with one single additional function like SetGadgetDictionary or SetDictionary to select another for multi language support.

This is most likely not going to happen, but I do think the amount of Apps profiting from something like that would be substantial.
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: Spelling checking

Post by MachineCode »

Zaphod wrote:I can't highlight single words in a StringGadget
What do you mean? By using the mouse, or by code? Both can certainly be done.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: Spelling checking

Post by moogle »

This is more specialised stuff that should be managed by the programmer. Really all PB should have is core widgets and functions like other languages have.
Image
Zaphod
User
User
Posts: 13
Joined: Thu Feb 19, 2004 1:25 pm

Re: Spelling checking

Post by Zaphod »

MachineCode wrote:
Zaphod wrote:I can't highlight single words in a StringGadget
What do you mean? By using the mouse, or by code? Both can certainly be done.
Well, selecting isn't what I mean by highlighting. I can't change the color of a single word or draw a thin red line below it. I could probably do that with winapi, but then I would give up portability which is the most important feature for me and I have no clue how that could be done on Gtk and Cocoa.
moogle wrote:This is more specialised stuff that should be managed by the programmer. Really all PB should have is core widgets and functions like other languages have.
Same could be said for the 3d engine. This has such a wide area of uses that I think it should be a framework feature.
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Re: Spelling checking

Post by moogle »

Zaphod wrote:Same could be said for the 3d engine. This has such a wide area of uses that I think it should be a framework feature.
I agree on the 3D engine, however you still have to use the engine commands to make something. This spell checking idea seems like the PB team making it instead.


If the idea is to allow us to change the style and format of words in text boxes (which would help users make a spellchecking style program) then that's a decent proposal where you can add your own spell checking features.


However just adding spellchecking into PB seems like a silly idea.
Image
Post Reply