Skip to content

Commit

Permalink
Merge 013f0bd into 1c5d8a6
Browse files Browse the repository at this point in the history
  • Loading branch information
rschwanhold committed Jul 12, 2018
2 parents 1c5d8a6 + 013f0bd commit 583d205
Show file tree
Hide file tree
Showing 137 changed files with 61 additions and 147 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ getMenu: shiftKeyState
so we can give the selection interval to the model."

getMenuSelector == nil ifTrue: [^ nil].
(getMenuSelector numArgs < 3 and: [self styler class == SpellingTextStyler])
(getMenuSelector numArgs < 3 and: [self styler class == SpellcheckTextStyler])
ifTrue: [^ self getMenuWithSpellcheckingAtTop: (super getMenu: shiftKeyState)]
ifFalse: [^ super getMenu: shiftKeyState.].
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"addSpellcheckingMenuItems:selectedText:" : "ow 5/29/2018 12:20:19",
"addSuggestionsMenuItemsTo:For:" : "RS 5/24/2018 22:12:35",
"addWordToDictionaryAndUpdateStyling" : "ow 5/29/2018 12:09:32",
"getMenu:" : "RS 5/27/2018 17:37:12",
"getMenu:" : "pz 7/12/2018 20:00",
"getMenuWithSpellcheckingAtTop:" : "ow 5/29/2018 12:18:52",
"handleSpellCheckingMenuItems:" : "ow 5/29/2018 12:17:34" } }

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
initialize

Smalltalk addToStartUpList: SpellcheckChecker
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
initialize-release
initialize

hunspell := HunspellAPI new.
parser := SpellingTextParser new.
hunspell := SpellcheckHunspellAPI new.
parser := SpellcheckTextParser new.
AddedWords ifNil: [AddedWords := Set new].
self reloadAddedWords
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"class" : {
"initialize" : "ow 7/5/2018 16:58",
"initialize" : "pz 7/12/2018 19:57",
"instance" : "ow 7/7/2018 17:29",
"instance:" : "ow 6/8/2018 13:26:08",
"startUp:" : "ow 5/31/2018 18:30:40" },
Expand All @@ -13,7 +13,7 @@
"dictionaryPath" : "ow 7/7/2018 17:30",
"dictionaryPath:" : "ow 7/7/2018 17:18",
"ignoreWord:" : "yk 6/14/2018 17:30:11",
"initialize" : "ow 7/5/2018 16:59",
"initialize" : "pz 7/12/2018 20:00",
"isSpelledCorrectly:" : "ow 5/24/2018 17:13:38",
"mistakenWordsIn:" : "ow 7/5/2018 17:03",
"reloadAddedWords" : "yk 5/26/2018 11:18:44",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"parser",
"dictionaryPath",
"affixPath" ],
"name" : "SpellChecker",
"name" : "SpellcheckChecker",
"pools" : [
],
"super" : "Object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ initialize-release
initialize

super initialize.
spellChecker := SpellChecker instance
spellChecker := SpellcheckChecker instance
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
},
"instance" : {
"highlightSpellingMistakes:in:" : "II 7/2/2018 22:52",
"initialize" : "II 6/9/2018 16:09:03",
"initialize" : "pz 7/12/2018 19:57",
"privateStyle:" : "II 6/9/2018 16:11:59",
"spellChecker" : "ow 6/14/2018 17:31:08" } }
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buttons
addToDict

SpellChecker instance addWordToDictionary: self currentWord.
SpellcheckChecker instance addWordToDictionary: self currentWord.
self dismissCurrentDisplayedWord
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buttons
ignore

SpellChecker instance ignoreWord: self currentWord.
SpellcheckChecker instance ignoreWord: self currentWord.
self dismissCurrentDisplayedWord
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ ignoreAll

wrongWords ifNotNil: [
wrongWords keysAndValuesDo: [ :key :value |
SpellChecker instance ignoreWord: (inputText string copyFrom: key to: value)]].
SpellcheckChecker instance ignoreWord: (inputText string copyFrom: key to: value)]].
self clear
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
initialize
initialize

parser := SpellingTextParser new.
parser := SpellcheckTextParser new.
self clear
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ initialize
inputText: aText

inputText := aText asText. "might be a string"
wrongWords := (SpellChecker instance mistakenWordsIn: aText string).
wrongWords := (SpellcheckChecker instance mistakenWordsIn: aText string).
keyArray := wrongWords keys asSortedCollection asOrderedCollection.

self displayCurrentWrongWord
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ accessing
wrongWordText: aString

contextSentence := aString.
self alternatives: (SpellChecker instance suggestionsFor: self currentWord).
self alternatives: (SpellcheckChecker instance suggestionsFor: self currentWord).
self changed: #wrongWordText
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"noAlternativesText" : "ow 7/4/2018 23:32",
"noWrongWordsText" : "ow 7/4/2018 23:32" },
"instance" : {
"addToDict" : "ow 6/21/2018 00:21:46",
"addToDict" : "pz 7/12/2018 19:57",
"alternatives" : "ow 6/1/2018 11:22:08",
"alternatives:" : "ow 6/1/2018 13:42:46",
"buildWith:" : "II 7/2/2018 22:49",
Expand All @@ -14,11 +14,11 @@
"displayNextWord" : "ow 6/28/2018 17:10",
"displayPreviousWord" : "ow 6/28/2018 17:10",
"endIndex" : "RS 6/27/2018 14:48:15",
"ignore" : "ow 6/21/2018 00:21:55",
"ignoreAll" : "yk 6/14/2018 17:31:40",
"initialize" : "ow 6/20/2018 14:51:47",
"ignore" : "pz 7/12/2018 19:57",
"ignoreAll" : "pz 7/12/2018 19:57",
"initialize" : "pz 7/12/2018 20:00",
"input:" : "ow 6/21/2018 00:13:53",
"inputText:" : "RS 6/27/2018 16:37:50",
"inputText:" : "pz 7/12/2018 19:57",
"open" : "pz 5/29/2018 21:55:12",
"replaceTextWithAlternative" : "ow 7/4/2018 23:34",
"selectedAlternative" : "RS 6/27/2018 15:19:24",
Expand All @@ -28,4 +28,4 @@
"updateKeyArrayAfter:By:" : "ow 7/4/2018 23:36",
"updateWrongWordsAfter:By:" : "RS 6/27/2018 15:52:13",
"wrongWordText" : "II 6/9/2018 15:50:26",
"wrongWordText:" : "ow 6/21/2018 00:21:37" } }
"wrongWordText:" : "pz 7/12/2018 19:57" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
as yet unclassified
loadLanguage

SpellcheckChecker instance dictionaryPath: self dictionaryPath name.
SpellcheckChecker instance affixPath: self affixPath name.
SpellcheckChecker instance reloadHunspellHandle
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ as yet unclassified
removeFromIgnoredWords

selectedWord ifNotNil:
[SpellChecker instance removeWordFromDictionary: selectedWord.
[SpellcheckChecker instance removeWordFromDictionary: selectedWord.
self changed: #ignoredWords]
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"dictionaryFileName" : "ow 7/12/2018 16:53",
"dictionaryPath" : "ow 7/12/2018 17:03",
"ignoredWords" : "ow 7/12/2018 09:34",
"loadLanguage" : "ow 7/12/2018 17:03",
"loadLanguage" : "pz 7/12/2018 19:57",
"loadedLanguages" : "ow 7/12/2018 16:41",
"open" : "ow 7/5/2018 17:05",
"removeFromIgnoredWords" : "ow 7/5/2018 17:05",
"removeFromIgnoredWords" : "pz 7/12/2018 19:57",
"selectedLanguage" : "ow 7/12/2018 09:35",
"selectedLanguage:" : "ow 7/12/2018 17:05",
"selectedLanguageDirectoryPath" : "ow 7/12/2018 16:56",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"ignoredWords",
"selectedWord",
"selectedLanguage" ],
"name" : "SpellcheckOrganizeUI",
"name" : "SpellcheckDictionaryManagementUI",
"pools" : [
],
"super" : "Model",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"commentStamp" : "",
"instvars" : [
"apiHandle" ],
"name" : "HunspellAPI",
"name" : "SpellcheckHunspellAPI",
"pools" : [
],
"super" : "ExternalLibrary",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"commentStamp" : "",
"instvars" : [
"listSize" ],
"name" : "HunspellSuggestList",
"name" : "SpellcheckHunspellSuggestList",
"pools" : [
],
"super" : "ExternalStructure",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"commentStamp" : "",
"instvars" : [
],
"name" : "SpellingTextParser",
"name" : "SpellcheckTextParser",
"pools" : [
],
"super" : "Object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ as yet unclassified
initialize

super initialize.
spellChecker := SpellChecker instance
spellChecker := SpellcheckChecker instance
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"spellCheckingEnabled:" : "loading 5/17/2018 12:27:28" },
"instance" : {
"highlightSpellingMistakes:in:" : "loading 5/18/2018 10:43:21",
"initialize" : "yk 5/30/2018 17:13:15",
"initialize" : "pz 7/12/2018 19:57",
"privateStyle:" : "II 7/2/2018 23:07",
"spellChecker" : "ow 5/28/2018 23:06:26",
"unstyle:" : "ow 6/11/2018 00:38:48",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"commentStamp" : "",
"instvars" : [
"spellChecker" ],
"name" : "SpellingTextStyler",
"name" : "SpellcheckTextStyler",
"pools" : [
],
"super" : "SHTextStylerST80",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ initialize-release
setUp

correctionUI := SpellcheckCorrectionUI new.
spellchecker := SpellChecker instance.
spellchecker := SpellcheckChecker instance.
spellchecker reloadHunspellHandle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
},
"instance" : {
"setUp" : "ow 7/4/2018 23:36",
"setUp" : "pz 7/12/2018 19:56",
"testAddToDict" : "ow 7/4/2018 23:23",
"testIgnore" : "ow 7/4/2018 23:40",
"testIgnoreAll" : "ow 7/4/2018 23:40",
Expand Down
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
initialize-release
setUp

hunspell := HunspellAPI new
hunspell := SpellcheckHunspellAPI new
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
testing
testAddDictionary

hunspell := HunspellAPI new.
hunspell := SpellcheckHunspellAPI new.
self deny: (hunspell isWordCorrect: 'Schnee').

hunspell addDictionary: self class germanDictionary.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"germanDictionary" : "ow 7/4/2018 23:38" },
"instance" : {
"expectedFailures" : "RS 5/31/2018 19:46:18",
"setUp" : "loading 5/11/2018 12:09:26",
"testAddDictionary" : "ow 7/4/2018 23:39",
"setUp" : "pz 7/12/2018 19:54",
"testAddDictionary" : "pz 7/12/2018 19:55",
"testAdjustDictionary" : "ow 5/22/2018 16:44:33",
"testCorrectSpelling" : "loading 5/22/2018 11:28:55",
"testFalseSpelling" : "ow 5/22/2018 16:49:39",
Expand Down
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 583d205

Please sign in to comment.