Mathieu Baudier
2011-Nov-21 12:43 UTC
[CentOS] Having less languages in Firefox (hunspell dictionaries provide too many locales)
Hello, on CentOS 6, I am routinely writing mails in English, German and French and using the related hunspell dictionaries for the spelling in Firefox (I'm using Google Apps). This works fine but the problem is that languages are added for all the possible locales (English US, UK, Philippines, Bostwana, Trinidad and Tobago, Denmark (sic!), ... and German Germany, Austria... and French France, Canada, Belgium...). So each time I want to switch from one language to the other (which sometimes happens every few minutes), I need to choose in a very long list (with non-deterministic ordering). First I thought it was no big deal, but with time I realize this is a loss of time and concentration which while not big is recurrent. Does anybody knows how I could reduce the list to English UK, German Germany and French France? (no offence to the other locales) An option would be to uninstall the hunspell dictionaries and install the dictionaries manually as Firefox addons, but I find it nice to have them provided by the base OS, and anyhow, I don't think that it is possible for English. Thanks in advance, Mathieu
Johnny Hughes
2011-Nov-21 14:34 UTC
[CentOS] Having less languages in Firefox (hunspell dictionaries provide too many locales)
On 11/21/2011 06:43 AM, Mathieu Baudier wrote:> Hello, > > on CentOS 6, I am routinely writing mails in English, German and > French and using the related hunspell dictionaries for the spelling in > Firefox (I'm using Google Apps). > > This works fine but the problem is that languages are added for all > the possible locales (English US, UK, Philippines, Bostwana, Trinidad > and Tobago, Denmark (sic!), ... and German Germany, Austria... and > French France, Canada, Belgium...). > > So each time I want to switch from one language to the other (which > sometimes happens every few minutes), I need to choose in a very long > list (with non-deterministic ordering). > First I thought it was no big deal, but with time I realize this is a > loss of time and concentration which while not big is recurrent. > > Does anybody knows how I could reduce the list to English UK, German > Germany and French France? > (no offence to the other locales) > > An option would be to uninstall the hunspell dictionaries and install > the dictionaries manually as Firefox addons, but I find it nice to > have them provided by the base OS, and anyhow, I don't think that it > is possible for English. >You are talking to the wrong people ... we build it exactly like it is built for upstream. It works just like in the RHEL sources, so that is how it is supposed to work. I agree that it sucks though. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20111121/c47bdd90/attachment.sig>
Mathieu Baudier
2011-Nov-21 14:48 UTC
[CentOS] Having less languages in Firefox (hunspell dictionaries provide too many locales)
> You are talking to the wrong people ... we build it exactly like it is > built for upstream. ?It works just like in the RHEL sources, so that is > how it is supposed to work.I'm aware of that, I'm just asking if somebody knows a workaround or a way to hack this away. (I'm already thinking of one hack: sudo cp -p /usr/share/myspell/fr_FR.* /tmp sudo rm -f /usr/share/myspell/fr_* sudo cp -p /tmp/fr_FR.* /usr/share/myspell/ but was wondering if there is not something cleaner, like a Firefox config) Next step would indeed be to book a ticket in upstream bugzilla (haven't found any so far).
Thomas Johansson
2011-Nov-21 15:03 UTC
[CentOS] Having less languages in Firefox (hunspell dictionaries provide too many locales)
On 2011-11-21 13:43, Mathieu Baudier wrote:> Hello, > > on CentOS 6, I am routinely writing mails in English, German and > French and using the related hunspell dictionaries for the spelling in > Firefox (I'm using Google Apps). > > This works fine but the problem is that languages are added for all > the possible locales (English US, UK, Philippines, Bostwana, Trinidad > and Tobago, Denmark (sic!), ... and German Germany, Austria... and > French France, Canada, Belgium...). > > So each time I want to switch from one language to the other (which > sometimes happens every few minutes), I need to choose in a very long > list (with non-deterministic ordering). > First I thought it was no big deal, but with time I realize this is a > loss of time and concentration which while not big is recurrent. > > Does anybody knows how I could reduce the list to English UK, German > Germany and French France? > (no offence to the other locales) >Most of the dictionaries are symlinks from other basefiles. I have used these lines in my postinstall to remove dictionaries echo "Remove excessive spell checking lists" cd /usr/share/myspell find . -type l -exec rm {} \; \rm -f de_AT.* de_CH.* en_CA.* ko_KR.* That will give you a much smaller list of dictionaries in thunderbird. ls -1 /usr/share/myspell/*.dic /usr/share/myspell/de_DE.dic /usr/share/myspell/en_GB.dic /usr/share/myspell/en_US.dic /usr/share/myspell/fr_FR.dic /usr/share/myspell/it_IT.dic /usr/share/myspell/sv_SE.dic Remove more stuff if you want a shorter list. Just add sv_SE.* and it_IT.* to the rm line to remove swedish and italian dictionaries. The drawback of this solution is obvious when an update arrives and the list become populated again. /Thomas
Ljubomir Ljubojevic
2011-Nov-21 15:20 UTC
[CentOS] Having less languages in Firefox (hunspell dictionaries provide too many locales)
Vreme: 11/21/2011 01:43 PM, Mathieu Baudier pi?e:> on CentOS 6, I am routinely writing mails in English, German and > French and using the related hunspell dictionaries for the spelling in > Firefox (I'm using Google Apps).<snio>> Does anybody knows how I could reduce the list to English UK, German > Germany and French France? > (no offence to the other locales)Try installing Quick Locale Switcher Firefox Add-on. Then in options change what locales you actually want. I hope it helps. Also, does removing language from Add-ons in Firefox help? You should be able to disable/deinstall any installed language. -- Ljubomir Ljubojevic (Love is in the Air) PL Computers Serbia, Europe Google is the Mother, Google is the Father, and traceroute is your trusty Spiderman... StarOS, Mikrotik and CentOS/RHEL/Linux consultant