Version 2 (modified by boyan, 15 years ago) (diff) |
---|
Analysis
Overview
Support for spell-checking needs to be added to Sophie. At this revision, actual implementation should be done.
Task requirements
According to the results from the first revision of the task, the following things should be supported in Sophie spell check:
- The Tools tab will contain a spell-check palette. It will contain the following elements:
- Spell-check button - will run a spell check on the text within the currently selected chain.
- Toggle underline button - will turn on/off underlining of misspelled words (they will be underlined with a dotted line as in Trac).
- Replace/Ignore buttons - will replace/ignore the currently selected misspelled word.
- TODO Replace all/Ignore all?
- A list of misspelled words - it will contain the currently found misspelled words.
- Clicking on a misspelled word will highlight it (select it) in the text (and go to the page it is on if necessary).
- A list of suggestions for correction - it will contain possible corrections for the selected misspelled word.
- Double-clicking on a suggestion will replace the misspelled word.
- When a word is replaced/ignored, the next misspelled word is selected.
- Initially up to two languages in a book should be selectable (that is, spell-check should be performed against two dictionaries).
- TODO What if a word in one language is correct, and in the other is wrong (e.g. werk and work)
- TODO Define UI for language selection
- TODO Provide graphics assets
Task result
Source code
Implementation idea
Use the demo from the previous revision of the task as a starting point for the implementation.
Related
How to demo
Demonstrate the use of spell-check:
- Type some text in a text frame in Sophie.
- Open the spell check palette and run the check.
- Replace some words and ignore others.
Design
Describe your design here.
Implementation
Describe and link the implementation results here (from the wiki or the repository).
Testing
Place the testing results here.
Comments
Write comments for this or later revisions here.