From: Brian H. <bri...@ac...> - 2007-03-07 17:58:39
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Basically in Highlighter.highlight I tore out the guts and put a call into the AspellEngine class from SpellCheck. That returns a list of words in the line that are misspelled. I go through each one and call the _highlight method.<br> <br> One thing I thought of while doing this is that if Highlight is an interface that I could implement a spell check highlighter. This would take care of the highlight part. I still need to make a way for users to be able to click on the word and offer corrections. It seems to me that there is some functionality in side kick to do this for me but I'm not sure. Whatever way it is done I think this needs to be solved generally instead of specifically for this plugin.<br> <br> As for it being slow I think it is because the spell checker is doing too much work. Spell checking probably should not be done when the screen is painted. It should be done in the background with the results saved into a table that can be looked up when the screen is painted.<br> <br> I think making the Highlight plugin accept dynamic highlighter's would be a good first start. Then my plugin could just utilize yours for the highlighting.<br> <br> Brian<br> <br> Matthieu Casanova wrote: <blockquote cite="mid...@ma..." type="cite">Hi, I just tried, it seems slow. But the idea is good, what kind of changes did you make in Highlight ?<br> Maybe I could change Highlight plugin to be more open to other plugins<br> <br> Matthieu<br> <br> <div><span class="gmail_quote">2007/3/6, Brian Hawkins <<a href="mailto:bri...@ac...">bri...@ac...</a>>:</span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">For anyone who is interested, I've figured out how to create an inline<br> spell checker for jedit.<br> I basically did a hack and slash of two plugins Highlight and<br> Spellcheck. If you install both plugins and have Spellcheck configured <br> with aspell then you can download my hacked up Highlight.jar file from<br> the link below<br> <br> <a href="http://www.activeclickweb.com/java/Highlight.jar">http://www.activeclickweb.com/java/Highlight.jar</a><br> <br> Then tell highlight to highlight the current buffer and it will show the <br> misspelled words. There are lots of problems including leaving the<br> aspell process running and being dog slow at times, but I plan on<br> working these issues out.<br> <br> Brian<br> <br> ------------------------------------------------------------------------- <br> Take Surveys. Earn Cash. Influence the Future of IT<br> Join SourceForge.net's Techsay panel and you'll get the chance to share your<br> opinions on IT & business topics through brief surveys-and earn cash<br> <a href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a><br> --<br> ----------------------------------------------- <br> jEdit Users' List<br> <a href="mailto:jEd...@li...">jEd...@li...</a><br> <a href="https://lists.sourceforge.net/lists/listinfo/jedit-users">https://lists.sourceforge.net/lists/listinfo/jedit-users </a><br> <br> <br> </blockquote> </div> <br> </blockquote> </body> </html> |