Showing posts with label modification. Show all posts
Showing posts with label modification. Show all posts

Wednesday, November 28, 2007

Firefox 2 Spelling Dictionary Hacks; Make Firefox Inline Spell Checker More Useful

One of the most useful additions to Firefox 2 is the inline spell check feature that hints you of possible spelling mistakes as you type inside web forms.



While spell checking is a killer feature, Firefox 2 dictionary is incomplete and misses a lot of commonly used web terms including Google. This becomes all the more evident if you are slightly tech-savvy and use terms like AVI, Youtube, Screenshots, MP3, Powerpoint, etc while composing emails or writing new blog entries inside the browser.



So here are five different hacks that help you make Firefox 2 dictionary all the more useful.



For each of the hacks you will have to modify the persdict.dat [a text file with dat extension] located in the profile folder of your Firefox installation.



C:\Documents and Settings\<user>\Application Data\Mozilla\Profiles\<profile name>

persdict.dat holds the personal dictionary entries used by the spellchecker added by you.



Shut down Firefox and open the persdict.dat file using Notepad or any text editor.



Add Multiple Words to Firefox Dictionary in One Step



With persdict.dat open inside Notepad, add any number of new words but each on a new separate line. If your friend has already done the hard work, you can copy his custom entries in our own persdict.dat file. Save and close the file.



Don't Duplicate Work ? Merge Microsoft Word Custom Dictionary With Firefox



img


If you are a Microsoft Office user, chances are that you already have a rich custom dictionary in place which you created while composing documents inside Microsoft Word. So let's save the duplicate effort and bring those Microsoft entries directly to Firefox.



Open the custom.dic file located in the Microsoft Office Proofing folder.



C:\Documents and Settings\<user>\Application Data\Microsoft\Proof



As in the previous step, copy the entries from this file into persdict.dat file and your Firefox 2.0 spell checker gets all the intelligence of Microsoft Word dictionary in one step.



Download Additional Dictionaries for Firefox 2



While there are dictionaries to download in text form, you can always download list of popular computer terms, medical terms or any other jargon for your Firefox spell checker.



Wikipedia has a list of company names and computer terms that you can easily integrate with Firefox dictionary by simple text manipulation [keep the hyperlinked words, remove everything after the hyphen, etc]



Remove Entries from Firefox 2 Dictionary Added by Mistake



When Firefox 2 detects an incorrect spelling, it highlights that word with a dotted red underline - if you think the spelling is correct, you just right click and choose "Add to Dictionary".



But if you make a mistake or accidentally add a wrong word to the dictionary, the only way to delete is by manually removing it from, you guessed it right, persdict.dat file.



Replace US English with British English as the default dictionary.



You can download Firefox Dictionaries in various languages here. Install the British English Dictionary extension and restart Firefox. Now right click inside a text field and choose English / British under the Language settings.

Firefox Search Bar

The Firefox Search Bar in the upper-right corner, sitting next to the address bar, is one of the most frequently used feature inside Firefox.



You can do a lot of tweaking to the Firefox search bar like Add new search engines, delete unused search engines, change the order of search engines, delete autocomplete, change the default search engine or even resize the width of the search bar. We discuss each tip in detail here (also applicable to Flock):



How to add a new search engine to Firefox search bar ?



The Firefox Search bar comes pre-loaded with Google, Yahoo, Amazon, eBay, Answers.com, and Creative Commons search. If you'd like to add more search engines to the search bar, click on a search engine name here or browse the full directory of search engine plug-ins at mycroft. Alternatively, click the down arrow next to the G in the search box, and choose Add Engines.



How do I remove a search engine from Firefox search bar ?



To Uninstall a Firefox search plugin, open the searchplugins folder situated in the Mozilla Firefox 1.5 installation directory (C:\Program Files\Mozilla Firefox\). Sort the entire folder by name so that files selected with any search engine stay together at one place.



Delete both .src and .gif or .png search plugin files for the search engine you want to remove. For example, to remove the eBay search engine, you would delete the files "ebay.src" and "ebay.gif". Restart Firefox and the search engine will be deleted forever. Any custom search engines may be located in the Firefox Profile folder inside Windows Application Data folder.



