-
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.
Added class comments, minor refactorings.
- Loading branch information
1 parent
13fd399
commit 7a85454
Showing
34 changed files
with
60 additions
and
46 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/Spellcheck-Core.package/SPCDictionaryManagementUI.class/README.md
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,9 @@ | ||
I am a user interface for managing (modifying and changing) the loaded dictionary. | ||
|
||
Instance Variables | ||
availableLanguages <OrderedCollection> The languages that can currently be selected. | ||
selectedLanguage: <String> The currently selected language of the loaded dictionary | ||
selectedLanguageIndices <Dictionary> Each value pair <Number, Boolean> describes if language with number Number is currently active. | ||
selectedWord: <String> The currently selected word of the words added to the dictionary by the user | ||
spellchecker: <SPCSpellChecker> The current spellchecker | ||
|
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
2 changes: 1 addition & 1 deletion
2
...llcheck-Core.package/SPCDictionaryManagementUI.class/instance/selectedLanguageIndices..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,4 +1,4 @@ | ||
accessing | ||
selectedLanguageIndices: anObject | ||
|
||
selectedLanguageIndices := anObject. | ||
selectedLanguageIndices := anObject |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
I collect all currently active languages. | ||
|
||
Instance Variables | ||
alertOnError: <Boolean> Flag that controls if error dialogs should appear. | ||
instances: <OrderedCollection> A collection of Hunspell instances which spell-check the current language. |
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCHunspellAPIDecorator.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
library | ||
systemArchitecture | ||
|
||
^ Smalltalk image wordSize * 8. | ||
^ Smalltalk image wordSize * 8 |
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
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 @@ | ||
I replace SPCHunspellDecorator if spellchecking is disabled to prevent any errors. | ||
|
||
Instance Variables |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
I represent a language for Hunspell. | ||
|
||
Instance Variables | ||
affixPath: <String> Path to the Hunspell affix / grammar file of this language. | ||
dictionaryPath: <String> Path to the dictionary file of this language. | ||
languageName: <String> Which name is displayed for this language. |
3 changes: 1 addition & 2 deletions
3
packages/Spellcheck-Core.package/SPCHunspellLanguage.class/class/default.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,4 +1,3 @@ | ||
as yet unclassified | ||
default | ||
^ ({ SPCHunspellLanguage english . SPCHunspellLanguage squeak . SPCHunspellLanguage custom } asSet) | ||
"^ SPCHunspellLanguage english" | ||
^ ({ SPCHunspellLanguage english . SPCHunspellLanguage squeak . SPCHunspellLanguage custom } asSet) |
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCHunspellLanguage.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
I show methods with spelling errors. |
6 changes: 1 addition & 5 deletions
6
packages/Spellcheck-Core.package/SPCMethodTextViewer.class/class/openWith..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,8 +1,4 @@ | ||
as yet unclassified | ||
openWith: methods | ||
|
||
ToolBuilder open: ( SPCMethodTextViewer messageList: (methods collect: [ :m | m value methodReference] ) ). | ||
|
||
|
||
"TODO: Wie stellt man das Highlighting nur für dieses Menü an?" | ||
"SPCTextStyler spellCheckingEnabled: spllcheckingStylerIsOn" | ||
ToolBuilder open: ( SPCMethodTextViewer messageList: (methods collect: [ :m | m value methodReference] ) ) |
2 changes: 1 addition & 1 deletion
2
packages/Spellcheck-Core.package/SPCMethodTextViewer.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
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
6 changes: 3 additions & 3 deletions
6
packages/Spellcheck-Core.package/SPCSpellChecker.class/README.md
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,12 +1,12 @@ | ||
I provide spellchecking functionalities such as checking single words, getting all mistakes in a string, adding and removing words from the dictionary, getting suggestions for a wrong written word. I am a singleton. | ||
|
||
Instance Variables | ||
affixPath: <FilePath> The path to the current loaded affix file | ||
dictionaryPath: <FilePath> The path to the current loaded dictionary file | ||
hunspell: <SPCHunspellAPI> Used for making calls into the hunspell library | ||
loadedLanguages: <OrderedCollection> A Collection of HunspellLanguages that represent the currently active languages. | ||
hunspell: <SPCHunspellAPIDecorator> Used for making calls into the hunspell library and managing languages. | ||
parser: <SPCTextParser> Used for separating a string into its single words | ||
|
||
|
||
Class Variables | ||
AddedWords <Set> Stores all the words that were added to the dictionary | ||
Instance <SPCSpellChecker> Holds the current instance (this class is a singleton) | ||
Observers <OrderedCollection> Holds all Classes that are notified if properties of this class change. |
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/SPCSystemBrowser.class/README.md
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,2 +1,5 @@ | ||
I add functionality to the squeak browser. | ||
- checking all Methods of a class for correctly spelled literals. | ||
|
||
Instance Variables: | ||
informAboutErrors: <Boolean> True if error messages should be displayed to the user. |
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
Large diffs are not rendered by default.
Oops, something went wrong.