Skip to content
This repository has been archived by the owner on Aug 21, 2020. It is now read-only.

Fix the PSpellEngine getSuggestions function #18

Closed
wants to merge 1 commit into from

Conversation

segrax
Copy link

@segrax segrax commented Sep 30, 2015

The getSuggestions function wasn't returning any suggestions, only which words had been misspelt

$outWords[$word] = array();

foreach( pspell_suggest($plink, trim($word)) as $suggestedWord ) {
$outWords[$word][] = utf8_encode($suggestedWord);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If pspell already outputs utf-8 things will be double encoded, resulting in broken output

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, i'll look into a proper fix for it soon

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see #19

@tinydylan
Copy link

This GitHub repository contains the server-side code for the TinyMCE Community SpellChecker Plugin. This plugin was deprecated with the release of TinyMCE 5.4. No more development will be done on this plugin, and we are closing all associated pull requests.

For more information, please see:

TinyMCE Spellchecker: What are your Options

TinyMCE 5.4 Release Notes

@tinydylan tinydylan closed this Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants