 |
|
 |
You have an error in the HTML in your article. It's when you're describing how you look for the dictionary files...it's the only code block in your article. First, you need to include the quotes around the lang value in the PRE tag. Secondly, and ironically, you misspelled text. Currently, your HTML looks like
<PRE lang=texy>
It should be
<PRE lang="text">
|
|
|
|
 |
|
 |
Are there any version of MySpell lib that has static references. I'm trying to recreate the code using MASM32.
|
|
|
|
 |
|
 |
Hey when i use your source release .exe it does not show the red underlines....when i press ok it closes when i press cancel it closes
|
|
|
|
 |
|
 |
I noticed that IMPLEMENT_DYNAMIC is missing. I am doing some investigating of inheriting from MFC classes and the compiler fails on IMPLEMENT_DYNAMIC. Could you explain why?
Thanks
|
|
|
|
 |
|
 |
do you have (or plan to) updated version with hunspell ? (which is the next version of MySpell used in OpenOffice)
are there any tools to atomatically generate dictionaries (given the list of words) ?
|
|
|
|
 |
|
 |
I noteice that the supplied solution file is not recognized as such by my .NET IDE. I can not compile this using my VS6, either. Seems like a great componant, but I dont know how to get this into my projects.
Any advise or suggestions would be appreciated.
|
|
|
|
 |
|
 |
Hi Steve King,
Can you drop me an email with regards to gaining your permission to use the SpellEdit class in a free to download configuration tool.
I'll explain more when you when you email me back.
Keith
|
|
|
|
 |
|
 |
Where myspell homepage/manual
thanks
Hesham
|
|
|
|
 |
|
 |
Does anyone know of any tools that allow you add words to the dictionary files that SpellEdit / Myspell uses?
|
|
|
|
 |
|
 |
Well, I just used notepad to edit the .dic file.
|
|
|
|
 |
|
 |
I had changed and incorporated SpellEdit into my program. There seems to be some memory leak when the SpellChecker trying to get the suggestion for some poorly spelled words, for example: "nStartChar". Once I disabled the nGram segment of the myspell::suggestion(), the memory leaks are gone.
This seems to be a MySpell problem, does anyone else encounter similar problem?
|
|
|
|
 |
|
 |
When I added CSpellEdit and all mySpell files to my project, the compiler reports the following fatal errors:
Compiling...
unmunch.c
c:\Data\SpellEditPrototype\myspell\unmunch.c(499) : fatal error C1010: unexpected end of file while looking for precompiled header directive
munch.c
c:\Data\SpellEditPrototype\myspell\munch.c(827) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Any thoughts?
|
|
|
|
 |
|
 |
I had since fixed this error by adding #include "stdafx.h" in each of the MySpell's cpp file
|
|
|
|
 |
|
 |
Anonymous wrote:
I had since fixed this error by adding #include "stdafx.h" in each of the MySpell's cpp file
You could also set MySpell.cpp to not use precompiled headers in the project settings.
|
|
|
|
 |
|
 |
hi guys,
i have trouble with this code. i can't seem to get it to compile. i keep getting errors.
is it possible if i can get the full project????
|
|
|
|
 |
|
 |
what kind of error are you getting?
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
 |
|
 |
These are the errors that I get. I really don't know whats wrong.
Will it be possible if someone could post up the the .dsw and .dsp files?? Or perhaps put a tutorial for this article. It looks a really cool article.
It will be great for beginners like me.
I really need to get this example working because i want to use MySpell in a project of mine. We are currently in the process of making the affix file for our local language. It doesn't have a spell checker
c:\program files\microsoft visual studio\vc98\mfc\include\afxv_w32.h(119) : warning C4005: '_WIN32_WINDOWS' : macro redefinition
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\stdafx.h(22) : see previous definition of '_WIN32_WINDOWS'
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(94) : error C2065: 'CStringA' : undeclared identifier
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(94) : error C2146: syntax error : missing ';' before identifier 'worda'
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(94) : error C2065: 'worda' : undeclared identifier
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(95) : error C2228: left of '.Trim' must have class/struct/union type
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(192) : error C2562: 'OnContextMenu' : 'void' function returning a value
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.h(85) : see declaration of 'OnContextMenu'
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(292) : error C2146: syntax error : missing ';' before identifier 'worda'
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(334) : error C2228: left of '.MakeLower' must have class/struct/union type
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(335) : error C2228: left of '.GetLength' must have class/struct/union type
c:\documents and settings\rjnl\desktop\foss\spellcheckededitctrl\spelledit.cpp(378) : error C2039: 'GetCount' : is not a member of 'CPtrArray'
c:\program files\microsoft visual studio\vc98\mfc\include\afxcoll.h(355) : see declaration of 'CPtrArray'
affentry.cxx
|
|
|
|
 |