There's even a Firefox extension for uninstalling Firefox search plugins - just right click on a search plugin and choose Delete.



How do I rearrange the order of search engines in Firefox ?



Search engines are added to Firefox search bar at the bottom. As your list of search engine grows, you may want to sort the order and place the maximum used search engine at the top. Here's how change the order in which the engines are shown in the Firefox search bar.



Type about:config in the Firefox location bar.

Type browser.search.order in the filter.

Now change the values as you wish to reorder.



For example, to make Yahoo as the top engine and Google just next, make the following changes:

browser.search.order.1 = Yahoo

browser.search.order.2 = Google



The other easy option to change the order is download Search Plugin Manager that lets you re-sort the search plugin list in the Mozilla Firefox browser as well as rename, edit, delete or hide search plugins.



Search Engine Ordering is another related search bar plugin that lets you even create new firefox search plugins beside installing, deleting or arranging existing ones. Just Drag-n-Drop to change the order as you want or right click somewhere in the menu to sort them alphabetically.



ImHow do I resize the Firefox Search Bar ?



To change the width of the Firefox Search bar, you can either download the resize search box firefox extension or do it manually. Add the following lines of code to userChrome.css file located inside the chrome folder of Firefox profile directory.



/* Make the Firefox Search box flex wider */



#search-container, #searchbar {

width: 400px !important;

}



This is much easier if you get the chromEdit extension, which allows you to edit userChrome.css, userContent.css or user.js, without the hassle of finding your profile.



How do I delete autocomplete entries (history) inside the Search Bar ?



The Firefox search bar and some form fields on web pages have autocomplete dropdowns that appear with a list of previously-entered data. To delete individual entries, Click on the text area, press down to activate autocomplete, highlight the entry you want deleted, and press Shift + Delete.



You can clear the previous searches from the Search Bar. Just right-click it and select "Clear Search History".



You can disable the display of autocomplete entries by adding the following lines to userChrome.css

/* Remove autocomplete dropdown */

#PopupAutoComplete > .autocomplete-tree { display: none !important; }



How do I customize a search engine plugin in 30 seconds ?

Say you have already installed a search plugin that uses www.google.com. You want to change the default behaviour so that the same plugin now searches using www.google.co.in or google.es if you are in Spain.



Open the searchplugins folder located inside the Firefox installation directory. Open the file google.src with a text editor like notepad and make a simple change in the following line

action="http://www.google.com/search"

change this to..

action="http://www.google.co.in/search" or

action="http://www.google.es/search"



Save the file, quite notepad and restart Firefox.



Using the Firefox Search Bar - Keyboard Shortcuts



To search, click in the Search Bar (or press "Ctrl+K") and start typing. Hit "Enter" and your search will be run. You can use "Alt+Enter" to open search results in a new tab.



The Search Bar supports more than one search engine. To see the list of available engines click the icon at the left of the bar, and a list showing the choices will appear. You can also use "Ctrl+Up"/"Ctrl+Down" to cycle between the available choices.



How do I auto-resize the Firefox search bar as I type



The Searchbar Autosizer Firefox Extension makes the searchbar fit its contents. It auto expands the searchbar if needed, and shrinks it if you don't have anything typed in you'd probably want to read.



This is especially useful, when the URL- and Searchbar share the same toolbar, so that both can be as wide as possible - but it works in every toolbar.



How do I create my own search engine plugin for Firefox search bar ?



Technically, a search plug-in is a text file that describes the information to send to a search engine and how to interpret the results. A small icon completes the plug-in so that search plug-ins are easily recognized. If you want to know more, read the documentation.



Even O'Reilly has detailed tutorial on creating a Firefox search plugin from scratch. They create a search plugin to search inside the Whitehouse website. More instructions here.



Though the Google Toolbar for Firefox provides a similar search box, it is not as versatile or customizable as the native Firefox search engine toolbar. If the drop down search engine bar in firefox is not working, try clearing the Firefox searchplugins folder and add your favorite search engines again from mycroft search plugins database.

Related Articles by Labels

Bookmark this

Did my post help you? Help others too by just taking a minute to bookmark this in any bookmark you use