miniBB ®
 
miniBB Community Forum
 | Forums | File Bank | Sign Up | Reply | Search | Statistics | Manual |
Forums Checker addon for miniBB Check-up your forums instantly without missing any new posting using the Forums Checker add-on!
Official Addons and Solutions miniBB Community Forum / Official Addons and Solutions /
Short link for this topic:

mSpell: Spell Checker

 Page Page 3 of 5:  ««  1  2  3  4  5  »» 
Author tom322
Forums Member
#31 | Posted: 9 May 2006 16:19
OK, I don't receive any javascript errors now -- but for some reason the same IE error that the script is running slow still appears. Maybe something wrong with my system - if other members could check that woudl be great ;).
Author Sergei
Team member
#32 | Posted: 9 May 2006 23:23
tom322
what text are you using to check it? can you copy/paste it here?
Author Sergei
Team member
#33 | Posted: 9 May 2006 23:27
tom322
well i believe i was able to recreate the problem :) it's not something you can see at first sight.. some rare bug in the JS part of the script which appears only when there's some random character sequence which doesn't match any spelling dictionary at the very bottom of the message you check. I'm going to investigate the problem.
Author tom322
Forums Member
#34 | Posted: 10 May 2006 00:29
OK :). I just put a random text like,

sdsfd sdasdas dasdsfdsfd asdj8832l
sdasfd as;das ;)

It always works :)).

----

Also, if I may suggest - I think the popup window should be a little bigger so that there are no scroll bars.
Author Sergei
Team member
#35 | Posted: 10 May 2006 02:47 | Edited by: Sergei
tom322
it's just not big enough on this particular site :) you can adjust the popup size in the HTML code inserted into the main_post_form template depending on the forum design requirements.

edited..
ahh well my mistake.. i forgot i have it in the the msploader.js file where it says:

var wdp=300, htp=200

these values correspond to width and height respectively :)
Author Sergei
Team member
#36 | Posted: 10 May 2006 04:59
tom322
ok, this issue has been resolved now. the updated plugin is available in the downloads section.

Once again the file which needs to be updated is mSpell.php
Author tom322
Forums Member
#37 | Posted: 10 May 2006 05:03
Ok, sounds good :).

One more suggestion (remember I'm looking on the example site provided at http://www.minibb.com/forums/9_3702_0.html#msg22673 -- I'm not sure why the "Spelling suggestions" box contains empty entries. For example, when there are 5 spelling suggestions, the box should be 5 or 6 rows "long". Currently there are 5 suggestions and dozens of empty rows...
Author Team
8-)
#38 | Posted: 10 May 2006 05:35 | Edited by: Team
tom322
currently there's no fix for that, it's because of a javascript issue in IE browser.. we have to keep these empty fields there or there's no way to populate the spelling suggestions drop down menu .. it just remains empty. This may be fixed in future releases if we'll find a way to overcome the problem.
Author tom322
Forums Member
#39 | Posted: 11 May 2006 20:45 | Edited by: tom322
Thanks for your reply, Team.

I've just stumbled upon a similar spell-checker at http://www.articlebiz.com/submit_article/ - maybe some ideas could be used if you find it helpful ["Undo" button could be a good idea for some users too].
Author Sergei
Team member
#40 | Posted: 11 May 2006 21:18
tom322
we'll have undo/redo buttons etc in our forthcoming commercial BBCodes compatible WYSIWYG solution :)

about the spell checker links :) thanks, i'll check it. Hopefully the addon works now in general and I'll just keep making it better when i'll have time.
Author Team
8-)
#41 | Posted: 30 May 2006 20:11 | Edited by: Team
The addon has been updated today. We've noticed that it was trying to spellcheck numbers also :) which is somewhat annoying if you have lots of numbers in your post. Now it should spellcheck words only. The only updated file is mSpell.php
Author Sergei
Team member
#42 | Posted: 16 Jul 2006 04:18 | Edited by: Sergei
The addon has been updated to meet more multilingual requirements.

Added "setlocale()" support. Now mSpell will set the locale (local language etc.) based on your spelling language preference.

Added $doNotCheck variable. $doNotCheck variable may be useful in case you're using mSpell for languages other than english and your server doesn't support the "setlocale()" PHP function, which sets the range of the \W regexp pattern depending on characters present in the specified language. You can manually define all characters you want to remove in this case.

Updated file(s): mSpell.php
Author marsbar
Associated Member
#43 | Posted: 14 Oct 2006 21:13 | Edited by: marsbar
Hi Sergei/miniBB Team,

