Closed
Bug 231510
Opened 21 years ago
Closed 19 years ago
move spellchecker UI files into extensions/spellcheck
Categories
(Core :: Spelling checker, defect)
Core
Spelling checker
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: mvl, Assigned: mscott)
Details
Attachments
(2 files)
7.34 KB,
patch
|
timeless
:
review-
|
Details | Diff | Splinter Review |
2.18 KB,
patch
|
Details | Diff | Splinter Review |
The files that form the spellcheck UI live somewhere in /editor. It was put
there when only NS had a spellchecker.
But these days, mozilla has its own spellchecker. In my opinion, it would make
sense to put the UI into /extensions/spellcheck, next to the backend code.
If we want to have spellchecking in other parts, like forms on webpages, /editor
doesn't make sense anymore. (firebird doesn't want to build UI files in editor i
guess)
spellchecker is really an extension, so it could happily live there. no need to
move to a more core dir.
um...
you have a serious dependency problem. core isn't supposed to depend on non
core. and editor is really two things, ender and composer. ender is needed by
any gui thing. you won't be able to do firebird w/o it (in fact these days
firebird needs all of midas, so it can barely skimp on even composer ui...).
anyway... i get annoyed enough when extensions depend on eachother. I don't want
core to depend on an extension.
</rant>
also, whatever you do, please keep the interface glue distinct from myspell, i
might want to replace it w/ the system spellchecker on macosx or windows...
Reporter | ||
Comment 2•21 years ago
|
||
How does core depend on the ui for spellchecker. imo, spellchecker is an
extension to editor. Editor can be quite happy without spellcheck capability.
So i fail to see the dependency problem.
I think spellcheck/src should contain the glue, and spellcheck/myspell the real
spellchecker. Stuff like mozEnglishWordsUtils should move into myspell i think.
But that is another bug :)
the UI should not talk to myspell, but only to the glue. If we do that, you can
replace myspell with whatever you want.
oh, sorry, i was just afraid you were going to move the idl files ..., don't ask
me why, i must have been out of it.
Reporter | ||
Comment 4•21 years ago
|
||
I suggest those cvs moves:
editor/ui/dialogs/content/EdSpellCheck.js ->
extensions/spellcheck/resources/content/spellcheck.js
editor/ui/dialogs/content/EdSpellCheck.xul ->
extensions/spellcheck/resources/content/spellcheck.xul
editor/ui/dialogs/content/EdDictionary.js ->
extensions/spellcheck/resources/content/personalDictionary.js
editor/ui/dialogs/content/EdDictionary.xul ->
extensions/spellcheck/resources/content/personalDictionary.xul
editor/ui/dialogs/locale/en-US/EditorSpellCheck.dtd ->
extensions/spellcheck/resources/locale/en-US/spellcheck.dtd
editor/ui/dialogs/locale/en-US/EditorPersonalDictionary.dtd ->
extensions/spellcheck/resources/locale/en-US/personalDictionary.dtd
It includes renaming the files, because keeping the Ed prefix doesn't make
sense in the new location.
The patch attached makes those file know about their new locations and put them
into some jar.
Reporter | ||
Comment 5•21 years ago
|
||
Comment on attachment 143046 [details] [diff] [review]
Patch after move v1
The review would include the move as in comment 4
Attachment #143046 -
Flags: review?(timeless)
Reporter | ||
Comment 6•21 years ago
|
||
This patch makes the files used in there new location.
(so the move i mentioned should be a copy, until this patch is in.)
Comment 7•21 years ago
|
||
I disagree with this move.
If we move the spellchecker UI into extensions, we are requiring that anyone
that provides a spellchecker provide a translation of the spellchecker UI.
Although everyone believes that the Mozilla spellchecker is the "only
spellchecker", this might not be the case if a third party decides to use a
different spellchecker.
The UI should stay in a place where it gets translated with the rest of Mozilla.
Reporter | ||
Updated•20 years ago
|
Assignee: mvl → mscott
Comment on attachment 143046 [details] [diff] [review]
Patch after move v1
i think i agree w/ mkaply
Attachment #143046 -
Flags: review?(timeless) → review-
let's not fix this
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•