My home on the web - featuring my real-life persona!

Check spelling in HTML files

This is an interesting test - is anyone still listening/reading? It has been very quiet here while I was finishing my BS in Computer Science (look how I casually slipped that in!) and we had some huge projects at work - one increased my work load to handling 14 languages.

Anyway, I believe I am not the only one who translates a lot of HTML files. I use TagEditor and I like it (yes I do, I am not getting paid to say this) but one of it’s shortcomings is the spell checker. Like many, I have used workarounds to make sure my spelling is OK. Usually, I copy the text into Word to check the spelling. If I find a typo or want to change a sentence, I go back into TagEditor, make the change there to update the TM and then export another target file. And I always wished, I could just check the spelling in the HTML file itself.

I know a lot of WYSIWYG HTML editors have a spell checker. I can also open the HTML file in Word and make changes directly in Word. Either solution is not recommended because more often than not, they mess with the HTML code. Sometimes, it is just the indentation of the code but often they add or change tags which can cause problems on client site or even worse, corrupt the page.

The other problem is that you cannot see the file in its “natural habitat”, ie. processed by a browser. Word tries to show you what the page may look like but it is IE exclusive. Most WYSIWYG editors also emulate/integrate one browser or another to display the page but especially when using CSS styles, they usually fail.

I have been looking for a spell checker that works directly in Firefox, my default browser. There are many spell checkers that work in input locations, for example text boxes and fields, but nothing worked in the display static text of a web page. I looked back, and in December 2007 I was on the hunt the last time. Apparently I didn’t run into web pages issues since then because only today this problem came up again. Again, I did a quick search and low and behold, there now is a bookmarklet/plugin that works! I am trying to track down the origins, and I believe it originated from Urbano’s Blog written by alex. On a lot of other sites I found an additional link using that JavaScript that you can just drag and drop onto your bookmark toolbar in FF: Spellcheck Anywhere

Using it couldn’t be easier. Open the HTML page you want to check in Firefox (and this should be the default when double-clicking an HTML page anyway), then click on the bookmarklet and there you go, spell checking in your browser window! You can change the language to whatever spell checker you have installed - just click Ctrl-A to highlight all text, then right-click on any text portion and in the context menu select the desired language from Languages. If you need more languages, you can download those for free from Firefox Dictionaries & Language Packs

There is one small problem though, while it looks like it allows you to edit the HTML page, the changes are are not saved when you try to save the edited file. This is a little unfortunate because it would spare me the extra step of saving the target file in TagEditor again, but nevertheless, this will make my life so much easier!

comments

4 Responses to “Check spelling in HTML files”

  1. Carla Francisco on July 1st, 2010

    I also translate a lot of HTML files with TagEditor (and yes, I also like it :) - and I agree with everything you say here. A very useful post (I even managed to overlook that out-of-place “it’s” at the beginning and continue reading… ;)

  2. Chinese Translator on January 20th, 2011

    Many times HTML cod deliberately has misspelled word is the , because when people search they misspelled words as well. So the webmaster wants the website to appear in the search engine when this situation occurs.

  3. Dr. Emmet Braun on May 23rd, 2011

    Also there is one more good alternative way to check the text from your webpages for spelling, grammar and thesaurus - using free online spell checker. There are a lot of similar services in the internet, for example this one: http://www.spellchecker.net/spellcheck/

  4. Certified Chinese Translation on October 26th, 2011

    I usually run a selling test by using some of the site available online. One of them in addition to spelling provides grammar check.

Leave a Reply