A Mac user (using Safari 2.x) on my forums recently reported that mSpell had been stripping typographic/curly quotation marks and apostrophes out of his posts automatically. He also said that mSpell would query anything before the mark and that instructing the script to ignore the highlighted bit had not prevented the mark from being removed.

I have not been able to re-create the Mac user's experience, but my tests show the following behaviour:
if mSpell detects no typos in my post, it leaves all the typographic quotation marks and apostrophes alone; if mSpell detects a typo and I ignore its advice to correct anything, the marks stay unchanged. However, if I make a change/any change via mSpell, each mark is replaced by small letter "a" with a circumflex accent.

- mb
Author Sergei
Team member
#44 | Posted: 17 Oct 2006 02:34 | Edited by: Sergei
hello.. Macs are using non-standard quotation marks and possibly apostrophes (not sure about these though)... These are, probably, similar to MS Word's Smart quotes.. Aspell/Pspell dictionaries come with default "normal" apostrophes, which are standard for Linux and Unix machines. The best and the simplest solution for this would be replacing all Mac apostrophes and quotation marks with standard corresponding linux/windows symbols.

You can try using the following approach for that.. Replace the following portion of code in the mSpell.php:

<body class="gbody" style="margin:0px;">
<script type="text/javascript">
<!--
var wParent=opener;
document.write('<form name="spForm" method="post" action="mSpell.php">\
<input type="hidden" name="setlang" value="<?php echo $lang ?>" />\
<input type="hidden" name="spellLang" value="'+escape(eval("wParent."+wParent.spChkLang+".value"))+'" />\
<input type="hidden" name="spellText" value="" />\
<'+'scrip'+'t type="text/ja'+'vascr'+'ipt">\
document.forms["spForm"].spellText.value=eval("wParent."+wParent.spChk Item+".value");\
document.forms["spForm"].submit();\
</scr'+'ipt>'+'\
</form>');
//-->
</script>
</body>


with this:


<body class="gbody" style="margin:0px;">
<script type="text/javascript">
<!--
var wParent=opener;
var sqFreeText=eval("wParent."+wParent.spChkItem+".value").replace(new RegExp(String.fromCharCode(8216),"g"),"'")
sqFreeText=sqFreeText.replace(new RegExp(String.fromCharCode(8217),"g"),"'");
sqFreeText=sqFreeText.replace(new RegExp(String.fromCharCode(8220),"g"),"\"");
sqFreeText=sqFreeText.replace(new RegExp(String.fromCharCode(8221),"g"),"\"");
document.write('<form name="spForm" method="post" action="mSpell.php">\
<input type="hidden" name="setlang" value="<?php echo $lang ?>" />\
<input type="hidden" name="spellLang" value="'+escape(eval("wParent."+wParent.spChkLang+".value"))+'" />\
<input type="hidden" name="spellText" value="" />\
<'+'scrip'+'t type="text/ja'+'vascr'+'ipt">\
document.forms["spForm"].spellText.value=escape(sqFreeText);\
document.forms["spForm"].submit();\
</scr'+'ipt>'+'\
</form>');
//-->
</script>
</body>


Let us know how it works..
Author Sergei
Team member
#45 | Posted: 17 Oct 2006 02:35
Basically you need to change:

document.forms["spForm"].spellText.value=eval("wParent."+wParent.spChk Item+".value");\


to

document.forms["spForm"].spellText.value=sqFreeText;

and add:

var sqFreeText=eval("wParent."+wParent.spChkItem+".value").replace(new RegExp(String.fromCharCode(8216),"g"),"'")
sqFreeText=sqFreeText.replace(new RegExp(String.fromCharCode(8217),"g"),"'");
sqFreeText=sqFreeText.replace(new RegExp(String.fromCharCode(8220),"g"),"\"");
sqFreeText=sqFreeText.replace(new RegExp(String.fromCharCode(8221),"g"),"\"");

on top of that Javascript code..
 Page Page 3 of 5:  ««  1  2  3  4  5  »» 
Official Addons and Solutions miniBB Community Forum / Official Addons and Solutions / mSpell: Spell Checker Top
Your Reply Click this icon to move up to the quoted message

» Username  » Password 
You are welcome to post anonymously by entering a nickname with no password (if that nickname has not been taken by another member) or by leaving both fields empty. If you have a forums membership account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.

 
miniBB Community Forum Powered by Free Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts