-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
43c7c16
commit e1f8b96
Showing
52 changed files
with
193 additions
and
39 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPI.class/class/handleNotNil.st
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
packages/Spellcheck-Core.package/SPCHunspellAPI.class/class/instance..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
library | ||
instance: aHunspellAPI | ||
Instance := aHunspellAPI | ||
Instance: aValue | ||
Instance := aValue |
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCHunspellAPI.class/class/instance.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
library | ||
instance | ||
Instance ifNil: [ | ||
Instance := self basicNew initialize | ||
Instance := SPCHunspellAPIDecorator new | ||
]. | ||
^ Instance |
6 changes: 6 additions & 0 deletions
6
packages/Spellcheck-Core.package/SPCHunspellAPI.class/class/new.withAffix..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
library | ||
new: dictionaryPath withAffix: affixPath | ||
| hunspell | | ||
hunspell := self basicNew initialize. | ||
hunspell createHandle: dictionaryPath affix: affixPath. | ||
^ hunspell |
4 changes: 4 additions & 0 deletions
4
packages/Spellcheck-Core.package/SPCHunspellAPI.class/class/systemArchitecture.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
library | ||
systemArchitecture | ||
|
||
^ Smalltalk image wordSize * 8. |
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/addDictionary..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
spellchecking | ||
addDictionary: aDictionaryPath | ||
((self class libraryExists and: [ self class fileExists: aDictionaryPath ]) and: [ self class handleNotNil]) ifTrue: [ | ||
((self class libraryExists and: [ self class fileExists: aDictionaryPath ]) and: [ self handleNotNil]) ifTrue: [ | ||
self apiAdd: self apiHandle dictionary: aDictionaryPath | ||
] |
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/addWordToDictionary..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
spellchecking | ||
addWordToDictionary: aString | ||
(self class libraryExists and: [ self class handleNotNil]) ifTrue: [ | ||
(self class libraryExists and: [ self handleNotNil]) ifTrue: [ | ||
self apiAdd: self apiHandle word: aString | ||
] |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/affixPath..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
affixPath: anObject | ||
affixPath := anObject |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/affixPath.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
affixPath | ||
^ affixPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/destroyHandle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
private | ||
destroyHandle | ||
(self class libraryExists and: [ self class handleNotNil]) ifTrue: [ | ||
(self class libraryExists and: [ self handleNotNil]) ifTrue: [ | ||
self apiDestroyHandle: self apiHandle | ||
] |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/dictionaryPath..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
dictionaryPath: anObject | ||
dictionaryPath := anObject |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/dictionaryPath.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
dictionaryPath | ||
^ dictionaryPath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/handleNotNil.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
private | ||
handleNotNil | ||
^ self apiHandle isNil not |
4 changes: 4 additions & 0 deletions
4
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/isDecorator.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spellchecking | ||
isDecorator | ||
|
||
^ false |
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/isWordCorrect..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/removeWordFromDictionary..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
spellchecking | ||
removeWordFromDictionary: aString | ||
((self class libraryExists) and: [ self class handleNotNil]) ifTrue: [ | ||
((self class libraryExists) and: [ self handleNotNil]) ifTrue: [ | ||
self apiRemove: self apiHandle word: aString | ||
] |
4 changes: 0 additions & 4 deletions
4
packages/Spellcheck-Core.package/SPCHunspellAPI.class/instance/systemArchitecture.st
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/addDictionary..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spellchecking | ||
addDictionary: dictionaryPath | ||
self addDictionary: dictionaryPath andAffix: SPCSpellChecker defaultAffixPath |
5 changes: 5 additions & 0 deletions
5
...Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/addDictionary.andAffix..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
spellchecking | ||
addDictionary: aDictionaryPath andAffix: anAffixPath | ||
| newHunspellAPI | | ||
newHunspellAPI := SPCHunspellAPI new: aDictionaryPath withAffix: anAffixPath. | ||
self instances add: newHunspellAPI |
3 changes: 3 additions & 0 deletions
3
...es/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/addWordToDictionary..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spellchecking | ||
addWordToDictionary: aString | ||
self instances do: [ :instance | instance addWordToDictionary: aString ] |
3 changes: 3 additions & 0 deletions
3
...ges/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/createHandle.affix..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spellchecking | ||
createHandle: aDictionarypath affix: anAffixPath | ||
self instances add: (SPCHunspellAPI new: aDictionarypath withAffix: anAffixPath) |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/createHandle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spellchecking | ||
createHandle | ||
self instances add: SPCHunspellAPI new createHandle |
4 changes: 4 additions & 0 deletions
4
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/destroyHandle.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spellchecking | ||
destroyHandle | ||
self instances do: [ :instance | instance destroyHandle ]. | ||
self instances: OrderedCollection new |
4 changes: 4 additions & 0 deletions
4
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/getSuggestions..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spellchecking | ||
getSuggestions: aString | ||
|
||
^ self instances inject: OrderedCollection new into: [ :currentSuggestions :currentInstance | currentSuggestions add: (currentInstance getSuggestions: aString)] |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/initialize.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
initialization | ||
initialize | ||
self instances: OrderedCollection new |
4 changes: 4 additions & 0 deletions
4
...ges/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/installDependencies.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spellchecking | ||
installDependencies | ||
"I the future, every hunspellapi object may have own dependencies." | ||
self instances do: [ :instance | instance installDependencies ]. |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/instances..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
instances: anObject | ||
instances := anObject |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/instances.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
instances | ||
^ instances |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/isDecorator.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
accessing | ||
isDecorator | ||
^ true |
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/isNilObject.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spellchecking | ||
isNilObject | ||
^ false |
4 changes: 4 additions & 0 deletions
4
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/isWordCorrect..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spellchecking | ||
isWordCorrect: aString | ||
self instances do: [ :instance | (instance isWordCorrect: aString) ifTrue: [ ^ true ] ]. | ||
^ false |
3 changes: 3 additions & 0 deletions
3
...ellcheck-Core.package/SPCHunspellAPIDecorator.class/instance/removeWordFromDictionary..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
spellchecking | ||
removeWordFromDictionary: aString | ||
self instances do: [ :instance | instance removeWordFromDictionary: aString ]. |
19 changes: 19 additions & 0 deletions
19
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"addDictionary:" : "ea 6/7/2019 16:02", | ||
"addDictionary:andAffix:" : "ea 6/7/2019 15:57", | ||
"addWordToDictionary:" : "ea 6/7/2019 16:06", | ||
"createHandle" : "ea 6/7/2019 16:03", | ||
"createHandle:affix:" : "ea 6/7/2019 16:04", | ||
"destroyHandle" : "ea 6/7/2019 16:58", | ||
"getSuggestions:" : "ea 6/7/2019 16:09", | ||
"initialize" : "ea 6/7/2019 15:23", | ||
"installDependencies" : "ea 6/7/2019 16:24", | ||
"instances" : "ea 6/7/2019 15:23", | ||
"instances:" : "ea 6/7/2019 15:23", | ||
"isDecorator" : "ea 6/7/2019 15:25", | ||
"isNilObject" : "ea 6/7/2019 16:16", | ||
"isWordCorrect:" : "ea 6/7/2019 16:11", | ||
"removeWordFromDictionary:" : "ea 6/7/2019 16:12" } } |
14 changes: 14 additions & 0 deletions
14
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "Spellcheck-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"instances" ], | ||
"name" : "SPCHunspellAPIDecorator", | ||
"pools" : [ | ||
], | ||
"super" : "Object", | ||
"type" : "normal" } |
Oops, something went wrong.