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.. |