add faroese spell checker

This commit is contained in:
2026-11-10 21:41:13 +00:00
parent baa13a0230
commit 1fc6c6d0d1
+43
View File
@@ -0,0 +1,43 @@
So I think it is super annoying to write a faroese mail or just writing something in a box,
and there are red squiggly lines all over the place. Instead we can use hunspell with Firefox.
This is only tested on Ubuntu where Firefox is install through snap store, I haven't done this on a Fedora machine yet.
Install Hunspell faroese dictionary
```bash
BASE="https://raw.githubusercontent.com/wooorm/dictionaries/main/dictionaries/fo"
mkdir -p ~/fo-xpi/dictionaries
curl -fsSL -o ~/fo-xpi/dictionaries/fo_FO.dic "$BASE/index.dic"
curl -fsSL -o ~/fo-xpi/dictionaries/fo_FO.aff "$BASE/index.aff"
```
Create the xpi manifest with heredoc
```bash
cat > ~/fo-xpi/manifest.json <<'EOF'
{
"manifest_version": 2,
"name": "Faroese spellcheck dictionary (fo-FO)",
"version": "1.0.0",
"dictionaries": {
"fo": "dictionaries/fo_FO.dic"
},
"browser_specific_settings": {
"gecko": {
"id": "fo-FO-dictionary@flo.fo"
}
}
}
EOF
```
And then we package it, ready for Firefox to consume
```bash
cd ~/fo-xpi && zip -r ../fo_FO-dictionary.xpi manifest.json dictionaries
```
Now we need to install it as an add-on in Firefox.
Go to `Extensions and themes` with ctrl + shift + A or with mouse.
Go to `Dictionaries` and click on the cog wheel.
Then `install Add-on from file`.
Select the `fo_FO-dictionary.xpi` in your home dir.
Then go to a text box in the browser, right click, and then languages, and check the `Faroese` button.