|
 |
hi guys,
i have trouble with this code. i can't seem to get it to compile. i keep getting errors.
|
|
|
|
 |
|
 |
Thanx a lot, I've just added this class to my current project! I encountered one problem though... In CSpellEdit::OnTimer, the following line drawing update needs to be added, just after obtaining the current line:
{
CPen eraserPen(PS_SOLID, 0, dc.GetBkColor());
CPen* errorPen = dc.SelectObject(&eraserPen);
CSize lineSize = dc.GetTextExtent(line);
CharPos = PosFromChar(nLineIndex);
dc.MoveTo(CharPos.x, CharPos.y + lineSize.cy);
dc.LineTo(CharPos.x + (rect.right - rect.left), CharPos.y + lineSize.cy);
dc.SelectObject(errorPen);
}
|
|
|
|
 |
|
 |
SteveKing wrote ...
Note: some of those dictionaries are distributed under GPL, which means you can't pack and install those with your commercial app. But your users can still download and use those dictionaries themselves.
This is not true!
One can and is encouraged to distribute these dictionaries with the application.
Only that:
1) If the dictionary is compiled from Data files using some tools and Make/project files Than all these should be supplied as well. In general the user should have all he needs to be able to change /enhance these dictionaries.
2) Any changes made by the application author should be made available to it's users.
3) The users must be allowed to freely copy and distribute those GPL parts of the application. (Note: this does not mean the user can copy and distribute the all application. Only the Dictionary in this case.)
BSD License in this respect differs from GPL that Privet owner can make changes to Items and does not have to show/give these changes. GPL prevents that.
Free Life & Linux
Boaz
|
|
|
|
 |
|
 |
Thanks. Article corrected.
|
|
|
|
 |
|
 |
In the last paragraph of the Ordinal GNU GPL license, you can find this:
"This General Public License does not permit incorporating your program into
proprietary programs."
That say, if a library/dictionary is distributed under GNU GPL license, no properietary sofware is allowed to linked/incoporated it.
|
|
|
|
 |
|
 |
Yes but if you look deeper it is talking About mer aggregation (packaging). Meaning packaging is allowed. So an installer like Fudora can package together GPL and proprietary components. The piece of code Intimate with the Dictionary is the MySpell library which is LGPL and is allowed to be Linked to. Then the Dictionary itself is Distributable. (Provided you comply to the restriction I stated above). If you make any changes to MySpell than that you must provide.
Think of KDE if what you say is true than It is not allowed to package and run proprietary apps. Same with proprietary Window manager/luncher that packages GPL apps.
I say you can. If in doubt you can always drop a note to the Author and ask, but if you check you'll see that it has been done before. "Star Office" uses what? Netscape that used to package Mozilla with other proprietary packages used these same dictionaries.
So as I said mer aggregation is allowed see the GPL.
Free Life & Linux
Boaz
|
|
|
|
 |
|
 |
In the clause 2 of GPL and the introduction section of LGPL, clearly stated GPL software/libraries are NOT allowed to be linked by the propietery (free or commercial) software. By linking to any any GPL'd code, the resulting work, form a combined work. by definition, it is a derived work of the GPL'd library, thus make the combined work subjected to GPL. This is also mentioned in the FSF official GPL FAQ: http://www.gnu.org/licenses/gpl-faq.html#IfLibraryIsGPL.
The license does not have a clear definition on 'Mere aggregation'. If you package 2 unreleated programs/sofware/code/library/works into one medium, for example, MS word and a GPL chess game, sure thing, its a "mere aggregation". However, if mySpell is incorporated into a closed source application, and the resulting application needs to read the dictionaries that are covered by GPL, it is more like a combined work because the application relies on these dictionaries to perform the spell checking.
If this thing is ended up in court, it is upto the lawyers to argue and the judge to decide if it is a 'aggregation' or 'combined work'. Us, the developers, are not in the position to decide these things.
All I am saying is if anyone is developing 'closed source' application (be it free or commercial), be extremely mindful of linking any code/work covered by GPL. Unless obtained the author's written permission to do so, it best NOT to do so.
Also, MySpell is distributed under some form of BSD license, not LGPL, thus you are not required to publish any changes you made to the MySpell source code.
|
|
|
|
 |
|
 |
Obviously I'm not a legal eagle so if I used MySpell and/or MyThes in an application what do I need to do in order to distribute it? What copyright information and what disclaimers?
If I used it in an application (say an html editor) could I charge for it?
ed
~"Watch your thoughts; they become your words. Watch your words they become your actions.
Watch your actions; they become your habits. Watch your habits; they become your character.
Watch your character; it becomes your destiny."
-Frank Outlaw.
|
|
|
|
 |